first commit
This commit is contained in:
24
Semester 1/Programming 1/Java/examples/hello/Hello.java
Normal file
24
Semester 1/Programming 1/Java/examples/hello/Hello.java
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* Class Hello:
|
||||
*
|
||||
* Hello-world program to demonstrate BlueJ.
|
||||
*/
|
||||
class Hello
|
||||
{
|
||||
/**
|
||||
* Method that does the work
|
||||
*/
|
||||
public void go()
|
||||
{
|
||||
System.out.println("Hello, world");
|
||||
}
|
||||
|
||||
/**
|
||||
* main method for testing outside BlueJ
|
||||
*/
|
||||
public static void main(String[] args)
|
||||
{
|
||||
Hello hi = new Hello();
|
||||
hi.go();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user