Ronayne
asked on
change java file to bean
Hi Experts, if I have a java file that has a main method and executes on its own, what changes are needed to change it to a bean?
ASKER
So a bean can have a main method?
ASKER
So if I have a java file declared like so:
import statements
public class sample {
public static void main (String args[]) throws Exception {
}
}
Do I need to make the changes you suggested?
import statements
public class sample {
public static void main (String args[]) throws Exception {
}
}
Do I need to make the changes you suggested?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok, ill try that, thx
8-)
private int someVal;
public void setSomeVal(int someVal) {
this.someVal = someVal;
}
public int getSomeVal() {
return someVal;
}