New Method
public class new_method
 
{
    public static void newLine () {                  // criei um novo método chamado newLine
        System.out.println ("***");                         
    }
 
    public static void threeLine () {                // crei novo método chamado threeLine usando o método newLine
        newLine(); 
        newLine();
        newLine();
    }    
 
    public static void main(String [] args) {
    //double root = Math.sqrt (4.0);
    //System.out.println(root);
    double degrees = 90;
    double angle = degrees * 2 * Math.PI / 360.0;
    System.out.println(angle);
    threeLine();
    System.out.println("segunda");    
    }
}

voltar

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.