Pages

Friday, 1 April 2016

Chapter 1 Exercise 1, Introduction to Java Programming, Tenth Edition Y. Daniel LiangY.

1.1 (Display three messages) Write a program that displays Welcome to Java,
Welcome to Computer Science, and Programming is fun.
  
public class Exercise_01 {

    public static void main(String[] args) {

        System.out.println("Welcome to Java");
        System.out.println("Welcome to Computer Science");
        System.out.println("Programming is fun");

    }
}
 

No comments:

Post a Comment