•●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
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
Physics,
5 months ago
Computer Science,
5 months ago
Biology,
10 months ago
Math,
10 months ago
Social Sciences,
1 year ago