oh, sorry guys. The program ask to enter names, say the loop length is 10 but i want to exit after 3 entries. how to exit the loop?
Type: Posts; User: scsa316
oh, sorry guys. The program ask to enter names, say the loop length is 10 but i want to exit after 3 entries. how to exit the loop?
System.out.println ("Enter Books Names, Enter ST to Stop Reading:");
for (i = 0; i < 10; i++)
{
Names [i] = S.next ();
if (Names [i] == "ST")