Recommended Answers
Jump to PostYou can get any of the characters in the string with String.charAt(), so all you need is to generate lists of integers. The lists should use each of the integers (0..length-1) exactly one time.
So you need a method that returns a randomly shuffled list of integers from (0..n). …
Jump to PostI suggest you design how your program should work before you start writing code.
Have you done that yet?
Can you explain how the program will solve the problem, step by step?The if statement in your code doesn't make sense. What is it supposed to do?
Jump to PostUm, I have no idea what you're trying to do here. You iterate over the characters in the string, and if each char is equal to the length of the string, you do nothing.
Listen to the voice of Norm, which should be echoing in the back of your …
Jump to PostThere, you see? :)
Jump to PostBefore you try to write code, you need to design what the program steps are to solve the problem.
Can you write a list of the steps that are needed to solve this problem.
When we have that list to work from, then we'll work on the code.
All 31 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.