How to reverse words in a sentence without using array or split or string tokenizer in Java?
[deleted]

how to reverse words in a sentence without using split orarray or string tokenizer.
I/p :- how are you
O/p :- you are how

You are viewing a single comment. View All
Answered by Edgod (63) [earned 5 cycles]
View Answer
Edgod (63)

@SolarBoom That doesn't make sense, unless I'm misunderstanding you. The split() method exists so that programmers wouldn't have to reinvent the wheel, which makes Java more efficient. It's just a function. The answer I gave you above is me literally redoing split() in a different way. I thought you asked the question because you were curious.