0

Can anyone help me with my code?

public class BookTest { public static void main(String[] args) { String bookname = "English"; int isbnnumber = 0445-2269 ; String author = "Fj Dizon" ; String publisher = "Sebek Frugal"; String copyrightdate = "02-19-21"; String bookInformation; Book obj = new Book(bookname, isbnnumber, author, publisher, copyrightdate); bookInformation = obj.getBookInfo(); System.out.println("\n Book name "+obj.getBookname()); System.out.println("\n ISBN number" +obj.getISBNnumber()); System.out.println("\n Author's name"+obj.getAuthor()); System.out.println("\n Publisher"+obj.getPublisher()); System.out.println("\n Copyright Date :"+obj.getCopyrightdate()); } }

19th Feb 2021, 3:59 AM
Mail Mercy
Mail Mercy - avatar
6 Respuestas
+ 3
Mail Mercy There is some part missing like you didn't declared variable, missed constructor and methods. https://code.sololearn.com/cOz7V37L4404/?ref=app
19th Feb 2021, 4:24 AM
A͢J
A͢J - avatar
+ 2
Mail Mercy I don't know about jstudio but it is working here. You just have to do some changes according to your expectation.
19th Feb 2021, 4:48 AM
A͢J
A͢J - avatar
+ 1
Thank u 😊 but still it didnt work. I just use jstudio compiler
19th Feb 2021, 4:44 AM
Mail Mercy
Mail Mercy - avatar
0
Whats wrong with my code?
19th Feb 2021, 4:03 AM
Mail Mercy
Mail Mercy - avatar
0
Okay i'll it again
19th Feb 2021, 4:49 AM
Mail Mercy
Mail Mercy - avatar