<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title>Bing: Compareto Java Substring</title><link>http://www.bing.com:80/search?q=Compareto+Java+Substring</link><description>Search results</description><image><url>http://www.bing.com:80/s/a/rsslogo.gif</url><title>Compareto Java Substring</title><link>http://www.bing.com:80/search?q=Compareto+Java+Substring</link></image><copyright>Copyright © 2026 Microsoft. All rights reserved. These XML results may not be used, reproduced or transmitted in any manner or for any purpose other than rendering Bing results within an RSS aggregator for your personal, non-commercial use. Any other use of these results requires express written permission from Microsoft Corporation. By accessing this web page or using these results in any manner whatsoever, you agree to be bound by the foregoing restrictions.</copyright><item><title>The compareTo method (10.2) - University of Maine System</title><link>https://cs.usm.maine.edu/~james.quinlan/cos161/notes/ch10-3.pdf</link><description>The standard way for a Java class to define a comparison function for its objects is to define a compareTo method. Example: in the String class, there is a method: public int compareTo(String other)</description><pubDate>Sat, 31 Jan 2026 12:49:00 GMT</pubDate></item><item><title>The Comparable Interface - Virginia Tech</title><link>https://courses.cs.vt.edu/~cs2114/meng-bridge/course-notes/12.1.8.1-Comparators.pdf</link><description>To define multiple ways to compare objects, define distinct classes that implement Comparator and define a compare(T left, T right) method. This way comparator objects can be created and sent two objects to compare.</description><pubDate>Thu, 02 Apr 2026 11:36:00 GMT</pubDate></item><item><title>Chapter 12</title><link>https://www2.cs.arizona.edu/%7Emercer/Book/PrinterFriendly/14Tall.pdf</link><description>The compareTo method has been shown to compare two String objects to see if one was less than, greater than, or equal to another. This section introduces a general way to compare any objects with the same compareTo message.</description><pubDate>Sun, 08 Feb 2026 06:20:00 GMT</pubDate></item><item><title>compareTo</title><link>https://www.eecs.yorku.ca/course_archive/2016-17/W/2030/lectures/week05.pdf</link><description>compareTo() Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. Throws a ClassCastException if the specified object type cannot be compared to this object</description><pubDate>Fri, 20 Mar 2026 04:42:00 GMT</pubDate></item><item><title>08_Sorting_GenericMethod.pdf - Bryn Mawr College</title><link>https://cs.brynmawr.edu/Courses/cs206/fall2013/slides/08_Sorting_GenericMethod.pdf</link><description>Approach 1: If a type T implements Comparable, exploit its natural ordering and use compareTo(). That is, to compare x with y, invoke x.compareTo(y). For example, to sort Strings instead of ints, we can use the fact that String has a compareTo() method, inherited from the Comparable interface.</description><pubDate>Thu, 02 Apr 2026 15:47:00 GMT</pubDate></item><item><title>Lecture15 - Pomona</title><link>https://cs.pomona.edu/classes/cs62/archive/sp2020/lectures/Lecture15.pdf</link><description>Comparable Interface with a single method that we need to implement: public int compareTo(T that) Implement it so that v.compareTo(w): Returns &gt;0 if v is greater than w. Returns &lt;0 if v is smaller than w. Returns 0 if v is equal to w.</description><pubDate>Wed, 25 Mar 2026 17:51:00 GMT</pubDate></item><item><title>L14cs211sp06.ppt - Department of Computer Science</title><link>https://www.cs.cornell.edu/courses/cs211/2006sp/Lectures/L14-Comparison/L14cs211sp06.pdf</link><description>Comparable Interface (Note: this is Java 1.4.2 – Java 5.0 has generics) x.compareTo(y) returns a negative, zero, or positive integer based on whether x is less-than, equal-to, or greater-than y, respectively less-than, equal-to, and greater-than are defined for that class by the implementation of compareTo</description><pubDate>Sun, 05 Apr 2026 06:32:00 GMT</pubDate></item></channel></rss>