Java
Javalizncu
lizncu
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"));
}
}