1段階目完了

This commit is contained in:
m-endo
2026-09-14 14:50:43 +09:00
parent e8b163e1b6
commit 29c3693c68
7 changed files with 59 additions and 3 deletions

View File

@@ -2,8 +2,15 @@
public class BasicCheck1 {
public static void main(String[] args) {
// 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,6 @@
public class Book {
String title;
String author;
int price;
}