uppercase letter

85

uppercase letter -

using System;
public class Demo {
   public static void Main(){
      bool res;
      char val = 'H';
      Console.WriteLine("Value = "+val);
      res = Char.IsUpper(val);
      Console.WriteLine("Is the value an uppercae letter? = "+res);
   }
}

UpperCase -

public class Test {

   public static void main(String args[]) {
      System.out.println(Character.isUpperCase('c'));
      System.out.println(Character.isUpperCase('C'));
      System.out.println(Character.isUpperCase('\n'));
      System.out.println(Character.isUpperCase('\t'));
   }
}

Comments

Submit
0 Comments