Why is the compiler telling me this?
com/codegym/task/task02/task0205/Solution.java:16: error: <identifier> expected
System.out.println(s);
^
com/codegym/task/task02/task0205/Solution.java:16: error: <identifier> expected
System.out.println(s);
^
This is my code:
public class Solution {
public static void main(String[] args) {
hackSalary(7000);
}
public static void hackSalary(int a) {
}
int x = a + 1000;
String s = "Your salary is:" + x + "dollars per month.";
System.out.println(s);
Thank you
Please help me
Resolved
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Monica Nicoleta
29 October 2018, 11:44
This is a:
public static void hackSalary(int a) {
0
Clifford Ten
29 October 2018, 11:43
what is a, in your code?, how is "a" defined?
0