Hi,
I tried,
1> a=(a+1000);
System.out.println("Your salary is: (a) dollars per month.");
2> System.out.println("Your salary is: (a+1000) dollars per month.");
3> a=(a+1000);
System.out.println("Your salary is:" +a+ "dollars per month.");
it is incorrect, so how should I ... increase the input parameter by 1000 and also output the same text to the screen ?
package com.codegym.task.task02.task0205;
/*
Pay raise
*/
public class Solution {
public static void main(String[] args) {
hackSalary(7000);
}
public static void hackSalary(int a) {
a=(a+1000);
System.out.println("Your salary is: (a) dollars per month.");
}
}