Docsity

Computer Science - Diagnostic Test, Exams of Computer Science

Partial preview of the text

Download Computer Science - Diagnostic Test and more Exams Computer Science in PDF only on Docsity!

Computer Science Diagnostic Test String[] books = { "Logica sive Ars Rationalis", "Kritik der reinen Vernunft", “Cursus Philosophicus Thomisticus", “Happy words for happy people’, "Insane words for an insane world" }; String str = "Kittens in a cart"; ArrayList vals = new ArrayList(); for(int i = 0; i < books.length; i++) { if(books[i].compareTo(str) > 0) { The rest is given below