πŸ“Š JAVA
Q. How do you check if a string contains a specific character in Java?
  • (A) str.contains(char)
  • (B) str.indexOf(char)
  • (C) str.hasChar(char)
  • (D) str.charExists(char)
πŸ’¬ Discuss
βœ… Correct Answer: (A) str.contains(char)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
147
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Bhagwan Das
Publisher
πŸ“ˆ
91%
Success Rate