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

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ม.ค. 2025

ความคิดเห็น • 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

  • @manjuch4884
    @manjuch4884 5 ปีที่แล้ว +11

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

  • @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.

  • @sidharthmandal9957
    @sidharthmandal9957 4 ปีที่แล้ว +6

    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

  • @TheMemeCat1
    @TheMemeCat1 5 ปีที่แล้ว +4

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

  • @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 5 ปีที่แล้ว +1

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

  • @abdullahrafi2496
    @abdullahrafi2496 4 ปีที่แล้ว

    Without any hesitation 10/10

  • @sourabhparalkar1583
    @sourabhparalkar1583 5 ปีที่แล้ว +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  5 ปีที่แล้ว +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.

    • @sidharthmandal9957
      @sidharthmandal9957 4 ปีที่แล้ว

      what will you do about the repeated letters??

  • @ramyach137
    @ramyach137 4 ปีที่แล้ว

    nice teaching with good presentation.

  • @qa3596
    @qa3596 2 ปีที่แล้ว

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

  • @lyrica5816
    @lyrica5816 4 ปีที่แล้ว +1

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

  • @vinaykumargm7259
    @vinaykumargm7259 5 ปีที่แล้ว +4

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

    • @Hampirathna
      @Hampirathna 5 ปีที่แล้ว +2

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

  • @swatisharma-fw5pp
    @swatisharma-fw5pp 4 ปีที่แล้ว

    Nicely explain

  • @smithajoseph667
    @smithajoseph667 5 ปีที่แล้ว +1

    Getting ArrayIndexOutOfBoundsException.. please help me on this

  • @mobeenasyed8753
    @mobeenasyed8753 5 ปีที่แล้ว +1

    Hi I am getting confusion how to subtract ASCII value

    • @ABCforTechnologyTraining
      @ABCforTechnologyTraining  5 ปีที่แล้ว

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

  • @shushilkumar6033
    @shushilkumar6033 5 ปีที่แล้ว

    sir your teaching style wonderful

  • @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!

  • @mdiqbalmahmud8233
    @mdiqbalmahmud8233 4 ปีที่แล้ว

    thank sir

  • @panyamramesh639
    @panyamramesh639 5 ปีที่แล้ว +1

    i like the BGM

  • @VineetKumar-eb3lv
    @VineetKumar-eb3lv 5 ปีที่แล้ว

    Thank You

  • @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

  • @maheshdeoraye6660
    @maheshdeoraye6660 4 ปีที่แล้ว

    it throws exception, array index out of bound exception

  • @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.

  • @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.

  • @business187
    @business187 5 ปีที่แล้ว

    CAN U plzzz MAKE TUTORIALS ALGORITHM??
    Plzzzzzzzzzzz

  • @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

  • @RaviRanjan-kd2kf
    @RaviRanjan-kd2kf 5 ปีที่แล้ว

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

  • @kitchenkhazana8677
    @kitchenkhazana8677 5 ปีที่แล้ว

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

  • @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

  • @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");
    }
    }

  • @theshauryasinghofficial
    @theshauryasinghofficial 4 ปีที่แล้ว

    coding ka Sandeep maheshwari