public class Solution {
    public String convert(String s, int numRows) {
        
    }
}
@@ -76,16 +76,634 @@
         
+int len = s.length();%0A        if (len %3C= 2 %7C%7C numRows == 1) %7B%0A            return s;%0A        %7D%0A        String result = %22%22;%0A        int step = 2 * (numRows - 1);%0A        for (int currRow = 0; currRow %3C numRows; currRow++) %7B%0A            for (int currIndex = currRow; currIndex %3C len; currIndex += 2 * (numRows - 1)) %7B%0A                result += s.charAt(currIndex);%0A                if (currRow != 0 && currRow != numRows - 1 && currIndex + 2 * (numRows - currRow - 1) %3C len) %7B%0A                    result += s.charAt(currIndex + 2 * (numRows - currRow - 1));%0A                %7D%0A            %7D%0A        %7D%0A        return result;
 %0A    %7D%0A%7D

add ZigZagConversion.java