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.");
}
}
why its not correct?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Ankush Rajput
10 October 2018, 18:16
Inside println method, there should be a space after ':' and before dollars like ...is: " + a + " dollars....
0