How to make a format to a .java?

0

I am trying a series of java classes in your .java, but all the code is in a single line. I would like to know if there is any method that does a format directly without having to do it from Eclipse or NetBeans.

If for example I have a class hello.java like this:

public class HolaMundo {public static void main(String[] args {System.out.println("Hola Mundo");}}

When I call it with some method in my application, I automatically leave it like this:

public class HolaMundo {

    public static void main(String[] args) {        
        System.out.println("Hola Mundo");
    }
}

Thanks

    
asked by juliogg93 03.08.2017 в 18:10
source

0 answers