@@ -0,0 +1,836 @@
+public class Solution %7B%0A    public int myAtoi(String string) %7B%0A    %09String str = string.trim();%0A        if(str.length() == 0) return 0;%0A        int i = 0;%0A        double solution = 0;    //DOUBLE!%0A        boolean neg = false; %0A        // check if is valid%0A        char c = str.charAt(0);%0A        if(c == '-') %7B%09%0A        %09neg = true;%0A        %09i++;%0A        %7D else if(c == '+') %7B%0A        %09i++;%0A        %7D else if(!Character.isDigit(c))%0A        %09return 0;%0A%0A        while(i %3C str.length() && Character.isDigit(c = str.charAt(i++))) %7B%0A        %09solution *= 10;%0A        %09solution += Character.getNumericValue(c);%0A        %7D%0A        if (neg) solution *= -1;%0A        if      (solution %3E Integer.MAX_VALUE)%09return Integer.MAX_VALUE;%0A        else if (solution %3C Integer.MIN_VALUE)%09return Integer.MIN_VALUE;  %0A        return (int)solution;    %0A   %7D%0A%7D%0A

Create 008.java