This is my code tell me where I went wrong because I keep getting no output on console and in my eclipse does not show any error just a yellow line. package postu;

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

This is my code tell me where I went wrong because I keep getting no output on console and in my eclipse does not show any error just a yellow line.

package postu;

public class krazy {
public static void main(String [] args){}
private String name;
private String author;
private String publisher;
private long ISBN;
public void Book() {
this.name=name;
this.ISBN=ISBN;
this.author=author;
this.publisher=publisher;
}
public void setName(String name) {
this.name= name;
}
public void setAuthor(String author) {
this.author= author;
}
public void setISBNnumber(long ISBN) {
this.ISBN= ISBN;
}
public void setPublisher(String publisher) {
this.publisher= publisher;
}
public String getName() {
return name;

}
public String getAuthor() {
return author;
}

public long getISBN() {
return ISBN;
}
public String getPublisher() {
return publisher;
}
public void setBooksInfo(String name,String author,String publisher,long ISBN)
{
this.name=name;
this.ISBN=ISBN;
this.author=author;
this.publisher=publisher;
}
public void getBooksInfo() {
{
System.out.println("Book Name:" + name);
System.out.println("ISBN Number.:" + ISBN);
System.out.println("Author:" + author);
System.out.println("Publisher:" + publisher);
}

}
}

 

Description of the Problem:

Supposed you are assigned as a programmer in a University Library. You were asked to create a program that provides information about their book collections. A Book has four pieces of information: book name, an ISBN number, an author name and a publisher. Information about this book can be provided by the user using a setter method and these can be accessed using getter methods. Inaddition, provide a method named getBookInfo that returns the description of the book as a String (the description should include all the information about the book).

Construct a class Book based on the description and a program to test your class. Create just one book object.

1 package postu;
2
3 public class krazy {
public static void main(String [] args){}
private String name;
private String author;
private String publisher;
private long ISBN
7
8
9o public void Book() {
10
11
12
13
14
15 public void setName(String name) {
16
17 }
18e public void setAuthor(String author) {
19
this name name
this ISBN-ISBN
this author-author;
this publisher-publisher;
}
this.name= name;
this.author= author;
20 }
210 public void setISBNnumber(long ISBN) {
22
23 }
24e public void setPublisher(String publisher) {
25
this.ISBN= ISBN;
this.publisher= publisher;
26 }
27 public String getName(0 {
return name;
28
29
30 }
31e public String getAuthor() {
32
33
return author;
}
34
35o public long getISBN() {
36
37
return ISBN ;
38e public String getPublisher() {
39
40
41o public void setBooksInfo(String name,String author,String publisher ,long ISBN)
42 {
43
44
45
46
47 }
480 public void getBooksInfo() {
49 {
50
51
52
53
return publisher;
}
this.name=name;
this.ISBN=ISBN ;
this.author=author;
this.publisher=publisher;
System.out.println("Book Name:" + name);
System.out.println("ISBN Number.:"
System.out.println("Author:"
System.out.println("Publisher:"
ISBN);
author);
publisher):
Transcribed Image Text:1 package postu; 2 3 public class krazy { public static void main(String [] args){} private String name; private String author; private String publisher; private long ISBN 7 8 9o public void Book() { 10 11 12 13 14 15 public void setName(String name) { 16 17 } 18e public void setAuthor(String author) { 19 this name name this ISBN-ISBN this author-author; this publisher-publisher; } this.name= name; this.author= author; 20 } 210 public void setISBNnumber(long ISBN) { 22 23 } 24e public void setPublisher(String publisher) { 25 this.ISBN= ISBN; this.publisher= publisher; 26 } 27 public String getName(0 { return name; 28 29 30 } 31e public String getAuthor() { 32 33 return author; } 34 35o public long getISBN() { 36 37 return ISBN ; 38e public String getPublisher() { 39 40 41o public void setBooksInfo(String name,String author,String publisher ,long ISBN) 42 { 43 44 45 46 47 } 480 public void getBooksInfo() { 49 { 50 51 52 53 return publisher; } this.name=name; this.ISBN=ISBN ; this.author=author; this.publisher=publisher; System.out.println("Book Name:" + name); System.out.println("ISBN Number.:" System.out.println("Author:" System.out.println("Publisher:" ISBN); author); publisher):
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education