Computer Science, asked by HridayaNawal, 1 month ago

create a web page based on following format​

Attachments:

Answers

Answered by aneeskhanafreedi
0

Okay see

import java.util.Scanner;

import java.io.File;

import java.io.IOException;

public class DoPayroll {

public static void main(String args[])

throws IOException {

Scanner diskScanner =

new Scanner(new File("EmployeeInfo.txt"));

for (int empNum = 1; empNum <= 3; empNum++) {

payOneEmployee(diskScanner);

}

diskScanner.close();

}

static void payOneEmployee(Scanner aScanner) {

Employee anEmployee = new Employee();

anEmployee.setName(aScanner.nextLine());

anEmployee.setJobTitle(aScanner.nextLine());

anEmployee.cutCheck(aScanner.nextDouble());

aScanner.nextLine();hhThe pattern in Listing 8-2

*/

import java.util.Scanner;

import java.io.File;

import java.io.IOException;

class SomeClassName {

public static void main(String args[])

throws IOException {

Scanner scannerName =

new Scanner(new File("SomeFileName"));

Similar questions