yay java
This commit is contained in:
28
Java/First Program/src/first/program/FirstProgram.java
Normal file
28
Java/First Program/src/first/program/FirstProgram.java
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package first.program;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Ben
|
||||
*/
|
||||
public class FirstProgram {
|
||||
|
||||
/**
|
||||
* @param args the command line arguments
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
Person dave = new Person("Dave");
|
||||
System.out.println(dave.Name);
|
||||
}
|
||||
}
|
||||
|
||||
class Person {
|
||||
public String Name;
|
||||
public Person(String name) {
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user