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
|
1277 Discussions
|
Please Login in order to post a comment
Can someone tell me why this isn't working..?
import java.io.; import java.util.;
public class Solution {
}
Scanner scanner=new Scanner(System.in); int wordsize=0; int result=0; String Firstlettercaps=""; String Secondlettercaps=""; String word1=scanner.next(); String word2=scanner.next(); wordsize= word1.length()+word2.length();//Output 1
java 15