Peter Chan
asked on
Problem to the codes
Hi,
I don't know what the problem is
as I try to build the project, having the above codes, within Eclipse Java project. When building it, it does show errors.
I don't know what the problem is
package com.hkicl.ecp.hkanvm.b1;
public class BankAcctNoValidator_1 {
public int ValAcctNo (String BankCode,
String BankAcctNo)
{
}
}
as I try to build the project, having the above codes, within Eclipse Java project. When building it, it does show errors.
what's the exact error message you got?
ASKER
I only get the attached. It does not show with more details.
t974.png
t974.png
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks a lot.
I've added few lines to that and when I put cursor to that, I get the attached. what to adjust?
t975.png
I've added few lines to that and when I put cursor to that, I get the attached. what to adjust?
t975.png
ASKER
Please disregard my current reply.
You should try compiling to make sure it is showing you the correct lines. Also in the lower panel where you are on the console tab, if you switch to the problems tab it will tell you all the compile errors you have. This is easier than hovering over the particular line.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
BTW, I want to check if it is possible to convert one string to number, and also to detect the error, if it is not possible. how?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Many thanks Jeffrey.
I put these
t976.png
I put these
try
{
int value = Integer.pareseInt(str2);
}
catch(NumberFormatException nfe){}
...
but I get the attached.t976.png
ASKER
To 3rd line in above.
Oops typo. It is parseInt. There was an extra e in there
ASKER
It is complaining that both variables were not declared. Whatever example you got this from probably has some more code creating the frame variable to be passed in.
ASKER
Any other example to show one message?
ASKER
Or prompt one input?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Many thanks.
How to prompt one input?
How to prompt one input?