In your codes, your 'while' statement is missing.. that makes an error because a do loop must be paired with a while statement at the bottom... supplying the while statement you can control the loop...
Type: Posts; User: mrowkoob
In your codes, your 'while' statement is missing.. that makes an error because a do loop must be paired with a while statement at the bottom... supplying the while statement you can control the loop...
Your getting java.lang.ArrayIndexOutOfBoundsException because of your variable one.. you initialize it with a value 1.. so When the condition is satisfied the value of your variable one will be...
Your welcome... I don't know the exact output you want it to be.. It was not stated well in you problem.:confused:
I tried running your program.. and I got this result:
Ex.
Temperature 1 in Kelvin is 303.15
Temperature 1 in Ceslius is 0.0
Temperature 1 in Fahrenheit is 0.0
Temperature 2 in Kelvin is...
Definitely... using the method setLocationRelativeTo(null) will set the position of your frame at the center.