Glad you got it working.
Type: Posts; User: Norm
Glad you got it working.
What variable has the invalid value that causes the error message to be displayed?
Add that variable to the message so you can see what the invalid value was.
Add the invalid code to the error message so you can see what the computer sees.
Please post all of the current code.
coding conventions recommend that there NOT be any code on the same line following a {
or on the same line before a } so that these characters can be easily...
If the javac command didn't create a .class file then there must be a problem with the way it is being executed.
Did the javac command generate a class file when it was executed?
I'm using D:\Java\jdk1.7.0.7\bin\javac.exe -Xlint ....java
vs 1.7.0_11
I'll have to get the newer version to see if it has...
There is no -Xlint command. -Xlint is an option for the javac command.
Can you copy the contents of the command prompt window and paste it here from when you compile the code?
On windows: To...
What is the "it" you are talking about?
One potential problem I see is that the statements following the if statements are not included in {}s. Use of {}s makes the code easier to read and will...
The X in -Xlint is uppercase
Your code has some problems that the compiler/IDE should tell you about. Use the javac program's -Xlint option to see the messages. Here is my commandline to compile the code:...
equals() is a method that belongs to a class. You need to connect the class to the method with a .
The code in the () of the if statement is not a valid boolean expression.
The code has a String...
Use the equals() method for comparing Strings, not the == operator.
if (Domicile == "A")
How are you trying to execute the class file? What is on the commandline you are using?
The java program requires that there be a specific main() method defined in the class that is passed to it....