Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a54a0c7

Browse files
Write a program that prints on separate lines
Write a program that prints on separate lines, the name of your favorite book, its author, category, price, and total number of pages. Label each piece of information in the output
1 parent c49d1e0 commit a54a0c7

File tree

1 file changed

+15
-0
lines changed
  • textbook work/java software solutions/intro

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
public class PP1 {
2+
/**
3+
* Write a program that prints on separate lines, the name of your
4+
* favorite book, its author, category, price, and total number of
5+
* pages. Label each piece of information in the output.
6+
* */
7+
8+
public static void main(String[] args){
9+
System.out.println("Book: Grit\n" +
10+
"Author: Angela Duckworth\n" +
11+
"Category: Self Help\n" +
12+
"Price: 9ドル.68\n" +
13+
"total pages: 368");
14+
}
15+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /