Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DoubleString {
- static String StringDouble( int ind, String str ) {
- System.out.print(str.charAt(ind));
- System.out.print(str.charAt(ind));
- if( ind == str.length() ) return "";
- else{
- return str.charAt(ind) + StringDouble( ind+1, str );
- }
- }
- public static void main(String[] args) {
- // TODO code application logic here
- Scanner in = new Scanner(System.in);
- String str;
- str = in.nextLine();
- //newStr = RemoveVowels(0, str);
- StringDouble(0,str);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement