You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
public class Main {
|
|
public static void main(String args[]) {
|
|
String str = "this is Scanftree;;
|
|
System.out.println(removeCharAt(str, 3));
|
|
}
|
|
public static String removeCharAt(String s, int pos) {
|
|
return s.substring(0, pos) + s.substring(pos + 1);
|
|
}
|
|
} |