Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

java prog

Name: Anonymous 2011-11-04 15:36

Hey /g/. I'm trying to learn a bit of java here. I want this skeleton code

http://pastebin.com/c2YRCWWL

to

http://pastebin.com/4T5HgVts

Name: Anonymous 2011-11-04 15:37

The thing is, I'm not good with logic. I know I need a shit ton of for loops, but what would I do?

Name: Anonymous 2011-11-04 15:38

Do your own homework, you lazy little git!

Name: Anonymous 2011-11-04 15:39

>Implying I haven't already tried

Name: Anonymous 2011-11-04 15:45

Hey /g/.

Name: Anonymous 2011-11-04 15:48

>>5
/g/ is too smart to need help with something like this.
OP, go back to /pro- oh, wait. Disregard that, you're in the right place.

Name: Anonymous 2011-11-04 15:49

^Well? I've tried a lot of stuff and ended up fucking up a lot so I just started from scratch.

Name: Anonymous 2011-11-04 15:51

/g/ recommends gentoo

Name: Anonymous 2011-11-04 15:53

can you kind sirs assist me with how to change the commented values...this is my first day at Java

(and no its not for an assignment)

Thank you :D

=============

package Class;

public class UserClass{
public String UserID;
public String UserPasswd;


public String getUserID() {
return UserID;
}
public String getUserPasswd() {
return UserPasswd;
}
public void setUserID( String userID){
this.UserID = userID;
}
public void setUserPasswd(String userPasswd) {
this.UserPasswd = userPasswd;
}

public void handleUser(){

System.out.println(getUserID());
//change userID value
System.out.println(getUserID());

System.out.println(getUserPasswd());
//change userPasswd value
System.out.println(getUserPasswd());

}

}

Don't change these.
Name: Email:
Entire Thread Thread List