実験課題1

Exercise 1(課題1) See the section 4.1.1. "About Class". Show the complete source code of Figure 3 and Figure 4, and its execution result as a screenshot. Follow the instruction below to show the result.

  1. create the Java application project named chapter4kadai1.
  2. select the project that you want to add new class and right-click it in the project pane of NetBeans. Right click on current project in the project pane
    Figure:Right click on current project in the project pane
  3. select New > Java Class... from the rigth-click menu items
  4. input User as Class Name and chapter4kadai1.records as Package Name in New Java Class dialog, and select Finish button. Add a class by using New Java class dialog
    Figure:Add a class by using `New Java class` dialog
  5. open User.java in chapter4kadai1.records of source package, and modify the program of Figure 3 with proper step in the editor pane of NetBeans.

(4.1.1.節をよく読み、chapter4kadai1プロジェクトを作成し、図3と図4のプログラムを作成し、ソースコードと実行結果を示しなさい。なお、図3のプログラムの追加方法は上記の手順に則ること。)