Showing posts with label lesson2. Show all posts
Showing posts with label lesson2. Show all posts

Java code to convert the individual character of a string into its ascii value


Steps

  1. Select Java form the categories and Java Application  from the projects, click Next.
  2. Set the Project name as  ascii  and set the Create Main Class, click Finish.
  3. Under the  project "ascii", you can see two files, double click the Source Packages,you can see a package by name " ascii " ,double click it you will find the Java Main Class File Ascii .java.
  4. Open this file, remove the existing code and  paste the following code.
------------------------------------------------Ascii.java-----------------------------------------------------------