This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Program to check if an array is a subset of another array | |
*/ | |
public class answer1{ | |
public static void main(String args[]){ | |
char [] a ={'A','B','C','D','E'}; | |
char [] b ={'A','D','D','Z'}; | |
System.out.println(isSubset(a,b)); |