also , we laern how to write , compile, and run a simple java program.
There is some question in this lab that require us to use the scanner because we need to input some variable which is not a constant value. This type of program a little bit confusing and a bit difficult for me to understand at first, but after doing it for some time , I able to understand a little bit how to use the scanner in java.
We need to use this scanner when there is variable that we want to calculate or want to convert something to other thing. for example in this lab, we need to calculate a BMI. Means that there is variable that we need to input to calculate the BMI. The variable is changes and does not constant. Hence, in this case we need to use scanner.
That is all from me for this entry. thank you.
p/s: link to Atika`s blog
ssk3100.blogspot.com
No comments:
Post a Comment