hi
A problem your having genarating your random numbers is
1. your import is not correct try util.Random
2. You need to do one more thing with your random numbers. Do you know about casting or...
Type: Posts; User: dave_alan
hi
A problem your having genarating your random numbers is
1. your import is not correct try util.Random
2. You need to do one more thing with your random numbers. Do you know about casting or...
hi
just making sure you imoported the needed class for your scanner.
import java.util.*;
this must be at the very top of your code.
also keyboard.nextdouble();
you must use capitals on the...
It seems like a lot of code to comlete your task alright. You could try a few else if statments to get the same results.
if (symbol.equals("+")) {
result = first + second;
} else if...
I guess i was wrong there seems to be something wrong with compiler. What text editor are you using?
Can you compile any code, or is it just with GUI stuff your having a problem?
Nothing wrong with compiler.
When using this type of dialog box you need to pass in the message String and also the title String.
try some thing like:
JOptionPane.showMessageDialog(null,...
Try something like this. Read up on your and(&&) and or(||) condisions. You will meet them very often.
char letter = 'A';
System.out.println("Enter a value between 9.01 and 10.00 ");
//read...