public class UseMethodsExample {
  public static void main(String[] args) {
    int x = 16;
    double y = Math.sqrt(x);
    System.out.println("Square root of " + x + " is " + y);

    double z = Math.sin(Math.PI / 2);
    System.out.println("Sine of pi/2 is " + z);
  }
}