How do you get a value for a key in java?

Show me line 75 from your code...

Sorry, its a SECRET

2 Likes

Sorry, I don't help people who ask for help with secrets. You're doing something wrong. Keep thinking ...
Learn here:
https://www.w3schools.com/java/java_hashmap.asp

3 Likes

Do you import java.util.HashMap;

1 Like

Yes, I imported.

2 Likes

Show your full error

Try to use a different variable name in the HashMap. Instead of "text" use "textMap or whatever.

I don't think text is a Java class or primitive object type.
Go and learn basics first.

3 Likes

In last post he remove that

That we don't know because it's secret.

So simple thing do not help him

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.