Friday, 22 January 2016

Java Programmes Introduction

Introduction:-


1. Greeting Code :-

//
// The Greeting class declaration.
//
 public class Greeting {
    public void greet() {
       System.out.println("hi");
    }
  }


2. TestGreeting :-

//
// Sample "Hello World" application
//
public class TestGreeting {
   public static void main (String[] args) {
      Greeting hello = new Greeting();
      hello.greet();
    }

 }

Code :-  https://drive.google.com/open?id=0B08RKBSts8D8U0s5TjdNSVBCdk0

No comments:

Post a Comment