Write a program to read an integer array and find the index of larger number
Write a program to read an integer array and find the index of larger number of the two adjacent numbers with largest difference. Print the
Write a program to read an integer array and find the index of larger number of the two adjacent numbers with largest difference. Print the
Write a program to read a sentence in the string variable and convert the first letter of each word to the capital case. Print the
Write a program to Find The Closest Number To 0. public static int getClosestToZero(int[] a){ int num = a[0]; int absNum = Math.abs(num); for(int i
Obtain two strings from the user as input. Your program should count the number of occurrences of the second word of the second sentence in
Write a program to check whether the two given strings are anagrams. Note: Rearranging the letters of a word or phrase to produce a new
Write a Java program to count unique Characters in string. Given a string as input, write Java code to count and print the number of
Write a program that performs the following actions: Read 2n integers as input & a set operator (of type char). Create two arraylists to store
Write a Program that accepts a string as a parameter and returns the string with each pair of adjacent letters reversed. If the string has
Write a Program that accepts a word as a parameter, extracts the digits within the string and returns its sum. Input and Output Format: Input
Write a java program to read a string and validate the given email-id as input. Validation Rules: 1. Ensure that there are at least 5