public class Example {
public static void main(String[] args) {
int count = 4;
String array[] = new String[count];
for(int i=0;i
Console console = System.console();
array[i] = console.readLine("Enter name: ");
}
System.out.println("loop3: " + array[3]);
}
}
hi ,,i am beginner level programmer,,i need some help in loops...i am trying to make a console application...so is it possible to retrieve user data from loops and use them in project??
for example:
sysout ("enter name ")
loop1
loop2
loop3
loop4
so how can i use/retrieve loop3's name?