Skip to content

Instantly share code, notes, and snippets.

@jnizet
Created November 17, 2018 17:09
Show Gist options
  • Save jnizet/cc5de3c23ee54cd8d8b3fdd26032a9b8 to your computer and use it in GitHub Desktop.
Save jnizet/cc5de3c23ee54cd8d8b3fdd26032a9b8 to your computer and use it in GitHub Desktop.
public static void main(String[] args) {
//variables
int id;
String data1, data1, data3, data4;
//Array
String dataArray[][] = new String[20][3];
Scanner sc = new Scanner(System.in);
String messages[] = {"Enter data1", "enter data2", "enter data3", "Enter data4"};
for (int i = 0; i < 1; i++) {
for (int j = 0; j < 3; j++) {
System.out.println("Enter " + messages[j]);
infoEtud[i][j] = sc.next();
}
if (dataArray[i] == dataArray[i]) {
System.out.println("found it");
}
}
for (int i = 0; i < 1; i++) {
for (int j = 0; j < 3; j++) {
System.out.print(DataArray[i][j] + " ");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment