Check if a character is present in a String | Learn java programming from beginning.

Published: 07 February 2022
on channel: TechShiksha by Badkul Technology
1,963
9

This video explains 2 ways to findout whether a character present in a String or not.

Question

You are given a String and a character you need to check if that character is present in string or not. If its present print "yes" else print "no".

Input

Hello
l

Output

yes

Input 2

Hello
a

Output 2

no


Basic java playlist.
   • 1. Installing java | Learn java programmin...  

If you face any problem post that in comment section or post that in below telegram channel.
https://t.me/javaforfree

#FindACharacterInAString


On this page of the site you can watch the video online Check if a character is present in a String | Learn java programming from beginning. with a duration of hours minute second in good quality, which was uploaded by the user TechShiksha by Badkul Technology 07 February 2022, share the link with friends and acquaintances, this video has already been watched 1,963 times on youtube and it was liked by 9 viewers. Enjoy your viewing!