Source code for RochelleExample.java:

public class RochelleExample
{
	public static void main(String args[])
	{
		// RochelleExample
		String name = new String("Rochelle");
		System.out.println("Hello, my name is " + name);
	}
}

Output from RochelleExample.java:

Hello, my name is Rochelle

--- Output Ends ---

NOTE:

You are reading previously generated output. You are not currently running the RochelleExample application at the momement. You need to compile and run the source code first.

To run this program:


Authors: Kevin Chu and Eric Brower
Copyright 2000 Prentice Hall PTR