Suppose a user executes the following run() method.
Show all the values taken on by the variables of the program.public static void run() { String str = "arboreteum"; int j = 0; for(int i = 0; i < str.length(); i++) { if(str.charAt(i) == 'r') { IO.print(str.substring(j, i)); j = i + 1; } } IO.println(str.substring(j)); }
What does the method print?i j
i 0 1 2 3 4 5 6 7 8 9 10 j 0 2 5It prints ``aboeteum''.