WRITE A JAVA PROGRAM (IN BLUE J)
Accept a sentence from user and print all the words which starting and ending letter same. (6) Input :- BABA GOING TO AGRA Output :- AGRA
WRITE THE SOLUTION IF YOU NOW
Answers
Answered by
1
Answer:
import java.util.*;
class Test{
public static void main (String args [ ]){
int i;
Scanner sc = new Scanner(System.in);
System.out.println("Enter A Sentence:");
s=sc.nextInt();
for(int i=1,i<=1,i++){
System.out.println("Sentence="+i);
}
}
}
Not a professional but hope this helps just remember one thing not to give gap between bracket and args.
If this helps please mark me as brainliest .
Similar questions
Business Studies,
17 days ago
Math,
17 days ago
Computer Science,
9 months ago
Computer Science,
9 months ago