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.
- Prepare
- Java
- Strings
- Java Strings Introduction
- Discussions
Java Strings Introduction
Java Strings Introduction
Sort by
recency
|
1235 Discussions
|
Please Login in order to post a comment
import java.io.; import java.util.;
public class Solution {
}
import java.io.; import java.util.;
public class Solution {
}
import java.io.*; import java.util.Scanner; class Solution{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String a= sc.next(); String b = sc.next(); int c = a.length(); int d = a.length(); System.out.println(c+d); if(a.compareTo(b)>0){ System.out.println("yes"); } else{ System.out.println("No"); } String str1 = Character.toUpperCase(a.charAt(0)) + a.substring(1); String str2 = Character.toUpperCase(b.charAt(0))+b.substring(1); System.out.println(str1 + " " + str2);
import java.io.; import java.util.;
public class Solution {
}
import java.io.; import java.util.;
public class Solution {
}