i dont believe my scans are the issue im using different scanners for each type so i dont run into that issue its why i have scan1, scan2,scan3
Type: Posts; User: iamlost123
i dont believe my scans are the issue im using different scanners for each type so i dont run into that issue its why i have scan1, scan2,scan3
i tried that thats not the issue just makes my hit "a" twice then acts like i hit my spin option anyway
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
this is all im getting as an error
instead of going down the line after the if statement is parsed it kicks it out to the begining do statement
it seems to be splitting the string and placing in array but after that it errors
String.charAt(int) line: not available
Roulette.main(String[]) line: 41
a
If you bet a number leave a space between each number
You got12
Congratz you Won 132
Sorry you lost 12
You now have 488$
Type: b to bet
Type q to quit
Two spots in my code not working as enteneded if anyone could help tell me were im going wrong would be grateful in one spot it seems to be skipping threw my if statement and the other is not...
if (bet == 'a'|| bet == 's')
{
if (bet == 'a')
{
System.out.println("If you bet a number leave a space between...
lol yeah but it will give me an idea of what to do right now im lost looking at array turtorials not helping much
thats what i figured but i suck with arrays im trying some various ways but i keep screwing it up any possible examples?
Enter Wheel Size/odds
2
Do you want to play?
Type: b to bet
Type q to quit
b
How much do you want to bet?(1-500)
12
You bet 12$
What number do you want to bet on ?1-2
im new to java and i have trouble with array not sure if i need to make a new static class i believe i do but my code works exactly as i want it to but im missing 2 things a counter counting the...
bah i have given up and rewrote the code to simple if statements since the get commands are screwing with me but thanks
Exception in thread "main" java.lang.NoClassDefFoundError: FileNotFoundException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)...
I cant get my code to compile keeps having issues with the methods/classes...... im trying to build a roulette table
A bet is: The Player picks a particular number and commits one to as many...