I was hoping there is some way in java do to as the title says. For example:
int Num1 = 5;
int Num2 = 9;
char Char1 = 'a';
char Char2 = 'g';
char[] CharArray = {'1','2','3','4','5','6','7','8'
'9','a','b','c','d','e','f'}
I would like it to return true for Num1, Num2, and Char1, while Char2 should return false.
I know in MATLAB it's quite easy, you can simply just do:
ismember([Num1 Num2 Char1 Char2], CharArray)
This will return 1,1,1,0