Sunday, March 18, 2018

Character dispaly of Java Programme

/* Assigning Value to Character variables */
package charDispaly;
public class charDispaly
{
    static public void main(String[] args)
    {
        char ch1 = 65;
        char ch2 = 'A';
        prln("Ch1: "+ch1);
        prln("Ch2: "+ch2);
    }
    static void prln(Object anyObject)
    {
        System.out.println(anyObject);
    }
    static void pr(Object anyObject)
    {
        System.out.print(anyObject);
    }
 
}


Share:

0 comments:

Post a Comment

Blogger templates