Source code for GetRichQuickExample3.java:

public class GetRichQuickExample3
{
	public static void main(String args[])
	{
		// GetRichQuickExample3
		String title = "Get Rich Quick by Writing Java Books";
		String firstHalf = title.substring(0, 18);
		String lastHalf = title.substring(18);
		System.out.println(firstHalf);
		System.out.println(lastHalf);
	}
}

Output from GetRichQuickExample3.java:

Get Rich Quick by Writing Java Books

--- Output Ends ---

NOTE:

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