Forecast - System.out.println"J.Smith\t\t19\tESE"

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//This is my first Java comment /*This Class prints a message using two print statements*/ public class Forecast { public static void main(String[] args) { System.out.println("640K ought to be enough for anybody"); System.out.println("Bill Gates, 1981."); System.out.println("Hello World!"); System.out.println("Welcome to Java"); System.out.println("I study in Manchester"); System.out.println("\nName\t\tAge\tCourse"); System.out.println("------------------------------");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: System.out.println("J.Smith\t\t19\tESE"); System.out.println("P.Jones\t\t20\tESE"); System.out.println("S.Carey\t\t18\tCSE"); System.out.println("F.Hogg\t\t19\tCSE"); System.out.println("\nI\nstudy\nin\nManchester\n"); System.out.println(18*3); System.out.println(-21-6); System.out.println(12*-5); System.out.println("Here is the number")(+2+2); } }...
View Full Document

This document was uploaded on 04/14/2010.

Ask a homework question - tutors are online