if I don't include return its working fine , but my question is why i can't use return ? it is because return is used to return just a value of varriable and , cant't return System.out.println . or its something else?
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) {
//write your code here
// a += 1000;
return System.out.println(a + 1000) ;
}
}