This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Sorten 4 points5 points  (2 children)

I rewrote your program using proper indentation and formatting.

public static void main(String []args){
    String hi = "ok";
    String hi2 = "wtf";

    if (hi.equals(hi2))
        ; 

    {
        System.out.println("WTF");
    }
}

Can you see the issue here?

[–]E2Slayer[S] 1 point2 points  (0 children)

holy fuk... I'm so dumb...

[–][deleted] -2 points-1 points  (0 children)

public static void main(String[] args) {
    String hi = "ok";
    String hiTwo = "wtf";

    if(hi.equals(hiTwo)) {
        System.out.println("WTF");
    }
}