- Joined
- Apr 13, 2008
- Sythe Gold
- 0
- Messages
- 212
Follow this guide link: http://www.sythe.org/showthread.php?t=704103
This is needed, he messed up on some stuff.
This is straight from JAVA conventions:
for catch and try blocks it should be like this:
Thats how it is suppose to be
1 tab space down from the code for try
same space as try for catch
7 spaces for error printed in CMD.
also this is NOT from java conventions, they didn't explain it well and made code still look messy.
for declarations he messed up this is how I do it and how it SHOULD be
as you see, if you are only using the declarations inside the class ONLY.
put private.
and there should be 4 spaces then declared, or else code looks messy.
Thanks,
Xk1llXk1llX
This is needed, he messed up on some stuff.
This is straight from JAVA conventions:
for catch and try blocks it should be like this:
Code:
try {
code;
catch(IOException e)
System.out.println("Error dectected line XXXX.");
Thats how it is suppose to be
1 tab space down from the code for try
same space as try for catch
7 spaces for error printed in CMD.
also this is NOT from java conventions, they didn't explain it well and made code still look messy.
for declarations he messed up this is how I do it and how it SHOULD be
Code:
int awesome;
private int[] sharks = { 13099, 19329, 3999 };
boolean sharksareawesome;
as you see, if you are only using the declarations inside the class ONLY.
put private.
and there should be 4 spaces then declared, or else code looks messy.
Thanks,
Xk1llXk1llX



