タグ

ブックマーク / www.petefreitag.com (1)

  • Java Cheat Sheet

    Java 1.5 Cheat Sheet Create a new object instance StringBuffer buffer = new StringBuffer(128); Output a string to standard output System.out.println("Some string"); Create a new object using generic types (array list that holds strings) ArrayList<String> list = new ArrayList<String>(); For Each Loop (loop over any Iterable object, or array this way) String[] spaghetti = { "a", "b", "c"}; for (Stri

  • 1