Java Sample Code With Main Classifications