int x = a + 1000;
System.out.println("Your salary is:" x "dollars per month.");
I wrote exactly the same answer and this is right I guess. still it is showing the error like this...
com/codegym/task/task02/task0205/Solution.java:15: error: ')' expected
System.out.println("Your salary is:" x "dollars per month.");
^
com/codegym/task/task02/task0205/Solution.java:15: error: not a statement
System.out.println("Your salary is:" x "dollars per month.");
^
com/codegym/task/task02/task0205/Solution.java:15: error: ';' expected
System.out.println("Your salary is:" x "dollars per month.");
^
Wrong compliation
Under discussion
System.out.println("Your salary is:" x "dollars per month.");You are adding variable to the statement.So, you have to add '+' operator before and after variable x. That is- System.out.println("Your salary is: " + x + " dollars per month."); Hope this will help you.For more info dm me. Thank you