• Log in or sign up for an account here: https://www.sythe.org/login

Some fix-ups for java conventions posted

xk1llxk1llx

awesomeness lurks within this playa ;)

$100 USD Donor New
Joined
Apr 13, 2008
Sythe Gold
0
Messages
212
Tier 1 Prizebox
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:
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
 
Runescape Gamblingrunescape gambling
Back
Top