Home | History | Annotate | Download | only in src
      1 // Copyright 2008 The Android Open Source Project
      2 
      3 /*
      4  * Some basic operations for testing the debugger.
      5  */
      6 public class Main {
      7     long mLong = 0x1122334455667788L;
      8 
      9     public Main() {
     10         double d = 3.1415;
     11         System.out.println("d is " + d);
     12     }
     13 
     14     public static void showObject(Object[] foo) {
     15         int xyz = 27;
     16         System.out.println("class: " + foo.getClass());
     17 
     18         for (int i = 0; i < foo.length; i++) {
     19             System.out.println(i + ": "  + foo[i]);
     20         }
     21     }
     22 
     23     public static void main(String[] args) {
     24         int x = 5;
     25         Main testObj = new Main();
     26 
     27         Object[] array = new Object[5];
     28         showObject(array);
     29 
     30         String[] niftyStrings = new String[] { "hey", "you", "there" };
     31         array = niftyStrings;
     32         showObject(array);
     33     }
     34 }
     35