Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public static void printRec2(int n){
  2. if (n==0){
  3. return;
  4. }
  5. int cast = 0;
  6. char castChar = 0;
  7. for(char j=1; j <= n; j++)
  8. cast = j+96;
  9. castChar = (char) cast;
  10. System.out.print(castChar);
  11. System.out.println();
  12. printRec(n-1);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement