This is a discussion on What is the mistake within the Java Programming forums, part of the Software Development category; public static String[] TakeBooksInformationfromUser() throws IOException{ int j=0; for(int i=0;i<BooksInformation.length;i++) // if(BooksInformation[...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| public static String[] TakeBooksInformationfromUser() throws IOException{ int j=0; for(int i=0;i<BooksInformation.length;i++) // if(BooksInformation[i].equals(" ")) {j=i; break;} else continue; BufferedReader in= new BufferedReader(new InputStreamReader(System.in)); inDataBook =" "; while(inDataBook != null && j<BooksInformation.length){ System.out.print("Enter the book information withe a (,) between it "); inDataBook=in.readLine(); BooksInformation[j]=inDataBook; j++; } return BooksInformation; } |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I made a terrible mistake | rony321 | Computer Hardware | 0 | 01-10-2009 11:54 AM |
Our Partners |