This is a Simple Java Program for beginners about String. The Program receives the input from the user and save them in a string . After this a String function toLower is applied and display it on the Prompt.
Source Code
package com.ancodingpoint.www; import java.util.Scanner; public class Lower_Case public static void main(String[] args) { Scanner input = new Scanner (System.in); String story =""; System.out.println(" Enter Your Story Here .....!"); story = input.nextLine(); story = story.toLowerCase(); System.out.println(story); } }
0 comments:
Post a Comment