Method compareTo(String anotherString)
Return type: int
Member of:
java.lang.String
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
if (_tablea.getName().compareTo(_tableb.getName()) > 0) {
2
return (getDBVersionNumber().compareTo(ver) >= 0);
3
if(dataUCJM1.compareTo(dataUCJ) > 0)
4
if (year.compareTo("20") > 0) return "19";
5
if (newExclude.getText().compareTo("") != 0){
6
if (name.compareTo("bindings.listener")==0)
7
if (vers.compareTo("1.3.1") < 0)
8
if (tagName.toUpperCase().compareTo("FORM") == 0) {
9
if (greenlight.compareTo("YELLOW") == 0)
10
if (keyFormat.compareTo("RAW") != 0) {
11
return a.toString().toLowerCase().compareTo(b.toString().toLowerCase()) < 0;
12
return stringOne.compareTo(stringTwo) < 0;
13
return pLeft.compareTo (pRight) >= 0;
14
if (s[i].compareTo(s[j]) > 0) {
15
return stmt.compareTo(cmp) == 0;
16
if ( strings[i].compareTo( strings[j] ) > 0 )
17
if( str.compareTo(item) == 0 )
18
if (element1.compareTo(element2) > 0) {
19
if (table1.compareTo(table2) > 0) {
20
cmp = _fields[i].getName ().compareTo (name);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.