I am making a Recruit Army System on my Java Text Based Strategy RPG, so here are the integers by the way:

public int Swordsman; //Price: 10 each
public int Ronin; //Price: 10 each
public int Rider; //Price: 20 each
public int Archer; //Price: 10 each
public int Wizard; //Price: 20 each
public int Mage; //Prince: 20 each
public int Destroyer; //Price: 40 each
public int Soldiers; //Price: 30 each
public int totalarmies = Swordsman+Archer+Wizard+Mage+Destroyer+Soldiers;

So first off, I made some dialogues that will display the ones I will recruit: