I never mess with java, but what I need seems like a pretty basic thing to do. Heres what I need help with.
I have a text box and enter button setup I just need it to display different results for a certain range.
For example lets say I want the person to enter results 1-100, but I only want to display 10 different results 1-10, 11-20, 21-30, etc.
Instead of coding it manually like if (e.keyCode == 1) then doing it again for 2 and so on. Is there a simple way to tell the code, if = 1-10 then go here instead of putting if code for every number?
I have a text box and enter button setup I just need it to display different results for a certain range.
For example lets say I want the person to enter results 1-100, but I only want to display 10 different results 1-10, 11-20, 21-30, etc.
Instead of coding it manually like if (e.keyCode == 1) then doing it again for 2 and so on. Is there a simple way to tell the code, if = 1-10 then go here instead of putting if code for every number?