0914 段階1

This commit is contained in:
2026-09-14 15:02:02 +09:00
parent 8350370dbd
commit bb6a9dba94
2 changed files with 14 additions and 1 deletions

View File

@@ -3,6 +3,15 @@ public class BasicCheck1 {
public static void main(String[] args) { public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ // TODO 自動生成されたメソッド・スタブ
Book book = new Book();
book.title = "吾輩は猫である";
book.author = "夏目漱石";
book.price = 800;
System.out.println(book.title);
System.out.println(book.author);
System.out.println(book.price);
} }

View File

@@ -1,4 +1,8 @@
public class Book { public class Book {
String title;
String author;
int price;
} }