IT Community - Software Programming, Web Development and Technical Support

What is the mistake

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[...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Java Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 11-30-2008, 11:08 PM
alex123 alex123 is offline
D-Web Trainee
 
Join Date: Nov 2008
Posts: 1
alex123 is on a distinguished road
Default What is the mistake

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;
}
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I made a terrible mistake rony321 Computer Hardware 0 01-10-2009 11:54 AM


All times are GMT -7. The time now is 05:53 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0