Hi everyone,
I am new to java.
I have a question?
How can I store in to an array the values that the user enter, so later I can compare the two sets of array that the user enter.

This is what I have:

System.out.print("This program is going to find the union " +
" or intersection of any two sets you enter" +
"\nPlease enter the first set: ");
for(int i=0; ;i++)
{
int userSetArray1[] = Integer.parceInt(userSetArray1);
}

Thanks

it is parseInt not parceInt read them in two arrays and see which all are present in both array.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.