I'll use one of my convoluted approaches.
Thanks for the help.
Type: Posts; User: 18107
I'll use one of my convoluted approaches.
Thanks for the help.
That's what I'm trying to do. I have a few solutions, but all of them take many lines and are inefficient.
I wanted to know if there was a simple command to do that.
The test is if temp[0][0]...
I would use the code:
Scanner input = new Scanner(System.in);
String firstName;
String secondName;
System.out.println("First Name");
firstName = input.next;
I didn't do any design, I'm new to Java and just messing around with code to see what is possible.
The if statement checks if cube is the same as temp. If it is, it does nothing. If it isn't, it...
I currently have a list of numbers
int[][] cube = new int [56][3];
//numbers are input here
the variable cube only has (approximately) 4 different numbers in it.
e.g....
Thanks, it works now.
This code should allow the user to input the array length (less that 10), input data into the array, then view the data in the array. What is wrong with the code, and how do I fix it?
import...