Skip to content

Commit

Permalink
added student file and new lines in main
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauravtb2253 committed Jul 13, 2024
1 parent 962c3bc commit ff47b69
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ public static void main(String[] args) {
System.out.println(new Date());
System.out.println("Added new line");
System.out.println("Added one more line");

Student student = new Student();
student.sayHello();
}
}
10 changes: 10 additions & 0 deletions Student.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
public class Student {

public Student(){
System.out.println("Constructor of student");
}

public void sayHello(){
System.out.println("Hello I am student");
}
}

0 comments on commit ff47b69

Please sign in to comment.