//KL import java.text.*; import java.io.*; public class payroll { public static void main(String args[]) throws Exception { Scanner scr=new Scanner(System.in); System.out.print("Please enter employee ID: "); DecimalFormat Number=new DecimalFormat("#000"); int empl=scr.nextInt(); String name=Number.format(empl); name=name.concat(".txt"); Scanner sc2=new Scanner(new File(name)); String date=sc2.nextLine().toString(); System.out.print(date); } }