KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > DivTests


1 public class DivTests {
2
3     public static void main(String JavaDoc [] args) {
4         
5         Double JavaDoc d = new Double JavaDoc(0.9);
6         Integer JavaDoc i = new Integer JavaDoc(9);
7         int t = 4;
8         double result = 6;
9
10         result += d.doubleValue() * i.intValue() / t;
11
12         System.out.println(result);
13         
14     }
15 }
16
Popular Tags