whats wrong?
import java.util.ArrayList; public class Program { public static void main(String[] args) { Linoy l = new Linoy(); Tom t = new Tom(); if (t.tomProfile.contains (l.linoyProfile.get (0)) && t.tomProfile.contains (l.linoyProfile.get (1))){ System.out.println ("It's a Match!"); } } } public class Linoy{ public static void arr1(){ ArrayList <String> linoyProfile = new ArrayList <String> (); linoyProfile.add ("Brown hair"); linoyProfile.add ("Tall"); } } public class Tom{ public static void arr2(){ ArrayList <String> tomProfile = new ArrayList <String> (); tomProfile.add ("Brown hair"); tomProfile.add ("Short"); } }