The Interactions pane can be used to run simple java commands without setting up a whole class.
Go ahead and try it out. Type:
System.out.println("Hello World.");
and press enter. System.out.println(..) is used to output to the terminal and is very useful for simple debugging.
Now try creating two integers:
int a = 5;
int b = 3;
and add them together:
int c = a + b;
and print them out.:
System.out.println(c);
Now do some simple string manipulations:
String myName = "REMOVEDel";
System.out.println("Hi, my name is " + myName + " and my favorite number is: " + c);
Open up some of the premade java files that we gave you (in the java-source folder). Be sure to open up FileChooser.java and Picture.java. Compile those two files using the compile button. (Warnings are fine)
Set your mediapath (you'll become familar with this). It stores a variable to always point to the folder that has your pictures. You'll need to use these in your assignments because your TA may have a different location so you can't hard code the path.
FileChooser.setMediaPath("C:/CS1316/mediasources/");
and make sure it worked by loading a picture:
Picture p = new Picture(FileChooser.getMediaPath("swan.jpg"));
p.show();