Question: good evening, This is my code and output, and there is a problem which is: when i enter the sentance, in reverce it reflect letters,

good evening, This is my code and output, and there is a problem which is: when i enter the sentance, in reverce it reflect letters, and I want it to reflect words, not letters.
So can you solve the problem? Because I couldn't
i want the after be like this:
After: back welcome hi
good evening, This is my code and output, and there is a
problem which is: when i enter the sentance, in reverce it reflect
letters, and I want it to reflect words, not letters.So can you

Enter choice: 3 Enter A sentance : hi welcome back Added Before : hi welcome back After: kcab emoclew ih MENU : 1. Cipher 2. Merge 3. Singly IinkedList: 4. Exit Enter choice: ) static void reverse(String str) 1 1 public void printininkedtist (singlyLinkedList sList) f Node h= sist. head; while (sIist.head I= null) f System.out.print (stist.head. data + " ") ; sIist. head = sIist. head. next; 1) System. out.println(); stist. head =h. ) class Nodef public string datai Node next; public Node(string data) I this.data: = data; this.next = null; 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!