I have two types of strings. One of them is "abcdEfgh" and "abcd efgh" . This means that the first line has an uppercase letter, and the second line has a space. So now, how can I check these two lines of the template in java and make two lines.
String givenString; if (givenString.equals("abcdEfgh")) { String str1 = abcd; String str2 = Efgh; } else (givenString.equals("abcd efgh") { String str1 = abcd; String str2 = efgh; }
Please provide a solution. Thanks
source share