[solved]-Hello Could Help Code Java Cannot Use Array Arraylist Scanner Use Loop Statement Recursive Q39071457
Hello, could you help me code in Java?
I cannot use array, Arraylist and Scanner. Just use loop, ifstatement and recursive.
I have to list in number order. For example, if they give fivedigit, I can put 12345. However, Every 5 has to be next to a 4 or1. Also, any 2 in the order may not next to 5. digit 4 cannot list,like 4444.
5433 is good in 4 length, but 5334 is bad because 5 is not nextto 4.
33 is good,but 44 cannot list. 08108 is good, but 03252 is badbecause 2 might not be result
I have to use recursive function by calling. “public static inta (int b)” My have to output between 1 and 10 for all b.
if a (3) return ? like that.
Expert Answer
Answer to Hello, could you help me code in Java? I cannot use array, Arraylist and Scanner. Just use loop, if statement and recurs… . . .
OR

