+ 1
There is problem here can you help!? In java
Hi everyone my code in java it doesnât work Thisâs my code :- Book b[]=bookstore.searchBycategory(âbusineesâ); If (x!=null) for(i=0;i<bookstore.getnumOfBook;i++) System.out.println(x[i].gettitle());<< // there is problem it is just give me Exception and title !???đ€·đ»ââïž Did you see any problem here !??? Hint:i have two calss âđ»
2 Answers
0
The problem could be in bookstore class.
Or in x variable.
0
Be more precise: what exception it gives?
Or try to use more brackets
if(x!=null) {
for(int i=0; i<bookstore.getNumOfBook(); i++) {
System.out.println(x[i].getTitle());
}
}