| about | help | code help+videos | done | prefs | 
tmhscs@gmail.com strings
String Problems! 
	
These problems will test your knowledge of using Strings. Here are some useful methods:
String str = "Hello"; // creates a String with the letters "Hello"
str.length() // returns the number of letters in the String
str.equals("hi") // returns true if str matches the same letters (case sensitive)
str.equalsIgnoreCase("hi") // returns true if str matches the same letters (not case sensitive)
str.indexOf("e") // returns the index of the first time an "e" appears, or -1 if not found
str.lastIndexOf("e") // returns the last time an "e" appears, or -1 if not found
str.charAt(0) // returns the character at a given index
str.substring(0,1) // returns part of the string from start up to end indexes
str.toLowerCase() // returns a new string that is lowercased
str.toUpperCase() // returns a new string that is uppercased (capitalized)
str.startsWith("Pro") // returns true if str begins with some text
str.endsWith("ing") // returns true if str ends with some text
str.contains("hi") // returns true if str has some text anywhere in it
str.compareTo("g") // returns an int: negative if str comes before "g", positive if after
Easy Section: 
	
01.  string_addExclamation H   string_addExclamation
string_addExclamation H   string_addExclamation 
02.  string_letterCount H   string_letterCount
string_letterCount H   string_letterCount 
03.  string_scoreDisplay H   string_scoreDisplay
string_scoreDisplay H   string_scoreDisplay 
04.  string_ending H   string_ending
string_ending H   string_ending 
05.  string_firstFour H   string_firstFour
string_firstFour H   string_firstFour 
06.  string_firstHalf H   string_firstHalf
string_firstHalf H   string_firstHalf 
07.  string_initials H   string_initials
string_initials H   string_initials 
08.  string_lastLetter H   string_lastLetter
string_lastLetter H   string_lastLetter 
09.  string_repeat H   string_repeat
string_repeat H   string_repeat 
10.  string_startsWithXorY H   string_startsWithXorY
string_startsWithXorY H   string_startsWithXorY 
11.  string_vowelStart H   string_vowelStart
string_vowelStart H   string_vowelStart 
12.  string_vowelCount H   string_vowelCount
string_vowelCount H   string_vowelCount 
13.  string_vowelEnd H   string_vowelEnd
string_vowelEnd H   string_vowelEnd 
14.  string_whyAreYouShouting H   string_whyAreYouShouting
string_whyAreYouShouting H   string_whyAreYouShouting 
15.  string_bondJamesBond H   string_bondJamesBond
string_bondJamesBond H   string_bondJamesBond 
16.  string_nameOrder H   string_nameOrder
string_nameOrder H   string_nameOrder 
17.  string_removeUnIm H   string_removeUnIm
string_removeUnIm H   string_removeUnIm 
18.  string_deleteLetter H   string_deleteLetter
string_deleteLetter H   string_deleteLetter 
19.  string_changeLetterToZ H   string_changeLetterToZ
string_changeLetterToZ H   string_changeLetterToZ 
Medium Section: 
20.  string_AtoB H   string_AtoB
string_AtoB H   string_AtoB 
21.  string_splitItUp H   string_splitItUp
string_splitItUp H   string_splitItUp 
22.  string_combineStringArray H   string_combineStringArray
string_combineStringArray H   string_combineStringArray 
23.  string_threeInARow H   string_threeInARow
string_threeInARow H   string_threeInARow 
24.  string_aInString H   string_aInString
string_aInString H   string_aInString 
25.  string_containsCapital H   string_containsCapital
string_containsCapital H   string_containsCapital 
26.  string_removeX H   string_removeX
string_removeX H   string_removeX 
27.  string_countLOL H   string_countLOL
string_countLOL H   string_countLOL 
28.  string_contains H   string_contains
string_contains H   string_contains 
29.  string_changeAB H   string_changeAB
string_changeAB H   string_changeAB 
30.  string_convertDNAtoRNA H   string_convertDNAtoRNA
string_convertDNAtoRNA H   string_convertDNAtoRNA 
31.  string_reverse H   string_reverse
string_reverse H   string_reverse 
32.  string_onlyDigits H   string_onlyDigits
string_onlyDigits H   string_onlyDigits 
33.  string_dictionaryOrder H   string_dictionaryOrder
string_dictionaryOrder H   string_dictionaryOrder 
34.  string_flipFlop H   string_flipFlop
string_flipFlop H   string_flipFlop 
35.  string_formalIntroduction H   string_formalIntroduction
string_formalIntroduction H   string_formalIntroduction 
36.  string_mockingText H   string_mockingText
string_mockingText H   string_mockingText 
37.  string_luckyVowels H   string_luckyVowels
string_luckyVowels H   string_luckyVowels 
38.  string_allMixedUp H   string_allMixedUp
string_allMixedUp H   string_allMixedUp 
39.  string_letterCountDeluxe H   string_letterCountDeluxe
string_letterCountDeluxe H   string_letterCountDeluxe 
40.  string_moreVowels H   string_moreVowels
string_moreVowels H   string_moreVowels 
41.  string_capitalizeVowels H   string_capitalizeVowels
string_capitalizeVowels H   string_capitalizeVowels 
42.  string_numDigits H   string_numDigits
string_numDigits H   string_numDigits 
43.  string_sumDigits H   string_sumDigits
string_sumDigits H   string_sumDigits 
44.  string_sumNumbers H   string_sumNumbers
string_sumNumbers H   string_sumNumbers 
45.  string_sumAsciiValues H   string_sumAsciiValues
string_sumAsciiValues H   string_sumAsciiValues 
Hard Section: 
46.  string_nextLetter H   string_nextLetter
string_nextLetter H   string_nextLetter 
47.  string_firstNonRepeated H   string_firstNonRepeated
string_firstNonRepeated H   string_firstNonRepeated 
48.  string_isIsogram  string_isIsogram
string_isIsogram  string_isIsogram 
49.  string_isPangram H   string_isPangram
string_isPangram H   string_isPangram 
 
50.  string_removeHTMLtags H   string_removeHTMLtags
string_removeHTMLtags H   string_removeHTMLtags 
51.  string_palindrome H   string_palindrome
string_palindrome H   string_palindrome 
52.  string_underscores H   string_underscores
string_underscores H   string_underscores 
53.  string_vowelCountArray H   string_vowelCountArray
string_vowelCountArray H   string_vowelCountArray 
54.  string_noOddLength H   string_noOddLength
string_noOddLength H   string_noOddLength 
55.  string_toPigLatin H   string_toPigLatin
string_toPigLatin H   string_toPigLatin 
56.  string_alphabetize H   string_alphabetize
string_alphabetize H   string_alphabetize 
57.  string_anagram H   string_anagram
string_anagram H   string_anagram 
58.  string_convertIntegerToWords H   string_convertIntegerToWords
string_convertIntegerToWords H   string_convertIntegerToWords 
Authoring docs
Copyright Nick Parlante 2017 - privacy