WhatsApp was founded in 2009 by two tech guys Brian Acton and Jan Koum. Earlier they worked in Yahoo company. Later those two geek guys founded WhatsApp. Then WhatsApp acquired by Facebook on February...
Explanation:
User give an input as a sentence. That contains set of words separated by space. We have to print the Capital letters in the given input sentence.
Input format:
Enter any sentence:
Let...
Explanation:
User give an input as a sentence. That contains set of words separated by space. We have to reverse the each word in the given input sentence.
Input format:
Enter any sentence:
Let...
Write a program which accepts 2 strings from the user and performs the following operation on it.
Example1:
String1 = "JAVA"
String2 = "PYTHON"
String3 must be "JAVANOHTYP"
Example2:
String1...
Description:
10 digit number: 1234567812
10 digit number in words: ONETWOTHREEFOURFIVESIXSEVENEIGHTONETWO
Constraints:
1) remove duplicate letters in the above string.
2) final string must be in...
Program:
import java.util.Scanner;
public class Sum_of_last_digits_of_two_given_numbers {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.println("Enter...