+ 1

Challenge 1

eg string is "test" when I give in output screen 'e' it has to remove e in the test and print as tst what will the solution for this either in c or java

10th Oct 2017, 2:21 AM
corejava
1 Antwort
+ 4
Java (One liner) : System.out.println("test".replace("" + new java.util.Scanner(System.in).next().charAt(0), ""));
10th Oct 2017, 3:48 AM
Rrestoring faith
Rrestoring faith - avatar