User-submitted Projects

36
547 reads
wrox's picture

Submitted by

wrox
Even More Primes
array in an improved program to calculate prime numbers
Run It Now!
39
549 reads
wrox's picture

Submitted by

wrox
The Weather Fanatic
two-dimensional array in a program to calculate the average annual temperature for each location.
Run It Now!
30
613 reads
wrox's picture

Submitted by

wrox
Twinkle, Twinkle, Lucky Star
arrays of strings with a small example
Run It Now!
23
703 reads
wrox's picture

Submitted by

wrox
String Identity
To check for equality between two strings ignoring the case of the string characters, you use the method equalsIgnoreCase(). Let’s put these methods in the context of an example to see them working.
Run It Now!
28
600 reads
wrox's picture

Submitted by

wrox
Exciting Concordance Entries
You’ll use the indexOf() method to search the quotation you used in the last example for "and" and the lastIndexOf() method to search for "the"
Run It Now!
40
641 reads
wrox's picture

Submitted by

wrox
Ordering Strings
n this example you create three strings that you can compare using the compareTo() method
Run It Now!
37
606 reads
wrox's picture

Submitted by

wrox
Two Strings, Identical but Not the Same
In the following code, you test to see whether string1 and string3 refer to the same string
Run It Now!