Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Here is the code! public class VertAlign { public int method1(int i) { int j = 5

ID: 3637988 • Letter: H

Question

Here is the code!

public class VertAlign {

public int method1(int i) {
int j = 5;
if( j > i ) {
System.out.print(j + " is greater than ");
System.out.println(i);
}
i ++;
return i = j * 3;
}

public int method2(int i) {
int j = 5;
if( j > i ) {
System.out.print(j + " is greater than ");
System.out.println(i);
}
i ++;
return i = j * 3;
}

public int method3(int i) {
int j = 5;
if( j > i ) {
System.out.print(j + " is greater than ");
System.out.println(i); }
i ++;
return i = j * 3; }

public int method4(int i) {
int j = 5;
if( j > i) {
System.out.print(j +
" is greater than ");
System.out.println(i);
} i ++;
return
i = j * 3;
}

public int method5(
int i ) { int j = 5; if(
j > i ) { System.out.print(j+
" is greater than "
); System.out.println(i); }
i ++; return i = j * 3; }

public int method6(int i) {
int j = 5;
if( j > i) {
System.out.print(j +
" is greater than ");
System.out.println(
i); } i ++; return
i = j * 3; } public
int k(
int i) {
int j = 5; if(
j > i) {
System.out.print(j+
" is greater than ");
System.out.println(i);
}
i ++;
return i = j * 3;
}

}

Explanation / Answer

1) total there are 6 methods in vertAlign