Skip to content

Create stutter#5

Open
phongnsfx02725 wants to merge 1 commit intoCreede15:masterfrom
phongnsfx02725:patch-1
Open

Create stutter#5
phongnsfx02725 wants to merge 1 commit intoCreede15:masterfrom
phongnsfx02725:patch-1

Conversation

@phongnsfx02725
Copy link

public static String stutter(String s) {
int length = s.length();
int n = 2;
String news = "";
for (int i = 0; i < length ; i++){
for (int j = 1; j<=n ; j++){
news += s.charAt(i);
}
}
return news;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant