Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java letter alphabet index

String str = "abcdef";
char[] ch  = str.toCharArray();
for(char c : ch){
    int temp = (int)c;
    int temp_integer = 96; //for lower case
    if(temp<=122 & temp>=97)
        System.out.print(temp-temp_integer);
}
Comment

PREVIOUS NEXT
Code Example
Java :: java url 
Java :: hollow pyramid star pattern in java 
Java :: palindrome find in java 
Java :: resize array in java 
Java :: How to efficiently find the area of largest rectangle that can be formed by adjacent buildings with known heights, in Java? 
Java :: java append a string to file 
Java :: how to give square in java 
Java :: indext of minimum element in an array in java 
Java :: hexstring to string In java 
Java :: how to display the decimal value when 0 after point android studio 
Java :: how to add string to array in java 
Java :: distance point to line java 
Java :: object cloning in java 
Java :: palindrome java 
Java :: java print default options 
Java :: java android development get element by id 
Java :: hashtable java 
Java :: what is lambda expression in java 
Java :: Java do...while loop 
Java :: keytool error: java.lang.Exception: Key pair not generated, alias <demo already exists 
Java :: declare bufferedreader java 
Java :: BottomNavigationView only icon 
Java :: java.lang.NullPointerException 
Java :: $JAVA_HOME ENV 
Java :: how to convert line into string java 
Java :: java get class name of object 
Java :: Random Float in java 
Java :: java abstraction 
Java :: write in file java 
Java :: simple for loop 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =