hello all,
I am writing the code here. plz tell me the error.
public static String[] TakeBooksInformationfromUser() throws IOException{
int j=0;
for(int i=0;i<BooksInformation.length;i++)
if(BooksInformation[i].equals(" "))
{j=i;
//http://www.infysolutions.com
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;
}
Thanks in advance
I am writing the code here. plz tell me the error.
public static String[] TakeBooksInformationfromUser() throws IOException{
int j=0;
for(int i=0;i<BooksInformation.length;i++)
if(BooksInformation[i].equals(" "))
{j=i;
//http://www.infysolutions.com
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;
}
Thanks in advance