write a program to find the position of the last occrance of the first repeated character and the position of the first nom repeated character in string
if there are no repeated character enter 0 for the last position of the first repeated char and if there are no non repeated character enter 0 for the position of the first non repeated char.
don't modify code
Sample Input Sample Output 4 1 COMMISSION Sample Input Sample Output 0 1 HOTEL
nputStreamReader; 8 9 \/import for Scanner and other utility classes 10 - import java.util.*; 11 #/ 12 13 - class Main { public static void main(String args[] ) throws Excep 5- /* Sample code to perform I/O * Use either of these methods for input //Buffered Reader BufferedReader br = new BufferedReader(new In String name = br.readLine(); // Reading in ch དང་། ལ་
write a program to find the position of the last occrance of the first repeated character and the position of the first
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
write a program to find the position of the last occrance of the first repeated character and the position of the first
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!