Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static String retainNumber10(int number) {
if (number < 10) {
return "0" + number;
} else if (number < 100) {
return String.valueOf(number);
} else {
return null;
}
}
}