Style and readability
Just a quick note about indentation. You can show your code between <pre></pre> tags, with indents, and it'll make it a LOT easier for people to read & understand here.
For example:
Doesn't that look so much clearer?
(And if anyone complains that their tabs don't cut & paste well into LJ, that's why the styleguide at Javaranch says to use spaces instead of tabs to indent, among other reasons)
For example:
if( keepGoing ) {
System.out.println( "MySocket calling getMoney()" );
moneyInserted = changeMachine.getMoney();
try {
System.out.println("My Socket attempting to create socket");
MyClient = new Socket("192.168.101.1", 1024);
System.out.println("Socket created");
output = new DataOutputStream( MyClient.getOutputStream() );
}
catch (IOException e) {
System.out.println(e);
output = null;
}
}
Doesn't that look so much clearer?
(And if anyone complains that their tabs don't cut & paste well into LJ, that's why the styleguide at Javaranch says to use spaces instead of tabs to indent, among other reasons)
