fork download
  1.  
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. class Employee{
  8.  
  9. private String employeeName;
  10.  
  11.  
  12. public String getEmployeeName() {
  13. return employeeName;
  14. }
  15. public void setEmployeeName(String employeeName) {
  16. this.employeeName = employeeName;
  17. }
  18.  
  19. public static void main(String[] args){
  20. Employee s=new Employee();
  21. s.setEmployeeName("John");
  22. System.out.println(s.getEmployeeName());
  23. }
  24. }
Success #stdin #stdout 0.04s 4386816KB
stdin
Standard input is empty
stdout
John