KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > MyClass


1 public class MyClass {
2     public static double compute (double x){
3         double z;
4         x = Math.sin(x);
5         z = x;
6         return z;
7  
8     }
9     public static void main(String JavaDoc [] args){
10         compute(4.4);
11     }
12 }
13
14
Popular Tags