home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-04-19 | 418 b | 16 lines |
- public class ch0401 {
- public static void main(String[] args) {
- double pi = 3.1415;
-
- System.out.println("before: pi is " + pi);
- zero(pi);
- System.out.println("after: pi is " + pi);
- }
-
- static void zero(double arg) {
- System.out.println("top of zero: arg is " + arg);
- arg = 0.0;
- System.out.println("bottom of zero: arg is " + arg);
- }
- }
-