Posts

Showing posts with the label String

Upper & lower (mixed) case String display according to grammar

Image
Explanation:             You enter text in upper and lower mixed case the programs automatically and intelligently arrange all the letter according to grammar rules. The first letter of the name will be display in upper case and rest of the letter are in lower case even you enter all the letters in upper case . Have a look on the code Source code: import java.util.Scanner; class JavaPractice {                 public static void main(String[] args ) {                 System. out .println( "\t\tInput validation for string\n\n\n" );                 // of getting input                 Scanner scan = new Scann...