Glad you got it working.
Type: Posts; User: Norm
Glad you got it working.
Does it compile, execute and do what you want? Then you've solved that problem.
One thing you will want to do some time is test the that the contents of text6 is valid.
You'll see how to do that...
if(<a boolean expression>) {
// do this if true
} // end if()
<a boolean expression> should be a boolean expression that evaluates to true or false.
Your text book should have examples of...
Look at the choice of operators that you can use to compare two numbers.
== is one
< is one
What are the other choices?
Do any of them sound like they would do what you want.
==< is NOT a valid...
Where is your code to test the contents of text6?
You will need to get the contents of the textfield and convert it to an int value to be able to compare it to 40.
See the Integer class for a...