11:32 AM 7/13/2015

Each one of us has a silo account. 

Let's confirm that. We will use PuTTY.

To get it for your own Windows machine:

https://iuware.iu.edu/Windows/Title/781

What if you have a Mac? Mac has it in already. 

For the Mac use Terminal and then command line ssh. 

Notice that PuTTY implements the SSH (secure shell) protocol. 

Start PuTTY and then indicate silo.cs.indiana.edu as the host. 

Then press Open and say Yes and then indicate username/password and you're in. 

login as: dgerman
dgerman@silo.cs.indiana.edu's password:
Last login: Mon Jul 13 08:40:47 2015 from 75-15-14-227.lightspeed.bltnin.sbcglobal.net


*******************************************************************
**   Indiana University School of Informatics and Computing      **
**             ** For Authorized Use Only **                     **
*******************************************************************
**  For general SoIC computing information, please see:          **
**      http://help.soic.indiana.edu/                            **
**                                                               **
**  To submit a problem report or question, please see:          **
**      http://help.soic.indiana.edu/request                     **
*******************************************************************


-bash-4.1$

Things to discuss today: 

  (a) Lab Assignment Nine is now due tomorrow @5pm 

  (b) We need to install Tomcat (web server, allows for server-side Java) 

Especially for the second part we need

http://www.cs.indiana.edu/classes/c212-dgerman/sum2015/students.html

Lab Assignment Nine: 

For this assignment let's not use DrJava. 

We will be using BlueJ so let's download it. 

http://www.bluej.org/

http://www.bluej.org/download/files/bluej-315.jar

When you install BlueJ you need to tell it where Java is located:

C:\Program Files\Java\jdk1.8.0_05

It will create a folder so open the folder and run bluej.bat 

Minimize the DOS window and ignore it. 

public class One {
  
}

Compile and instantiate and examine. 

public class One {
  int x;
}

We activate the codepad and we type:

lebron
<object reference>   (One)
lebron.x += 1
1   (int)
lebron.x = lebron.x + 1
2   (int)
kobe.x
0   (int)
lebron.x
2   (int)
kobe.x = lebron.x + 3
5   (int)

Now let's examine something else:

https://www.cs.indiana.edu/classes/c212-dgerman/spr2015/simuduck.jpg

I would like you now to please solve the first exercise in Lab Assignment Nine. 

Mark Logan Daniel Jared Nathan Austin Trevor Qin Jacquelyn James Brennan
Gabriela Adam Hallie Judy Walter Yiming Nick Jingzhe Paul Morgan Alex Ong
William Jon Grant M. Alexander Mohan Jack Adrian 

class Two {
   public static void main(String[] args) {
      if (args == null) System.out.println("No array.");
      else if (args.length == 0) System.out.println("Empty array."); 
      else for (String a : args)
             System.out.println( a ); 
   }
}

So BlueJ is useful with Lab Assignment Nine.

We also investigated Lab Assignment Ten. 

Soon we will also investigate Greenfoot (which is based on BlueJ). 

There are books I posted: 

http://www.cs.indiana.edu/classes/c212-dgerman/sum2015/c.pdf

http://www.cs.indiana.edu/classes/c212-dgerman/sum2015/d.pdf

Done with BlueJ. 

We install Tomcat in lab today (as Lab Assignment Thirteen). 

--