The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Help with a Game that's gone wrong.

HI i currently have this code:

//Imports packagesimportjava.io.*;importjava.lang.*;//class nameclass Parkour
//i think this is rightpublicvoidstatic main (String[] args )//These varibles have been declared right{String proname ="";String programq ="";char programa ="y";String programc ="";int Strength ="";int Agility ="";int Charisma ="";System.out.println("Sub Question 3");System.out.println("\nBy Harry Thompson cook");//And here's where the problem starts:System.out.println("\nTron:Parkour");System.out.print("\nWhat is your name:");//Hope i've done this rightInputStreamReader isr =newInputStreamReader(System.in);BufferedReader buffer =newBufferedReader( isr );//All Good?try{
proname = buffer.readline();
buffer.close();}catch(IOException e ){System.out.println("Invalid Name choose again program!");}System.out.println("\nWelcome"+ name);System.out.print("\nWe must go through some basic setup options, Proceed y/n?");InputStreamReader isr =newInputStreamReader(System.in);BufferedReader buffer =new Bufferedreader( isr );try{
programq = buffer.readline();
buffer.close();}catch(IOException e ){System.out.println("Invalid Input");}if(programq == programa){System.out.println("\n You have 10 energy point's");System.out.println("\n You can use these to upgrade either");System.out.println("\nStrength");System.out.println("\nAgility");System.out.println("\nOr Charisma");System.out.println("\nEach of these Qualties can help you out on your mission");System.out.println("\nStrength will help you out when the going get's tough");System.out.println("\nAgility makes it easier to run from fights and can help in infiltrating buildings");System.out.println("\nIf you choose Charisma you could use your looks to help you out in tough situation's");System.out.println("\nNow it is the time to choose what skills you want:");System.out.print("\nHow much energy will you give to strenth?");InputStreamReader isr =newInputStreamReader(System.in);BufferedReader buffer =new Bufferedreader( isr );try{
Strength = buffer.readline();
buffer.close();}catch(IOException e ){System.out.println(\n You must input a number!);}{}else{System.out.println("Setup Will Exit");}

So i know it's messy but if someone could help me out it would be very much appreciated.