Search found 4 matches

by mon.king
Fri Dec 05, 2003 2:53 pm
Forum: General
Topic: yes / no
Replies: 2
Views: 221

yes / no

i'm trying to get a program to ask a question that requires a yes or no answer, and then loops until the answer is no. i have managed to get it to loop but the loop works no matter what the user types in. is anyone able to help.
by mon.king
Wed Nov 26, 2003 5:59 pm
Forum: Java
Topic: trying to get the hang of loops!!!!!!
Replies: 4
Views: 672

trying to get the hang of loops!!!!!!

i'm trying to get a program to loop so that the correct information is input. the program asks for a xam result between 0 and 10 but if the user types a number larger than 10 the program should ask again for a number between 0 and 10. i have so far only managed to get this to happen once and if the ...
by mon.king
Thu Nov 20, 2003 2:28 pm
Forum: Java
Topic: Bigger than int
Replies: 3
Views: 571

have tried long but i still get the same outcome as i did while using int. are you able give me an example of how to use long?
by mon.king
Thu Nov 20, 2003 1:31 pm
Forum: Java
Topic: Bigger than int
Replies: 3
Views: 571

Bigger than int

i'm new to java and have been trying to compile a application to work out the average number of heart beats a human has. the file works but int is not big enough for the data i'm using. is anyone able to help me with a command that is bigger than int?