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) {
        int cp1 = 0x0071;
        int cp2 = 0x0570;

        int cp3 = Character.toUpperCase(cp1);
        int cp4 = Character.toUpperCase(cp2);

        String str1 = "Uppercase equivalent of " + cp1 + " is " + cp3;
        String str2 = "Uppercase equivalent of " + cp2 + " is " + cp4;

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