Java Ascii to string Convertion ,Using Ascii value get all English Alphabet. Ascii value in java

Java Ascii to string Convertion 



Hi welcome to my blog.

In this article we are going to discuss about Ascii value in java.

Before you understand this code you have to knowledge about  Ascii value.

To Know Ascii value you should go through this.

CODE:

For Small Letter

class Test{

public static void main(String[] args) {

    for (int i=97;i<123;i++ ) {

    System.out.print("  "(char)i)

}

        }

}

OUTPUT:

 - a - b - c - d - e - f - g - h - i - j - k - l - m - n - o - p - q - r - s - t - u - v - w - x - y - z


CODE:

For Capital Letter


 class Test{ 
	public static void main(String[] args) {
		for (int i=65;i<91;i++ ) {
            System.out.print(" - "+(char)  i);
 
		}
	}
 } 

OUTPUT:

- A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z

Here is the Ascii Table.                             



            

                                        Thank You?


0 K comment

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel