Lesson 18 of 22 • 1 upvotes • 12:47mins
Using Scanner class, W.A.P to input a String and Display all the tokens of the String which begin with a capital letter and end with a small letter. Sample Input: Automated Teller Machine. Sample Output: ATM Scanner ss=new Scanner(System.in); System.out.println("enter"); String st=ss.nextLine(); String st2=""; for(int i=0;i<st.length();i++) { char c=st.charAt(i); if(c!=32) { st2=st2+c; } else{ char first=st2.charAt(0); char last=st2.charAt(st2.length()-1); if((first>=65&&first<=90)&&(last>=97&&last<=122)) { System.out.println(st2); st2=""; } }
22 lessons • 3h 44m
Zippo Number in Java (in Hindi)
6:46mins
Twist Number in Java (in Hindi)
9:03mins
Twin Prime Number in Java (in Hindi)
12:05mins
Krishnamurthy Number in Java (in Hindi)
9:49mins
Lead Number in Java (in Hindi)
9:29mins
Cyclo Number in Java (in Hindi)
9:26mins
Micro Number in Java (in Hindi)
9:00mins
Pearre Partners in Java (in Hindi)
10:49mins
Spy number in java
9:37mins
Java series (S=1!+2!+3!+4!+5!+….+n!)
11:43mins
Trunk number in Java
10:33mins
Java pattern
10:26mins
Java series 1+ 𝒙 +𝒙^𝟐/𝟐+𝒙^𝟑/𝟑+𝒙^𝟒/𝟒…………+𝒙^𝒏/𝒏
11:33mins
Java series 1,11,111,1111,11111
8:36mins
Automorphic number in Java
10:10mins
W.A.P to genrate random integer number between 1 to N
8:13mins
Pattern in Java
10:53mins
Display all the tokens of the String which begin with a capital letter and end with a small letter.
12:47mins
Find the frequency of vowels in each word and print the words along with their frequency.
13:34mins
Program to remove the repeating token in a string.
9:18mins
In a string to change 26 to 15; January to Augest; Republic to Independence.
10:49mins
#5 pattern in Java
10:03mins