4 Replies Latest reply: Mar 13, 2013 7:19 AM by 995862 RSS

    Using System.out.println() in Scrapbook

    995862
      I am working through some tutorials on formatting numbers:
      http://docs.oracle.com/javase/tutorial/java/data/numberformat.html

      I am trying to use scrapbook. I can't seem to get the result I am wanting from System.out.println("Hello world")...I get null. To be specific I am trying to inspect:
      int i = 461012;
      System.out.format("The value of i is: %d%n", i)
      In this case I get:
      java.io.PrintStream@46b372

      Something tells me that System.out.format can't work in a scrapbook. Is there a way without writing a main and running as java?