System.out.println(getUserID()); //to view the orig value
//change userID value //to change UserID in setUserID()
System.out.println(getUserID()); //to check value change
System.out.println(getUserPasswd());//to view the orig value
//change userPasswd value //to change UserPasswd in setUserPasswd()
System.out.println(getUserPasswd());//to check value change
if i go
setUserID((System.in)); it tries to force this gay shit - - -
public void setUserID( InputStream in){
this.UserID = in;
}
Name:
Anonymous2011-11-04 16:04
seriously not for an assignment, my university semester has finished,
trying to make an application because i'm fucking lazy (not sure how that works)
Name:
Anonymous2011-11-04 17:49
bumping for answer
Name:
VIPPER2011-11-04 17:51
bumping for JEWS
Name:
Anonymous2011-11-04 17:54
real helpful vipper,
glad i'm no longer pounding the waste gash you crawled out of
I assume u are trying to read values in from the keyboard? not just pass hard coded values right?
Name:
Anonymous2011-11-04 19:42
if so:
tring keyboardInput = "";
InputStreamReader converter = new InputStreamReader(System.in);
BufferedReader in = new BufferedReader(converter);
keyboardInput = in.readLine();
setUserID(keyboardInput);
should be private as well, otherwise getters and setters are kind of pointless
Name:
Anonymous2011-11-04 20:13
If you are not typing in anything, just call the set method. If you are typing something, then just use scanner and assign it to a variable and put that variable as an argument to the set method.