Question: CHALLENGE ACTIVITY 6 . 2 . 3 : Print methods. 5 2 8 0 4 0 . 3 4 8 9 5 2 8 .
CHALLENGE
ACTIVITY
: Print methods.
qxzqy
Jump to level
Read two strings and two integers from input and call printSalary to output as follows.
Ex: If the input is Gil Pilar then the output is:
Gil earns dollars per year.
Pilar earns dollrs per year.
import java.util.Scanner;
public class Salary
public static void printSalaryString var int var
System.out.printlnvar earns var "dollars per year.";
public static void main String args
Y Your code goes here
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
