my multiplication table code needs to have getRow(),getColumn(),displayTable() methods
but i dont have no idead how
here is my unfinished code
import java.util.Scanner; public class tt { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("Enter a width: "); int width = scanner.nextInt(); System.out.print("Enter a height: "); int height = scanner.nextInt(); for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++) { System.out.print( displayTable(i, j) + "\t" ); } System.out.println(""); } } public static String displayTable(int i, int j) { int value = (i+1)*(j+1); return value+""; } public static int getRow(int height){ int i; for (i = 0; i < height; i++) { } return i; } }