Quick, easy clear-up

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Newjavabug
    New Member
    • Mar 2008
    • 5

    Quick, easy clear-up

    I have a test tomorrow over Java, and I have been practicing with Javabat.com. My question concerns the difference in printing with Java and javascript.

    In Javascript (or using Javabat) I would say:

    return "true";

    In java, is this right:
    System.out.prin t ("true");

    I tend to confuse the puntuation, so I want to clear this up before tomorrow, but our book uses javascript too.

    --------
    Thanks you in advance!
  • Laharl
    Recognized Expert Contributor
    • Sep 2007
    • 849

    #2
    Your Java is correct.

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by Newjavabug
      I have a test tomorrow over Java, and I have been practicing with Javabat.com. My question concerns the difference in printing with Java and javascript.

      In Javascript (or using Javabat) I would say:

      return "true";

      In java, is this right:
      System.out.prin t ("true");

      I tend to confuse the puntuation, so I want to clear this up before tomorrow, but our book uses javascript too.

      --------
      Thanks you in advance!
      return "true"; in Javascript does not print anything anywhere.

      Comment

      Working...