Sunday, June 5, 2022

ASCII Table in Java

 A simple program to display the ASCII characters using Java Programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada

09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.






Program Listing



public class ASCII_Table {

public static void main(String[] args) {
// TODO Auto-generated method stub
  final int MIN_CHAR = 32;
    final int MAX_CHAR = 127;
    final int CHARS_PER_LINE = 8;
    
    System.out.println("\t===================\n");
    System.out.println("\tAscii Table in Java");
    System.out.println("\t===================\n");
    
    for (int i = MIN_CHAR; i <= MAX_CHAR; i++) {
      System.out.printf("%2c  ", (char)i);
      if (i % CHARS_PER_LINE == CHARS_PER_LINE-1)
        System.out.println();

}
}
}

No comments:

Post a Comment