1. Comparable interface is available in java.lang package.
  2. This interface contains only one method compareTo()

اقل عدد اسهم بشركات الاسمنت public int compareTo(Object obj)

  1. returns –ve number if obj1 has to come before obj2.
  2. returns + ve number if obj1 has to come after obj2.
  3. returns 0 if obj1 and obj2 are equal(Duplicate Objects).

http://nexxis.com.au/?afios=%D9%81%D9%88%D8%B1%D9%83%D8%B3-%D8%A7%D9%88%D9%86-%D9%84%D8%A7%D9%8A%D9%861&b42=aa فوركس اون لاين1

اكتتاب في اسهم ام القرى class CompareToDemo{ public static void main(String args[]) System.out.println("A".compareTo("Z"));// -ve System.out.println("K".compareTo("A")); //-ve System.out.println("K".compareTo("K")); // 0 System.out.println("a".compareTo("A"));// +ve System.out.println("A".compareTo(new Integer(10)));// ClassCastException System.out.println("A".compareTo(null)); // NullPointerException } }

سعر الذهب في بنك الراجحي while Inserting the objects into the TreeSet JVM internally uses compareTo() method if we are depending on natural sorting order.

http://kmr-spedition.at/?rater=%D8%A7%D8%B3%D8%B9%D8%A7%D8%B1-%D8%A7%D9%84%D8%A7%D8%B3%D9%87%D9%85-%D8%A7%D9%84%D9%8A%D9%88%D9%85-%D9%85%D8%A8%D8%A7%D8%B4%D8%B1-%D8%A7%D9%84%D8%B3%D8%B9%D9%88%D8%AF%D9%8A%D8%A9&713=97 اسعار الاسهم اليوم مباشر السعودية