Answers for "copy and paste above line vs code"

31

VScode duplicate line

//------------ How to duplicate lines of code? --------------//

-> Windows:

Shift + Alt + Down   and   Shift + Alt + Up

-> Mac:

Shift + Option + Down   and   Shift + Option + Up

-> Linux:

Ctrl + Shift + Alt + Down   and   Ctrl + Shift + Alt + Up
Posted by: Guest on August-06-2020
0

copy and paste above line vs code

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();
    }
}
Posted by: Guest on September-24-2021

Code answers related to "copy and paste above line vs code"

Browse Popular Code Answers by Language