lizncu
lizncuJava
Java
class Solution {
public int maximum69Number(int num) {
return Integer.valueOf(String.valueOf(num).replaceFirst("6", "9"));
}
}
class Solution {
public int maximum69Number(int num) {
return Integer.valueOf(String.valueOf(num).replaceFirst("6", "9"));
}
}