java.lang.Character.Subset.toString()


java.lang.Character.Subset.toString()

package com.codingdict;



import java.lang.*;



public class CharacterSubsetDemo extends Character.Subset {



   // constructor of super class

   CharacterSubsetDemo(String s) {

      super(s); 

   }



   public static void main(String[] args) {



      CharacterSubsetDemo str1 = new CharacterSubsetDemo("admin");

      CharacterSubsetDemo str2 = new CharacterSubsetDemo("webmaster");

      CharacterSubsetDemo str3 = new CharacterSubsetDemo("administrator");



      // returns a string representation of the object

      System.out.println("String1 = " + str1.toString());

      System.out.println("String2 = " + str2.toString());

      System.out.println("String3 = " + str3.toString());

   }

}