import java.util.Scanner; public class Employee{ public String fullname; public double salary; public static void main(String [] args){ Employee emp = new Employee(); emp.input(); emp.output(); } public void input(){ Scanner scanner = new Scanner(System.in); System.out.print(">> fullname: "); this.Fullname = scanner.nextLine(); System.out.print(">> Salary: "); this.salary = scanner.nextDouble(); } public void output(){ System.out.println(this.Fullname); System.out.println(this.salary); } }