Tutorial.StringComparisonOperators History

Hide minor edits - Show changes to markup

August 27, 2015, at 01:06 PM by Simone Maiocchi -
Deleted line 67:
August 27, 2015, at 01:06 PM by Simone Maiocchi -
Changed lines 1-6 from:
to:
Changed lines 62-73 from:
to:
August 11, 2015, at 10:57 AM by Simone Maiocchi -
Changed lines 37-38 from:

There is no circuit for this example, though your Arduino must be connected to your computer via USB.

to:

There is no circuit for this example, though your board must be connected to your computer via USB and the serial monitor window of the Arduino Software (IDE) should be open.

Added lines 65-66:


Last revision 2015/08/11 by SM

July 10, 2015, at 12:59 PM by Simone Maiocchi -
Changed line 52 from:

See Also:

to:

See Also

July 10, 2015, at 12:52 PM by Simone Maiocchi -
July 10, 2015, at 12:48 PM by Simone Maiocchi -
Changed lines 1-4 from:

Examples > Strings

String Comparison Operators

to:
Changed lines 13-15 from:
to:

[@

Changed lines 15-16 from:
to:

@]

Changed line 19 from:
to:

[@

Changed lines 21-24 from:
to:

@]

Changed line 32 from:
  • Arduino Board
to:
  • Arduino or Genuino Board
December 05, 2014, at 02:24 AM by Michael Shiloh -
Changed lines 5-8 from:

The String comparison operators ==, !=,>, < ,>=, <= , and the functions equals() and equalsIgnoreCase() allow you to make alphabetic comparisons between Strings. They're useful for sorting and alphabetizing, among other things.

The operator == and the function equals() perform identically. In other words,

to:

The String comparison operators ==, !=,>, < ,>=, <= , and the equals() and equalsIgnoreCase() methods allow you to make alphabetic comparisons between Strings. They're useful for sorting and alphabetizing, among other things.

The operator == and the method equals() perform identically. In other words,

December 05, 2014, at 02:23 AM by Michael Shiloh -
Changed lines 5-6 from:

The String comparison operators, ==, !=,>, < ,>=, <= , and the functions equals() and equalsIgnoreCase() allow you to make alphabetic comparisons between Strings. They're useful for sorting and alphabetizing, among other things.

to:

The String comparison operators ==, !=,>, < ,>=, <= , and the functions equals() and equalsIgnoreCase() allow you to make alphabetic comparisons between Strings. They're useful for sorting and alphabetizing, among other things.

December 05, 2014, at 02:08 AM by Michael Shiloh -
Changed lines 7-8 from:

The operator == and the function equals() perform identically. It's just a matter of which you prefer. So

to:

The operator == and the function equals() perform identically. In other words,

Changed lines 23-25 from:

The greater than and less than operators evaluate strings in alphabetical order, on the first character where the two differ. So, for example "a" < "b" and "1" < "2", but "999"> "1000" because 9 comes after 1.

to:

The ">" (greater than) and "<" (less than) operators evaluate strings in alphabetical order, on the first character where the two differ. So, for example "a" < "b" and "1" < "2", but "999" > "1000" because 9 comes after 1.

Changed lines 27-28 from:

String comparison operators can be confusing when you're comparing numeric strings, because you're used to thinking of them as numbers, not strings. If you have to compare numbers, compare them as ints, floats, or longs, and not as Strings.

to:

String comparison operators can be confusing when you're comparing numeric strings, because the numbers are treated as strings and not as numbers. If you need to compare numbers, compare them as ints, floats, or longs, and not as Strings.

November 06, 2014, at 10:35 AM by Arturo -
Changed lines 5-6 from:

The String comparison operators, ==, !=,>, < ,>=, <= , and the functionsequals() and equalsIgoreCase() allow you to make alphabetic comparisons between Strings. They're useful for sorting and alphabetizing, among other things.

to:

The String comparison operators, ==, !=,>, < ,>=, <= , and the functions equals() and equalsIgnoreCase() allow you to make alphabetic comparisons between Strings. They're useful for sorting and alphabetizing, among other things.

May 02, 2012, at 03:56 PM by Scott Fitzgerald -
Changed line 47 from:
to:
November 16, 2011, at 04:25 AM by Scott Fitzgerald -
Changed line 47 from:
to:
September 19, 2010, at 11:34 PM by Christian Cerrito -
Changed lines 3-4 from:

String Comparison Operatprs

to:

String Comparison Operators

Deleted lines 6-10:
Added lines 29-33:
Deleted line 34:
Changed lines 36-40 from:

There is no circuit for this example.

to:

There is no circuit for this example, though your Arduino must be connected to your computer via USB.

image developed using Fritzing. For more circuit examples, see the Fritzing project page

Added line 43:
September 16, 2010, at 10:44 PM by Tom Igoe -
Changed line 43 from:
to:
September 16, 2010, at 10:44 PM by Tom Igoe -
Changed lines 15-16 from:

if (stringOne.equals(stringTwo)) {

to:
Changed lines 22-23 from:

if (stringOne ==stringTwo) {

to:
August 01, 2010, at 06:17 PM by Tom Igoe -
Changed lines 23-25 from:

The greater than and less than operators evaluate strings in alphabetical order, on the first character where the two differ. So, for example "a" < "b" and "1" < "2", but @@"999"> "1000" because 9 comes after 1.

to:

The greater than and less than operators evaluate strings in alphabetical order, on the first character where the two differ. So, for example "a" < "b" and "1" < "2", but "999"> "1000" because 9 comes after 1.

August 01, 2010, at 06:17 PM by Tom Igoe -
Changed lines 12-13 from:

The operator == and the function @@equals() perform identically. It's just a matter of which you prefer. So

to:

The operator == and the function equals() perform identically. It's just a matter of which you prefer. So

August 01, 2010, at 06:16 PM by Tom Igoe -
Added lines 1-54:

Share