public class Solution {
public static void main(String[] args) {
salary(8000);
}
public static void salary(int a) {
a= a+ 1000;
System.out.println("Your salary is:" +a+ " dollars per month.");
}
}
what's wrong in this program?package com.codegym.task.task02.task0205;
/*
Pay raise
*/
public class Solution {
public static void main(String[] args) {
salary(8000);
}
public static void salary(int a) {
a=a+1000;
System.out.println("Your salary is:" +a+ " dollars per month.");
}
}
salary(8000)let me share you my code- public class Solution { public static void main(String[] args) { hackSalary(7000); } public static void hackSalary(int a) { a+=1000; System.out.println("Your salary is: " + a + " dollars per month."); } } Hope this will help you. For more info DM me. Thank you