Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {

    public static void main(String[] args) {
        char ch1 = 'i', ch2 = 65;

        Character c1 = Character.valueOf(ch1);
        Character c2 = Character.valueOf(ch2);

        String str1 = "Character value of " + ch1 + " is " + c1;
        String str2 = "Character value of " + ch2 + " is " + c2;

        System.out.println(str1);
        System.out.println(str2);
    }
}