My goal is to create a program that checks a sentence whether or not a pangram
My logic says that i need to compare each letter from each word of Pangram with each index position of Alphabet, if i were to compare two characters array with each letters separately i would have done that with nesting for loop but here its a string so i need to convert the string to characters first.
And for that i know i have the charAt(index position) method.
This is all i know but this knowledge is not enough in order to accomplish the goal and i just don't know how to put together these things and achieve the goal
This is just a basic program which doesn't even require the input from user
Suppose you have an array, with array containing the frequency of the character 'a' in your possible Pangram sentence, and array cotains the frequency of the character 'b', et cetera. Now, given that sentence, how would you fill that array, and when is that sentence a Pangram?
There are three kinds of actuaries: those who can count, and those who can't.
When ever I need to know how to do something with a given class, I can usually find it by googling "java <className> <java version number>". The number at the end seems to help me bring up the online JavaDocs instead of a tutorial, which is harder to use as a reference material.
I think taking a look at The String JavaDoc will help you. There are multiple methods there that will help you check a String's characters.
By the way, In Java there are usually lots of different ways to convert one type to another. A String is just an array of numbers (in Java, these are byte primitive-types), each of which represents a letter, number, or other symbol.