- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDriver.java
More file actions
Latest commit
21 lines (12 loc) · 388 Bytes
/
Copy pathDriver.java
File metadata and controls
21 lines (12 loc) · 388 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
importjava.util.*;
publicclassDriver {
publicstaticvoidmain(String[] args) {
Stringsentence;
Scannerinput = newScanner(System.in);
System.out.print("Enter the sentence you want to reverse: ");
sentence= input.nextLine();
System.out.println("My sentence is : "+sentence);
ReverseStringrev= newReverseString(sentence);
rev.reverse(sentence);
}
}