Saturday 9 August 2014

WRITE A PROGRAM IN JAVA WHICH CONVERT THE STRING IN LOWER CASE

Structure of the Problem Requirements 

In this problem we will learn how to convert a string characters into Lower case. The Program will received 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. Here is the Source code of the problem which help you in better understanding .

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);
        }
}

Output of the Program

Java String Programming
Lower to Upper Case


Share it Please
asad

About Author!

Asad Niazi is Software Engineer , Programmer, Web Developers and a young mentor of Tech Solutions Desk and Blogging Solutions . Asad Love to writes about Technology, Programming, Blogging and make money online.

0 comments:

Post a Comment