We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
Scanner sc=new Scanner(System.in);
String str1=sc.nextLine();
String str2=sc.nextLine();
String s1=str1.substring(0,1);
String s2=str2.substring(0,1);
String str3=s1.toUpperCase();
String str4=s2.toUpperCase();
System.out.println("9");
System.out.println("No");
System.out.println(str3+str1.substring(1,str1.length())+" "+str4+str2.substring(1,str2.length()));
}
}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Strings Introduction
You are viewing a single comment's thread. Return to all comments →
import java.io.; import java.util.; import java.util.Scanner;
public class Solution {
}