if

Discussion in 'Plugin Development' started by TheGamesHawk2001, Aug 25, 2014.

Thread Status:
Not open for further replies.
  1. Can someone give me some advice on when to use "if". Thankssss
     
  2. Offline

    rfsantos1996

    What? You should learn Java (and what you want to do) before asking this
     
  3. rfsantos1996 I kind of know what it does, just do t know what circumstances I would intact use "if"
     
  4. Offline

    Onlineids

    Zupsub, megasaad44, timtower and 4 others like this.
  5. Offline

    FerusGrim

    Code:java
    1. if (canCodeJava(you)) {
    2. doSomething();
    3. } else {
    4. learn2Java();
    5. }
     
  6. Offline

    mazentheamazin

    No. Just no.
     
  7. Offline

    KingFaris11

    Unless static, using the "this." prefix makes it look neat. (Y) Time to get hate.
     
  8. Offline

    FerusGrim

    I actually never use 'this' to refer to something inside of my class unless something inside my method conflicts with a value in my class.

    I notice people who do, but never anyone who's done it consistently. :p
     
    _LB, izarooni and rfsantos1996 like this.
  9. Offline

    xTrollxDudex

    I do it consistently. I configure it to make a warning if it is unqualified (which makes referencing inner classes very messy, lol)
     
    KingFaris11 likes this.
  10. Offline

    baugh70

  11. Offline

    Bobit

    TheGamesHawk2001

    "Kinda know what it is" as in "if means if."?
    If you don't know this, then us just telling you were it's used would be useless to you, because you obviously must not understand most of java, and are going to have to take a class in which they tell you this anyhow.

    (Edit: or just study oracle's tutorial. Let's not get into another debate on what's the best way for beginners to learn.)
     
    gdude2002 likes this.
  12. Offline

    gdude2002

    TheGamesHawk2001 - You can find everything you need to know here: http://docs.oracle.com/javase/tutorial/java/index.html

    This is the forum for Bukkit, but you're asking a very, very basic Java question. If you want to write Bukkit plugins, you will need to know Java well. Please do all of Oracle's Java tutorials, write a few simple applications, and then come back to the forums.
     
    Bobit likes this.
  13. Offline

    KingFaris11

    I do it consistently, and most of the SRC I've seen on GitHub also does. :) It's neat. <3

    "this." prefix <3
     
    gdude2002 likes this.
  14. Offline

    PandazNWafflez

  15. Offline

    FerusGrim


    [me] gives hate.
     
    KingFaris11 likes this.
Thread Status:
Not open for further replies.

Share This Page