/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author Dell */ import java.util.*; public class Java1DArray { public static void main(String[] args){ char s ='a'; int offset = (int)s; char b = 'a'; int code = b - offset; System.out.println("value of b is :: " + code); } }