Package narzedzia

Examples of narzedzia.Para.compareTo()


    Para p2 = new Para("aa",100.0);
    Para p3 = new Para("aaa",100.0);

    System.out.println(p1.klucz+" cmp "+p2.klucz+" :"+p1.compareTo(p2));
    System.out.println(p2.klucz+" cmp "+p1.klucz+" :"+p2.compareTo(p1));   
    System.out.println(p3.klucz+" cmp "+p3.klucz+" :"+p3.compareTo(p3));       
    System.out.println(p1.klucz+" cmp "+p3.klucz+" :"+p1.compareTo(p3));
    System.out.println(p2.klucz+" cmp "+p3.klucz+" :"+p2.compareTo(p3));
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.