input = 1462;String inputStr = new Integer(input).toString();inputArray = inputStr.toCharArray();if (inputArray[0] == "1"){ fStation = "1" + inputArray[1]; System.out.println(fStation);}