public class MyClass {
public static int remove_second_digit(int n) {
String str = Integer.toString(n);
str = str.substring(0, 1) + str.substring(2);
return Integer.parseInt(str);
}
public static void main(String args[]) {
int n = 87315;
n = remove_second_digit(n);
System.out.println(n);
}
}
/*
run:
8315
*/