Question: Java 1. Write a program to check if the word 'orange' is present in the This is orange juice. 2.Write a program to delete all

Java

1. Write a program to check if the word 'orange' is present in the "This is orange juice".

2.Write a program to delete all consonants from the string "Hello, have a good day" Input a string of alphabets. Find out the number of occurrence of all alphabets in that string. Find out the alphabet with maximum occurrence.

3.Given arrays nums1 and nums2 of the same length, for every element in nums1, consider the corresponding element in nums2 (at the same index). Return the count of the number of times that the two elements differ by 2 or less, but are not equal. matchUp([1, 2, 3], [2, 3, 10]) 2 matchUp([1, 2, 3], [2, 3, 5]) 3 matchUp([1, 2, 3], [2, 3, 3]) 2

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 Databases Questions!