how can I use a log() on Java, the way we use console.log() in javascript?
It gives me a syntax error
Please and thank you, best regards
how can I use a log() on Java, the way we use console.log() in javascript?
It gives me a syntax error
Please and thank you, best regards
You can use System.out.print("Hello word") in order to print on your console.
If you want to learn more https://www.javatpoint.com/system-out-println-in-java
Java doesn't use console.log; it is a totally different language than Javascript. You would use System.out.print or System.out.println instead.
Good luck with your learning!