So, I've got this code, more like a script. It's a random generator for my role-plays. Got it all coded nice and neat runs perfectly....... In command line. How do I make this
<pre>
package role.play.generator;
import java.util.Random;
public class RolePlayGenerator {
public static void main(String[] args) {
Random randomgenerator = new Random();
int hairsel = randomgenerator.nextInt(5);
int clothsel = randomgenerator.nextInt(4);
String[] clothtypes = {"Dress","Skirt","Robe","Pants"};
String[] haircolours = {"Blue", "Red", "Blonde","Black","Purple"};
double height = Math.floor(Math.random()*9+58);
String Haircolour="Hair Colour:"+haircolours[hairsel];
String Clothing="Clothing:"+clothtypes[clothsel];
String Height = "Height:"+height+" Inches";
System.out.println(Height);
System.out.println(Clothing);
System.out.println(Haircolour);
}
}
Output the prints, into a window with a button to run it again?
I'm week in and this is only functional as of yesterday.