@anonymous/

TemptingTiredRedhead

Java

No description

fork
loading
Files
  • Main.java

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.5173879684405476","path":"Main.java","file":{"path":"Main.java","content":{"asEncoding":{"base64":"cHVibGljIGNsYXNzIE1hdGggew0KDQogcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgew0KDQogIGRvdWJsZSBhID0gTWF0aC5zcXJ0KDkpOyAvL2NhbGN1bGF0ZXMgc3F1YXJlIHJvb3Qgb2YgOQ0KICBkb3VibGUgYiA9IE1hdGguc3FydCgyNDU2LjcpOyAvL2NhbGN1bGF0ZXMgc3F1YXJlIHJvb3Qgb2YgMjQ1Ni43DQogIGRvdWJsZSBjID0gTWF0aC5zcXJ0KC00NTY4KTsgLy9jYWxjdWxhdGVzIHNxdWFyZSByb290IG9mIC00NTY4DQoNCiAgU3lzdGVtLm91dC5wcmludGxuKCJNYXRoIFNxdWFyZSByb290IHZhbHVlIDoiICsgYSk7DQogIFN5c3RlbS5vdXQucHJpbnRsbigiTWF0aCBTcXVhcmUgcm9vdCB2YWx1ZSA6IiArIGIpOw0KICBTeXN0ZW0ub3V0LnByaW50bG4oIk1hdGggU3F1YXJlIHJvb3QgdmFsdWUgOiIgKyBjKTsNCg0KIH0NCg0KfQ=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public class Math {

 public static void main(String[] args) {

  double a = Math.sqrt(9); //calculates square root of 9
  double b = Math.sqrt(2456.7); //calculates square root of 2456.7
  double c = Math.sqrt(-4568); //calculates square root of -4568

  System.out.println("Math Square root value :" + a);
  System.out.println("Math Square root value :" + b);
  System.out.println("Math Square root value :" + c);

 }

}