Source code for GetRichQuickExample.java:

public class GetRichQuickExample
{
	public static void main(String args[])
	{
		// GetRichQuickExample
		String title = "Get Rich Quick by Writing Java Books";
		int len = title.length();
		System.out.println(len);
	}
}

Output from GetRichQuickExample.java:

36

--- Output Ends ---

NOTE:

You are reading previously generated output. You are not currently running the GetRichQuickExample 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