Commit 53c55169 authored by Martin Deinhofer's avatar Martin Deinhofer
Browse files

fixed commetn

parent ffedd198
......@@ -24,8 +24,8 @@ public class ReflectionDemo {
//Create two instances of class Integer
Integer i1=ctorInt.newInstance(2);
Integer i2=ctorInt.newInstance(5);
//Get method object for method "Integer compareTo(Integer other)"
//Get method object for method "int compareTo(Integer other)"
Method mCompareTo=Integer.class.getMethod("compareTo", new Class[] {Integer.class});
//Compare two Integer objects
System.out.println("Comparison of "+i1+" and "+i2+": "+mCompareTo.invoke(i1, i2));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment