ArraysDemo - int s = 0; for (int x=0;x <...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class ArraysDemo { public static void main(String[ ] args) { boolean itemOrdered = false; int [] validValues = { 101, 108, 201, 213, 266, 304, 311, 409, 411, 412};
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: int s = 0; for (int x=0;x < validValues.length;++x) { if (s == validValues[x]) itemOrdered = true; }}}...
View Full Document

Ask a homework question - tutors are online