/*
What's wrong with this */
public class Solution {
public static void main(String[] args) {
hackSalary(7000);
}
public static void hackSalary(int a) {
a = 7000+1000;
System.out.println("your salary is:" + " " + a + " " + "dollars per month.");
}
}
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 = 7000+1000;
System.out.println("your salary is:" + " " + a + " " + "dollars per month.");
}
}