Computer Science, asked by Anonymous, 10 months ago

•●Write a program in Java to accept a string in lower case and change the first letter of every word to upper case .Display the new string●•<br />#Computer student ✌<br />​

Answers

Answered by pavithranatarajan855
0

Answer:

import java.util.*;

public class accept{

public static void main(String args[]){

   String str;

Scanner s=new Scanner(System.in);

str=s.nextLine();

String result = str.substring(0, 1).toUpperCase() + str.substring(1);

System.out.println(result);

   

}

}

Explanation:

Please mark me as brainliest..

Similar questions