Jordan σ_σ
Jordan σ_σ
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
if i could give a 5 star rating for customer service/assistance i would give it to you @0x150
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
i appreciate this much
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
I appreciate this much
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
Different topic but how do we calculate time complexity in our code? Is there a way we could do this locally to test our code to see how long each method would take?
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
the more loops we can remove the faster the code would be correct?
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
by improving the speed of it we would use a List ye?
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
truth be told
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
cool shit
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
No description
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
public static void main() {
String turtles = convertToWhale("Normal Classes and Turtles be Turtling");
String tower = convertToWhale("Tower of Terror");
System.out.println(turtles);
System.out.println(tower);
}

private static String convertToWhale(String phrase) {
StringBuilder builder = new StringBuilder(phrase.length());
char[] vowels = {'a', 'e', 'i', 'o', 'u'};
for (char c : phrase.toCharArray()) {
for (char vowel : vowels) {
if (c == vowel) {
builder.append(vowel).append(vowel);
}
}
}
return builder.toString().toUpperCase();
}
public static void main() {
String turtles = convertToWhale("Normal Classes and Turtles be Turtling");
String tower = convertToWhale("Tower of Terror");
System.out.println(turtles);
System.out.println(tower);
}

private static String convertToWhale(String phrase) {
StringBuilder builder = new StringBuilder(phrase.length());
char[] vowels = {'a', 'e', 'i', 'o', 'u'};
for (char c : phrase.toCharArray()) {
for (char vowel : vowels) {
if (c == vowel) {
builder.append(vowel).append(vowel);
}
}
}
return builder.toString().toUpperCase();
}
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
check it out
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
and i appreciate that
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
but after understanding that i could just pass in phrase.length() inside the StringBuilder constructor...because i didnt know it could take in an actual memory size...your conclusion worked out just fine
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
cant believe i was overlooking StringBuilder...i didnt have it as my first choice right but I definitely was thinking about it but kept overlooking it and kept thinking that it wouldnt work
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
and it has been resolved
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
Indeed this is correct
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
is that possible?
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
Can we change the size of it within the loop?
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
hmm lemme try that actually
90 replies
JCHJava Community | Help. Code. Learn.
Created by Jordan σ_σ on 2/20/2025 in #java-help
Output Characters
with those missing characters
90 replies