package com.company;
import java.util.Scanner;
public class Main {
public static void main
(String[] args
) {
String name, gender, race, charclass
;
int str, dex, con, intel, wis, cha;
Scanner input
= new Scanner
(System.
in);
System.
out.
println("Please enter your character's name: ");
name = input.nextLine();
System.
out.
println("Please enter your gender (Male/Female): ");
gender = input.nextLine();
System.
out.
println("Please enter your race (Available races: Human/Elf/Dwarf): ");
race = input.nextLine();
System.
out.
println("Please enter your class (Available classes: Fighter/Paladin/Ranger/Wizard/Thief): ");
charclass = input.nextLine();
System.
out.
println("Please enter your Strength as an Integer: ");
str = input.nextInt();
System.
out.
println("Please enter your Dexterity as an Integer: ");
dex = input.nextInt();
System.
out.
println("Please enter your Constitution as an Integer: ");
con = input.nextInt();
System.
out.
println("Please enter your Intelligence as an Integer: ");
intel = input.nextInt();
System.
out.
println("Please enter your Wisdom as an Integer: ");
wis = input.nextInt();
System.
out.
println("Please enter your Charisma as an Integer: ");
cha = input.nextInt();
Character Charo
= new Character(name, gender, charclass, race, str, dex, con, intel, wis, cha
);
System.
out.
println("Character Information: ");
System.
out.
println("Name: " + Charo.
getName());
System.
out.
println("Gender: " + Charo.
getGender());
System.
out.
println("Class: " + Charo.
getCharClass());
System.
out.
println("Race: " + Charo.
getRace());
System.
out.
println("STR: " + Charo.
getSTR());
System.
out.
println("DEX: " + Charo.
getDEX());
System.
out.
println("CON: " + Charo.
getCON());
System.
out.
println("INT: " + Charo.
getINT());
System.
out.
println("WIS: " + Charo.
getWIS());
System.
out.
println("CHA: " + Charo.
getCHA());
System.
out.
print("TOTAL " + Charo.
getTotalStat());
}
}
package com.company;
private int STR, DEX, CON, INT, WIS, CHA, total;
WIS, int CHA) {
this.CharClass = CharClass;
this.Gender = Gender;
this.Race = Race;
this.STR = STR;
this.DEX = DEX;
this.CON = CON;
this.INT = INT;
this.WIS = WIS;
this.CHA = CHA;
TotalStat();
}
}
}
public void setCharClass
(String CharClass
) {
this.CharClass = CharClass;
}
public void setGender
(String Gender
) {
this.Gender = Gender;
}
public void setRace
(String Race
) {
this.Race = Race;
}
public void setSTR(int STR) {
this.STR = STR;
}
public void setDEX(int DEX) {
this.DEX = DEX;
}
public void setCON(int CON) {
this.CON = CON;
}
public void setINT(int INT) {
this.INT = INT;
}
public void setWIS(int WIS) {
this.WIS = WIS;
}
public void setCHA(int CHA) {
this.CHA = CHA;
}
}
return Gender;
}
return Race;
}
public String getCharClass
() {
return CharClass;
}
public int getSTR() {
return STR;
}
public int getDEX() {
return DEX;
}
public int getCON() {
return CON;
}
public int getINT() {
return INT;
}
public int getWIS() {
return WIS;
}
public int getCHA() {
return CHA;
}
public int getTotalStat() {
return total;
}
public void TotalStat() {
total = getCHA() + getCON() + getDEX() + getINT() + getSTR() + getWIS();
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}