public class Test2 {
public static void mystery(int x, int y, boolean b, String s) {
System.out.println(x*3 + "..." + x/y);
if (b)
System.out.println("yes");
else
System.out.println("no");
for (int i = 2; i <= 5; i++)
System.out.print(2*i);
System.out.println();
System.out.println((double)(y/x));
System.out.println(s.substring(3,7));
} // end mystery
public static void main(String[] args) {
mystery(7,3,true,"freezing");
}
}
I'm a little confused and I think I'm missing something. How come the output of the for loop in this code is 46810? Shouldn't there be a line in between each of the numbers?