Re: input controlled loop
Please edit your post and wrap the code in code tags to make it easier to read.
BB Code List - Java Programming Forums - The Java Community
Re: input controlled loop
Stuffing all your code into the main method is a bad idea. It will just lead to lots of ugly, hard to maintain code and probably sobbing. Think about how your program can be broken down into smaller chunks and move those chunks into other methods.
Re: input controlled loop
sorry this is my first time programming and i'm not familiar with a lot of the ways you can do things, so this is as far as i understand at the moment,.. what i'm looking for is a method of looping that with only loop if i give a command, in this case , twist, and go on to a different command if i type twist.
i realise that its probly very hard to read through my program i will attempt to make them more readable and organised in future.
Re: input controlled loop
Quote:
method of looping that with only loop if
That sounds like you want to use a while loop.
Quote:
go on to a different command if
That sounds like you want to use an if statement.
Please edit your post and wrap the code in code tags to make it easier to read.
BB Code List - Java Programming Forums - The Java Community