Introduction:-
1. Greeting Code :-
//
// The Greeting class declaration.
//
public class Greeting {
public void greet() {
System.out.println("hi");
}
}
//
// Sample "Hello World" application
//
public class TestGreeting {
public static void main (String[] args) {
Greeting hello = new Greeting();
hello.greet();
}
}
No comments:
Post a Comment