Pangram Program in Java | Pangram Problem Solution | Interview Questions on Pangram | ABC

Поділитися
Вставка
  • Опубліковано 19 жов 2024
  • Learn what is Pangram and how to write an Pangram program using Java. So let us dive deep into pangram problem solution in Java. A pangram or holoalphabetic sentence is a sentence using every letter of a given alphabet at least once. Pangrams have been used to display typefaces, test equipment, and develop skills in handwriting, calligraphy, and keyboarding.The best-known English pangram is "The quick brown fox jumps over the lazy dog".
    About the trainer: Mr Manjunath Aradhya, a technocrat by profession, a teacher by choice and an educationist by passion. Under his able leadership, ABC for Technology Training which is a National brand enabling the creation of thousands of careers annually in the IT Sector. He has an extensive experience working as a Business associate with Wipro Technologies. He has also served as a corporate trainer to many other leading software firms. He has been providing technical assistance to placement cell of various Engineering colleges. He has also authored numerous hot selling engineering and other textbooks which are published by Pearson Education, an internationally acclaimed publication house headquartered in London. Other renowned international publishers such as Cengage Learning headquartered in Boston, United States, have published books authored by him. C Programming and Data Structures book published by Cengage India Private Limited authored by a profound scholar Mr. Manjunath Aradhya is the prescribed book in Dr. Hari Singh Gour University which is the Central University and the oldest university in the state of Madhya Pradesh (MP), India
    To learn more about Technology, subscribe to our UA-cam channel:
    x.co/fresher
    #interviewquestionsandanswers #javaforfreshers #Pangram #PangramPrograminJava #PangramProblemSolution #InterviewQuestionsonPangram #javaprograms #StringsProgramsinjava #StringsPrograms #pangramprograminpython #pangramsentence #pangramexample #pangramsentence
    Reversing a String in Java
    • Reversing a String in ...
    Copying one String into another in Java
    • Copying one String int...
    Computing length of String Java
    • Computing length of St...
    Computing length of String
    • Computing length of St...
    Introduction to Strings
    • Introduction to String...
    Strings in Programming
    • Strings in Java - Prom...
    Palindrome in Java
    • Palindrome Program in ...
    Tricky Technical Interview Questions for IT Job Aspirants
    • Video
    How to print a statement without using semicolon
    • How to print a stateme...
    How to Print a semicolon without using a semicolon
    • How to Print a semicol...
    How to Execute both if block and else block simultaneously
    • How to Execute both if...
    How to Execute Both the if block and else block simultaneously
    • How to Execute Both th...
    How to Execute multiple statements in if & else block simultaneously
    • How to Execute multipl...
    How to Execute both the if block and else block in Java
    • Palindrome Program in ...
    Incrementation and Decrementation Operators in Java
    • Incrementation and Dec...
    Incrementation and Decrementation Operators in Java
    • Incrementation and dec...
    Incrementation and Decrementation Operators in Java
    • Incrementation and Dec...
    How to add and subtract without using + and - operators in Java
    • How to add and subtrac...
    For more updates ABC Course, follow us on:
    Instagram: goo.gl/4BR1HA
    Facebook: goo.gl/KjG9Hc
    LinkedIn: goo.gl/pKRPEM
    Twitter: goo.gl/vXyUb2
    Contact us: 7676500600

