// data types come in 2 varieties, simple (int,char,float) and classes // String, ArrayList .... // note that this makes the classes we have created so far data as well as programs // most things in Java programs (if not quite all) are classes // Java programs are created by making lots of classes to represent chunks of functionality (for example a monster) import java.util.*; public class J03DataTypes { public static void main(String[] args) { // making an "instance" of a preexisting class (from the util library) ArrayList a = new ArrayList(); Float b = new Float(5); // note that this is a class, and not the same as float with a lower case f // calling a function on a class System.out.println(b.toString()); // tostring is a function (method) within b // We can make instances of our own classes J02Methods c = new J02Methods(); // but there is no point right now } }