I got below mentioned error on my JBOSS console
The method println(boolean) in the type PrintStream is not applicable for the arguments (void)
How to solve this error.
1. Check syntax error.
Check for any typo around SOP.
System.out.println("Hello World!");
2. Check for any void function inside SOP.
System.out.println(obj.voidFunction());
//Here void function is not allowed. Function must return some value to print
The method println(boolean) in the type PrintStream is not applicable for the arguments (void)
How to solve this error.
1. Check syntax error.
Check for any typo around SOP.
System.out.println("Hello World!");
2. Check for any void function inside SOP.
System.out.println(obj.voidFunction());
//Here void function is not allowed. Function must return some value to print
No comments:
Post a Comment