-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemp.java
More file actions
executable file
·43 lines (39 loc) · 1.13 KB
/
temp.java
File metadata and controls
executable file
·43 lines (39 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import java.text.DecimalFormat;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Neel_Kapadia
*/
public class temp {
public static void main(String[] args) {
double d = 100000;
DecimalFormat df = new DecimalFormat("#.###");
System.out.println(df.format(Math.sqrt(d)));
// ArrayList<Character> al = new ArrayList<>();
// al.add('h');
// al.add('e');
// al.add('l');
// al.add('l');
// al.add('o');
// Object [] a = al.toArray();
// for(int i=0;i<a.length;i++){
// System.out.println((char)a[i]);
// }
// System.out.println("");
// TreeSet<Character> t = new TreeSet<>();
// t.add('h');
// t.add('e');
// t.add('l');
// t.add('l');
// t.add('o');
//
// Object [] o = t.toArray();
// for(int i=0;i<o.length;i++){
// System.out.println((char)o[i]);
// }
}
}