Elena studied it. "The solution depends on the Java version. If this is Java 7, I have to add the method to the interface and break every implementation that doesn't have it. But assuming a modern environment..."
If you want, I can: provide a set of 10 representative TestDome-style Java questions with model answers and complexity analysis — tell me and I’ll generate them.
"Java 8," Marcus confirmed.
TestDome offers 4 free Java sample questions. Solve them in a simulated environment before your real screening. Study the "Top solutions" voted by the community.
public static String reverseCharsInWords(String s) String[] parts = s.split(" ", -1); for (int i = 0; i < parts.length; i++) parts[i] = new StringBuilder(parts[i]).reverse().toString();