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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started