Data Class: Book Information
Problem Description
Data class: Book Information
In this problem, you will create a program that defines a Book class with title, author name, and page count fields, stores book information read from standard input, and displays it in the specified format to standard output.
Learning Objective: Bundle multiple related information into class to streamline data organization and management
Create a class to manage library book information. Bundle three pieces of information into one class: title, author name, and page count. Define three fields in the Book class — String title, String author, and int pages — and assign the values read via Scanner to each field.
Input
Line 1: Title (string)
Line 2: Author name (string)
Line 3: Page count (integer, 1-2000 pages)
Output
Book Information:
Title: [title]
Author: [author name]
Pages: [page count]pages
```java
## Examples
### Example 1: Java Programming Book
Input:
```java
Java Programming
John Smith
450
```java
Output:
```java
Book Information:
Title: Java Programming
Author: John Smith
Pages: 450pages
```java
### Example 2: Data Structures and Algorithms Book
Input:
```java
Data Structures and Algorithms
Emily Johnson
680
```java
Output:
```java
Book Information:
Title: Data Structures and Algorithms
Author: Emily Johnson
Pages: 680pages
```java
### Example 3: Minimum Page Book
Input:
```java
Hello World
Beginner Author
1
```java
Output:
```java
Book Information:
Title: Hello World
Author: Beginner Author
Pages: 1pages
Test Cases
※ Output examples follow programming industry standards
Clean Code Robert Martin 320
Book Information: Title: Clean Code Author: Robert Martin Pages: 320pages
The Pragmatic Programmer David Thomas 520
Book Information: Title: The Pragmatic Programmer Author: David Thomas Pages: 520pages
Your Solution
You have 10 free executions remaining
