Search:

Type: Posts; User: scsa316

Search: Search took 0.08 seconds.

  1. Replies
    3
    Views
    1,193

    Re: Having problem to stop reading strings

    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?
  2. Replies
    3
    Views
    1,193

    Having problem to stop reading strings

    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")
Results 1 to 2 of 2