Menu
Coddy logo textTech

Recap Challenge #2

Lesson 9 of 16 in Coddy's Strings and Arrays in Java course.

You are now a String master! Let's challenge your knowledge!

There are more methods to String we did not cover all of them in this course, but you can check them out here: https://docs.oracle.com/javase/8/docs/api/java/lang/String.html

challenge icon

Challenge

Easy

Write a function named noA that gets a string and returns the same string, but without any a or A letters it might contain.

Try it yourself

class NoA {
    public static String noA(String s) {
        // Write code here
    }
}

All lessons in Strings and Arrays in Java