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
|
1281 Discussions
|
Please Login in order to post a comment
import java.io.; import java.util.;
public class Solution {
}
we are still learning strings 💀💀
int a= A.length(); int b=B.length(); System.out.println(+(a+b)); if (A.compareTo(B) > 0){ System.out.println("Yes"); } else { System.out.println("No"); } String capitalizedWord1 = A.substring(0, 1).toUpperCase() + A.substring(1); String capitalizedWord2 = B.substring(0, 1).toUpperCase() + B.substring(1); System.out.println(capitalizedWord1 + " " + capitalizedWord2);
Can someone tell me why this isn't working..?