I have an array int[] myArray = new int[] { A, B, C, D, E };
The a,b,c,d,e are randomly set to the values of 6,4,5,1,1 from previous code.
I need to find a way to look for: IF array contains a 6, 5, or 4. I have to have a 6 first, then a 5, and then a 4. If the array contains 6,4,1,2,1, then I only need to find the 6. I cant use the 4 without a 5. If the array is set to 6,1,2,1,5, then I need the 6 and 5.
I need to put the "found" numbers (6,5,4) in the array into variables and print them to the console.
Thoughts, ideas, tutorials that might help?
Thank you