Advertisement
Guest User

Untitled

a guest
Nov 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. public class DoubleString {
  2.  
  3. static String StringDouble( int ind, String str ) {
  4. System.out.print(str.charAt(ind));
  5. System.out.print(str.charAt(ind));
  6. if( ind == str.length() ) return "";
  7. else{
  8. return str.charAt(ind) + StringDouble( ind+1, str );
  9. }
  10. }
  11. public static void main(String[] args) {
  12. // TODO code application logic here
  13. Scanner in = new Scanner(System.in);
  14.  
  15. String str;
  16.  
  17. str = in.nextLine();
  18.  
  19. //newStr = RemoveVowels(0, str);
  20.  
  21. StringDouble(0,str);
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement