Strings
Strings are an array of characters.
To declare a string
String str = "Sumanjeet";
Take input from user
String str = sc.next(); it will take only the first word as input.
String str = sc.nextLine(); it will take all words (complete line) as input.
Som...
sumanjeet-dsa.hashnode.dev4 min read