Here's my code so far
import java.util.*;
import java.text.*;
public class UserInputArray {
Scanner sc = new Scanner(System.in);// sets program up to accept user input
public static void main(String args[]) {
double m[][] = {
{1, 2, 3, 4 },// these just put numbers into the array
{ 0*1, 1*1, 2*1, 3*1 },
{ 0*2, 1*2, 2*2, 3*2 },
{ 0*3, 1*3, 2*3, 3*3 }
};
int i, j;
for(i=0; i<4; i++) {
for(j=0; j<4; j++)
System.out.print(m[i][j] + " ");
System.out.println();
}
}
}
I'm just baflled on what I should use any guidance would be appreciated!

New Topic/Question
Reply




MultiQuote






|