КОМЕНТАРІ • 62

  • @ABCforTechnologyTraining
    @ABCforTechnologyTraining  5 років тому +2

    Learn from Leaders, Learn from ABC.
    Watch our latest technical videos in your language:
    For Hindi:- bit.ly/2TRuGVP
    For Kannada:- bit.ly/31NH63M
    For Telugu:- bit.ly/2MuYRRP
    For Tamil:- bit.ly/2Num5Hz

  • @surbhitamrakar1638
    @surbhitamrakar1638 4 роки тому +6

    The way you teaches is really great sir.I request you to make videos on data structures it would become easier from your teaching.

  • @manjuch4884
    @manjuch4884 5 років тому +11

    Because of your teaching only I got interest on coding sir ... Tq soo much

  • @TheMemeCat1
    @TheMemeCat1 5 років тому +4

    Very high quality editing.. im amazed. Which software you use?

  • @sidharthmandal9957
    @sidharthmandal9957 4 роки тому +5

    For those who have been trying to convert to lowercase will get a problem, arrays index out of bound....try to convert it into upper case, as the logic says.....y[i]-65..... as 65 is the Ascii value of A.....Thank you

  • @varshamehra8164
    @varshamehra8164 5 років тому +4

    Sir..
    Thank you so much for so nice expalaination.
    U and your teaching style is great.
    And what I like the most is your energy and enthusiasm when you teach :)

  • @venkateshvenkatesh-xg5cq
    @venkateshvenkatesh-xg5cq 5 років тому +3

    sachin is god of cricket.you are god of teaching sir.please make videos on c and c++ programming language

  • @varshamehra8164
    @varshamehra8164 5 років тому +4

    Sir, please make videos on Dynamic programing and Graph algos....

  • @Justin-he4rd
    @Justin-he4rd 4 роки тому +1

    Epic music, great job explaining, awesome editing, straight to the point! 10/10 !

  • @sourabhparalkar1583
    @sourabhparalkar1583 4 роки тому +6

    Hello sir,
    Instead of taking array I took following approach, would you please let me know whether this is ideal approach or not..
    public boolean isPangram(String string)
    {
    string.replace(" ","");
    char y[] = string.toCharArray();
    for(char i='A'; i

    • @ABCforTechnologyTraining
      @ABCforTechnologyTraining  4 роки тому +8

      Hi Sourabh,
      We are glad to see a different approach. It would be more ideal with the following changes implemented in the code:
      1. Firstly, after replacing the spaces in the input String, the replace() method would return a new String object without spaces. This newly obtained String object should be reassigned to the String reference variable. Since Strings are immutable in Java.
      string = string.replace(" ","");

  • @sahilchaudhary788
    @sahilchaudhary788 4 роки тому +3

    really nice explanation sir,
    i actually have a doubt, y cant v assign an array from A to Z then v take the given string convert it to array and sort it. if the resulting sting array is equal to the previous one it will be a pangram.
    please tell me if i am wrong
    thank you.

  • @qa3596
    @qa3596 2 роки тому

    Very well explanation sir and ur way to teach is very good

  • @vinaykumargm7259
    @vinaykumargm7259 5 років тому +4

    Hai sir !!
    Plz explain about System.exit(0) System.exit(-1) System.exit(1)

    • @Hampirathna
      @Hampirathna 4 роки тому +2

      Exit(0) is successful termination from the program
      Whereas exit(1) is forcefully terminated by programmer

  • @abdullahrafi2496
    @abdullahrafi2496 4 роки тому

    Without any hesitation 10/10

  • @lyrica5816
    @lyrica5816 4 роки тому +1

    what if we want to use lowercase letters? what will be the logic then?

  • @ramyach137
    @ramyach137 4 роки тому

    nice teaching with good presentation.

  • @nandishsg9805
    @nandishsg9805 5 років тому

    Sir please make data structures videos. I am eagerly waiting for your videos on data structures.

    • @ABCforTechnologyTraining
      @ABCforTechnologyTraining  5 років тому +3

      Undoubtedly, We have a lot to offer to aspiring technocrats. An intense series on Data Structures & Algorithms will be released very soon. Stay tuned!

  • @anne_pandey
    @anne_pandey 5 років тому

    This source code will not gonna work if the given string is in CamelCase notation and thus generates an Exception "ArrayIndexOutofBound".
    Sir, I m a big fan of you.
    the way of your teaching is Awesome.
    Actually i always used to be afraid with JAVA. But now your videos pull me in and build an interest into it.
    And i m one of your student in ABC, BTM.
    Thank you so much sir for such kind of Stuffs.

    • @anne_pandey
      @anne_pandey 5 років тому

      I got the Solution 😀.

    • @rahuldey2501
      @rahuldey2501 5 років тому

      @@anne_pandey You have to convert the String to Upper Case before copying the value to the array, then you will get the output.

  • @shushilkumar6033
    @shushilkumar6033 5 років тому

    sir your teaching style wonderful

  • @swatisharma-fw5pp
    @swatisharma-fw5pp 4 роки тому

    Nicely explain

  • @mobeenasyed8753
    @mobeenasyed8753 4 роки тому +1

    Hi I am getting confusion how to subtract ASCII value

    • @ABCforTechnologyTraining
      @ABCforTechnologyTraining  4 роки тому

      We insist you to trace the code on your own once. It will certainly help you understand the logic well.

  • @smithajoseph667
    @smithajoseph667 5 років тому +1

    Getting ArrayIndexOutOfBoundsException.. please help me on this

  • @rishabh152
    @rishabh152 5 років тому +4

    In python its a 3-4 line program.
    def ispangram(str):
    alphabet = "abcdefghijklmnopqrstuvwxyz"
    for char in alphabet:
    if char not in str.lower():
    return False
    Done...
    Power of python

  • @maheshdeoraye6660
    @maheshdeoraye6660 4 роки тому

    it throws exception, array index out of bound exception

  • @mdiqbalmahmud8233
    @mdiqbalmahmud8233 4 роки тому

    thank sir

  • @panyamramesh639
    @panyamramesh639 5 років тому +1

    i like the BGM

  • @chaitrachinnu320
    @chaitrachinnu320 5 років тому

    Y we need to subtract by 65 oly.? Can we use other no to subtract.?

    • @HumeiraShaik
      @HumeiraShaik 5 років тому +1

      We should subtract with 65 only in order to get the index value of array a[index]..

    • @dizzymolecule6759
      @dizzymolecule6759 5 років тому +1

      65 is the starting index of the array.In order to get the respective index of an alphabet,you should perform [final index]-[initial index] and here the initial index is fixed,as ascii value of A is 65.

    • @filmyfactsmedia
      @filmyfactsmedia 5 років тому

      Please watch before vidoes in one of the video will encounter this ASCII table mam

  • @RaviRanjan-kd2kf
    @RaviRanjan-kd2kf 5 років тому

    Sir, make tutorials On Mathematical Algorithms, generally used in Competitive programming

  • @VineetKumar-eb3lv
    @VineetKumar-eb3lv 5 років тому

    Thank You

  • @kitchenkhazana8677
    @kitchenkhazana8677 4 роки тому

    Please explain in hindi because some students are weak in English.

  • @business187
    @business187 5 років тому

    CAN U plzzz MAKE TUTORIALS ALGORITHM??
    Plzzzzzzzzzzz

  • @dizzymolecule6759
    @dizzymolecule6759 5 років тому +1

    send.firefox.com/download/586bbda37b23812b/#Ui6pUtPjZd9CSrbV9MgoUA
    the link given above is the same code with little modification that works for camel case also.
    you can remove the commented lines to understand the code and logic better.

  • @abdullahbaabbad885
    @abdullahbaabbad885 4 роки тому +1

    What if we just took the original string ("the quick brown fox jumps over a lazy dog") and sort it using Array.sort() method
    and then initialize a string of all alphabets ("abcdefghijklmnopqrstuvwzyx") and just compare it with the orginal sorted string using Array.equals(original sorted string,string of alphabets).
    if they are equal then print pangram otherwise print non pangram.
    but the problem I faced that the original sorted string will contain repeated alphabets which leads to inequality with the string of alphabets. Can you please help me out?
    the cod is as follows:
    public class test {
    public static void main(String[] args) {
    String s1 = "the quick brown fox jumps over a lazy dog";
    s1 = s1.replace(" ", "");
    s1 = s1.toLowerCase();
    String alphabets="abcdefghijklmnopqrstuvwxyz";
    char[] c = s1.toCharArray();
    char [] alpha=alphabets.toCharArray();
    Arrays.sort(c);
    boolean result = Arrays.equals(c,alpha);
    if(result==true)
    {
    System.out.println("Pangram");
    }
    else
    System.out.println("Non Pangram");
    }
    }

  • @maheshpatil5812
    @maheshpatil5812 5 років тому +1

    #include
    int main()
    {
    int i,j,c=0;
    char a[100]="the quick brown fox jumps over a lazy dog";
    for(i=0;i

  • @theshauryasinghofficial
    @theshauryasinghofficial 4 роки тому

    coding ka Sandeep maheshwari