I'm having problems with the ¡Hola Mundo!
program and I'm not finding the error. The code that I have is the following:
public class HolaMundo { // Clase principal
public static void main(String[] args) {
System.out.print("¡Hola mundo!");
}
}
When I compile it using the javac HolaMundo.java
, it does not generate any errors. The issue is that when I run the program using java HolaMundo
, on the terminal screen, instead of appearing ¡Hola mundo!
, I see ¡Hola mundo!
. Whatever I do, I always see that Â
that should not be there.
In case you have something to do, the path that I have is the following:
C: \ ProgramData \ Oracle \ Java \ javapath;% SystemRoot% \ system32;% SystemRoot%;% SystemRoot% \ System32 \ Wbem;% SYSTEMROOT% \ System32 \ WindowsPowerShell \ v1.0 \ C: \ Program Files (x86) \ Java \ jdk1.8.0_131 \ bin; C: \ Program Files \ Java \ jdk1.8.0_131 \ bin;
Can you help me solve it?