Printing the ascii value of each and every character in java

 package mypro;


public class AsciiValuePrinting {

public static void main(String[] args) {

int r1=1;

int r2=255;

for(int i=r1; i<=r2; i++) {

char ch1=(char) i;

System.out.println(i +" == "+ch1);

}

}

}


Comments

Popular posts from this blog

250+ C Programs for Practice

FUNCTION OVERRIDING IN CPP