Read Chapter 5 in the textbook, and then answer the following questions.
private static double max(double x, double y).public class ChangeParam
{
public static void main(String[] args)
{
int i = 1;
double x = 3.4;
String s = "hi!";
System.out.println(i + " " + x + " " + s);
changeUs(i, x, s);
System.out.println(i + " " + x + " " + s);
}
private static void changeUs(int j, double y, String t)
{
j = 7;
y = -1.2;
t = "there";
System.out.println(j + " " + y + " " + t);
}
}
public class TraceMe
{
public static void main(String[] args)
{
printBox(5, 3);
}
private static void printBox(int rows, int columns)
{
int i = 0;
while (i < rows)
{
int j = 0;
while (j < columns)
{
if ((i % 2) == (j % 2))
{
System.out.print('A');
}
else
{
System.out.print('B');
}
j = j + 1;
}
System.out.println();
i = i + 1;
}
}
}
public class ItsAMistery
{
public static void main(String[] args)
{
mistery("123456789");
}
private static void mistery(String str)
{
int i = 0;
while (i < str.length())
{
System.out.print(str.charAt((i + 5) % str.length()));
i = i + 1;
}
}
}
public static int indexOf(char c, String str)
{
// fill this in
}public static boolean stringsAreEqual(String s1, String s2)
{
// fill this in
}