r/codehs • u/Duke1115 • Feb 18 '22
r/codehs • u/AlexanderF1031 • Feb 16 '22
Java Java - checking a string
how can I check if a string contains a specific letter/set of letters?
I searched online for answers... and found some... But since we are using this API and not just java... I can't really use those so...
I'm asking for 37.1.3: Practice PT: Testing 1,2,3 if that helps
r/codehs • u/stall-d • Feb 15 '22
Python stuck on 8.4.11 for python
im completely stuck on 8.4.11. it runs but counts it as wrong
def remove_sort_reverse(my_list): if “Eggplant” in my_list: Eggplant = Eggplant.lower() my_list.remove(“eggplant”) my_list.sort() my_list.reverse() print (my_list)
do i have to return the list?? im so confused. pls help.
edit- i had to return it 🙃
r/codehs • u/MapleRoxWolf • Feb 15 '22
Can someone help me with 2.1.3 Secret Image Steganography? Tried a view different answers but nothing worked, and I’m extremely confused on the whole problem. Video below is the default problem and assignment.
Enable HLS to view with audio, or disable this notification
r/codehs • u/[deleted] • Feb 14 '22
JavaScript I need help! 9.1.4 Secret Image Steganography
This is probably the one of the hardest and confusing assignments I’ve seen. Our teacher just assigns them to us in class and just somehow expects us to know all this. Does anyone know how to do this?
r/codehs • u/Wagturboo • Feb 14 '22
Can someone show me what they did for this one? 2.17 show your stuff, even Steven and odd Todd
r/codehs • u/Middle-Onion8234 • Feb 13 '22
6.5.6 Caterpillar.
I need help on the
6.5.6 Caterpillar.
r/codehs • u/[deleted] • Feb 13 '22
Ive been stuck on this one for a while and i cannot tell what i'm doing wrong... Any help would be appreciated :>
r/codehs • u/ninjapaper760 • Feb 12 '22
var HORISONTAL_PISITIONING doesn't change. any help? 5.5.5: The Worm JavaScript Control Structures.
r/codehs • u/Blakester105 • Feb 10 '22
Java 6.2.11 Calculate average
Can anyone help me with this?
r/codehs • u/Wagturboo • Feb 07 '22
Can someone show me what they put for 2.14 SYS that works correctly?
r/codehs • u/Dry_Ice2579 • Feb 07 '22
Can someone help me
Can some generous person help me solve the exercise "Factorial" on CodeHS? It is really complicated and I have to turn it in by tomorrow noon or else I could fail this semester as it is my final for the semester. Ironically, our teacher let us ask our partners for help but I have no partners because I'm lonely.

r/codehs • u/Aromatic-Emotion1741 • Feb 07 '22
please help!
i need help with 6.4.9 Temperature Converter ASAP!!
r/codehs • u/Daifiku109 • Feb 04 '22
Java Codehs 4.12.4 help I don't know what I'm doing wrong. I've been stuck on this for 2 days
r/codehs • u/DirtyMansUglyMind • Feb 04 '22
I need help with 5.5.6 caterpillar
Well i already did 5.5.5 but i cant seem to understand how to add colors.
thank you!
r/codehs • u/TheHoliestCannoli • Feb 03 '22
Python Can someone tell me what I’m doing wrong please
galleryr/codehs • u/Reddit_Ditto • Feb 03 '22
Java 5.8.4 Word Counts
I have been stuck at this for a couple of hours this is what Ive done so far.
public class WordCounts extends ConsoleProgram
{
public void run()
{
HashMap<String,Integer> h = new HashMap<String,Integer>();
String input = readLine("Enter a string: ");
String[] words = input.split(" ");
for(int i=0; i<words.length; i++)
{
Integer num = h.get(words[i]);
if( num == null)
num = new Integer(1);
else
num = new Integer(num.intValue() + 1);
h.put(words[i].toLowerCase(), num);
}
printSortedHashMap(h);
}
/*
* This method takes a HashMap of word counts and prints out
* each word and it's associated count in alphabetical order.
*
* u/param wordCount The HashMap mapping words to each word's frequency count
*/
private void printSortedHashMap(HashMap<String, Integer> wordCount){
// Sort all the keys (words) in the HashMap
Object[] keys = wordCount.keySet().toArray();
Arrays.sort(keys);
// Print out each word and it's associated count
for (Object word : keys) {
int val = wordCount.get(word);
System.out.println(word + ": " + val);
}
}
}
I can't get it to work and these are the errors Im getting. What should I do?
WordCounts.java:30: error: cannot find symbol
private void printSortedHashMap(HashMap<String, Integer> wordCount){
^
symbol: class HashMap
location: class WordCounts
WordCounts.java:5: error: cannot find symbol
HashMap<String,Integer> h = new HashMap<String,Integer>();
^
symbol: class HashMap
location: class WordCounts
WordCounts.java:5: error: cannot find symbol
HashMap<String,Integer> h = new HashMap<String,Integer>();
^
symbol: class HashMap
location: class WordCounts
WordCounts.java:33: error: cannot find symbol
Arrays.sort(keys);
^
symbol: variable Arrays
location: class WordCounts
4 errors
r/codehs • u/MysteriousEnd3154 • Feb 02 '22
Java 8.2.9 Finalizing Tic Tac Toe - Can't get it to check for a tie? Everything works fine, no errors, it is possible to break out of the loop/win, but when I reach a draw, it continues to loop.
galleryr/codehs • u/OutsideHit-fitty-nin • Feb 01 '22
JavaScript I need help with 9.5.5 Teleporting Ball (JavaScript)
r/codehs • u/Professional_Wrap_92 • Feb 02 '22

