Question: using the programming lanuage java solve the following tasks Task 1 ) Create a method named CountUniqueChars that accepts a string as input and returns

using the programming lanuage java solve the following tasks Task 1) Create a method named "CountUniqueChars" that accepts a string as input and returns the number of unique characters present in the string (excluding spaces and please ignore case sensitivity). In the main function, test your method using your name (i.e. "Mustafa Ocal" -->9 unique characters).
Task 2) Create an array to store your favorite movies. Design a method that accepts a movie title as input and checks if it exists in the array. If found, the method should return the movie's position (index) within the array. Test your method in the main function using one of your favorite movies.
Task 3) Create a method that accepts an integer as input. The method should return true if the input integer is a prime number and false otherwise. In the main method, conduct testing of this method using your Panther ID.
Task 4) Write a method that accepts a string as input and returns the number of vowels (a, e, i, o, u) present in the string. In the main method, declare a String variable and initialize it with the name of our class. Subsequently, perform testing of the created method using this String.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!