rj
2013-04-18 17:41:23
This program is based off the SRL staff, I was bored:
I am trying to make more and moe complicated programs to advance my knowlege
What should I make next?(Java people) [ @Brandon @J J @senrath @euphemism @cause @Sin @Justin @tealc @masterBB @Le Jingle] Nothing to hard though I am still a beginner
import java.util.Arrays;
public class Staff {
boolean active, developer, repanabled = false;
String Name;
String LeaderType;
public void Display() {
System.out.println("You chose " + Name);
System.out.println("Leader type:" + LeaderType);
if (developer == true) {
System.out.println(Name + " is a developer!");
} else {
System.out.println(Name + " is a not developer");
}
if (repanabled == true) {
System.out.println(Name + " has reputation enabled!");
} else {
System.out.println(Name + " does not have reputation enabled!");
}
}
public void CheckReputation() {
String[] EnabledRep = { "MasterBB", "Justin", "YoHoJo", "Zyt3x",
"Coh3n", "Flight", "Zyt3x", "Daniel", "BenLand100", "BraK" };
if (Arrays.asList(EnabledRep).contains(Name)) {
repanabled = true;
} else {
repanabled = false;
}
}
public void CheckActive() {
String[] Active = { "MasterBB", "Justin", "YoHoJo", "Zyt3x", "Coh3n",
"Flight", "Hobbit", "Zyt3x", "Daniel" };
if (Arrays.asList(Active).contains(Name)) {
active = true;
} else {
active = false;
}
}
public void CheckDeveloper ( ) {
String[] Developer = { "Coh3n", "Flight", "Hobbit", "n3ss3s", "NCDS",
"Wizzup?", "WT-Fakawi", "Zyt3x" };
if (Arrays.asList(Developer).contains(Name)) {
developer = true;
}
else {
developer = false;
}
}
public void CheckType() {
String[] MarketLeader = { "MasterBB" };
String[] SuperMod = { "Justin", "YoHoJo", "Zyt3x" };
String[] Admin = { "RAM", "nielsie95", "Hobbit", "Daniel", "Coh3n",
"BraK", "BenLand100" };
String[] Leader = { "Wizzup?", "WT-Fakawi" };
LeaderType = "None";
if (Arrays.asList(MarketLeader).contains(Name)) {
LeaderType = "MarketLeader";
}
if (Arrays.asList(SuperMod).contains(Name)) {
LeaderType = "SuperMod";
}
if (Arrays.asList(Admin).contains(Name)) {
LeaderType = "Admin";
}
if (Arrays.asList(Leader).contains(Name)) {
LeaderType = "SRL leader";
}
}
public void setName(String PName) {
Name = PName;
}
public static void main(String[] args) {
Staff SRLlist = new Staff();
SRLlist.developer = false;
SRLlist.setName("YoHoJo");
SRLlist.CheckType();
SRLlist.CheckDeveloper ();
SRLlist.CheckActive();
SRLlist.CheckReputation();
SRLlist.Display();
}
}I am trying to make more and moe complicated programs to advance my knowlege
What should I make next?(Java people) [ @Brandon @J J @senrath @euphemism @cause @Sin @Justin @tealc @masterBB @Le Jingle] Nothing to hard though I am still a beginner