Also get rid of the static on every method except main. You dont need it.
1
Anonymous#11w
What do your imports look like for Scanner?
1
Anonymous#11w
I need do it again if I already have on my main
1
AnonymousOP1w
It should be
public class JavaEx1 {
public static void main (String []args){
// call your methods here
}}
2
AnonymousOP1w
Make sure your file is named JavaEx1 typed exactly as it is written in your code
6
AnonymousOP1w
https://www.geeksforgeeks.org/java/java-hello-world-program/
Have you written helloworld yet? This article is helpful for beginners.
2
AnonymousOP1w
Java is very precise about syntax. If python was your first programming language this may be a bit of an adjustment since Java is strictly typed. You've got this and dont hesitate to dm me if you have more issues. I'm a senior and I tutor for my college.