実験課題3
Exercise 3(課題3) See the section 2.3.1. "Usage of Debugger". Show the screenshot of "variable tab" in the debugger just before throwing exception in the program of Figure 12 and Figure 13, the debugged sourcecode, and its execution result. Further, explain what variables should assign in variable tab and cause the exception throwing and propose the fix. Follow the instructions below to show the result.
- create the Java application project named
chapter2kadai3. - create
mainmethod to run debugged program. - take a screenshot of the execution result.
(2.3.1.節をよく読み、プロジェクトchapter2kadai3を作成し、図12および図13に示すプログラム作成しなさい。更にデバッガを使ってデバッグし、例外が発生する直前の状態の変数タブの内容をスクリーンショットで示しなさい。その結果、変数タブの中で.99999999のような数値を取る変数は正しくはどの様な値を変数が持っておくべきなのか、例外が発生した理由にどう関係するのか説明し、正しく動くコード修正を行ってそのソースコードと実行結果を示しなさい。)