Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Practice Tech Mahindra Essay Topics

Program Discussion :: Strings

Home > Programs > Strings

23 / 59

Write a program enter a string then convert it into upper case.

Answer:

import java.util.*;
import java.lang.*;
import java.io.*;

class Ideone
{
 public static void main (String[] args) throws java.lang.Exception
 {
  
 BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
 String str=br.readLine();
 int l=str.length();
 for(int i=0;i

Asked In :: IBM

Post Your Answer Here:

Language:

Post Your Reply Here: