... names[] = {“Ralph”, “Alice”, “Sam”};int ids[] = {1001, 1002, 1003};int scores[] = { 45, 55 , 65} ;double total = 0; for (int loopIndex = 0; loopIndex < scores.length; loopIndex++){total += scores[loopIndex];}double ... StudentThreaded.getInstance();student.setAverageScore(averageScore);student.setName(“Ralph”);student.setId(1002);student.setScore( 45) ;thread = new Thread(this, “second”);thread.start(); System.out.println(“Name: “ + student.getName() +114Part I: Getting to Know Patterns 09_79 854 1 ch 05. qxp 3/27/06 2:22 ... also using theterm “interface” generically here:1 35 Chapter 6: The Adapter and Facade Patterns11_79 854 1 ch06.qxp 3/27/06 2:22 PM Page 1 35 You set the name of this product character by character,...