実験課題1

Exercise 1(課題1) See the section from 2.1.1. "About Exception" to 2.1.2. "printf Debugging". Show the execution result of Figure 4 by using printf debugging like Figure 7. Further, explain the cause of failures and propose the fix. Follow the instructions below to show the result.

  1. create the Java application project named chapter2kadai1.
  2. create main method to run this program.
  3. take a screenshot of the execution result.

(2.1.1.節から2.1.2.節をよく読み、chapter2kadai1プロジェクトを作成し、2.1.2.節の手順に則って、図8のように図4のプログラムをprintfデバッグしなさい。その際、実行結果を示し、エラーの原因とエラーを訂正するためにはどうすればよいか説明しなさい。)