Appendix B Task 2: questionnaire and artefacts

Size: px
Start display at page:

Download "Appendix B Task 2: questionnaire and artefacts"

Transcription

1 Appendix B Task 2: questionnaire and artefacts This section shows the questionnaire, the UML class and sequence diagrams, and the source code provided for the task 1 (T2) Buy a Ticket Unsuccessfully. It is worth noting that in case the subject has to perform the task using NO_DM we provided to him/her only the source code. On the other hand, we provided the UML class and sequence diagrams, and the source code, when the subject has to perform the task using DM. T2 - Questionnaire 1) To execute the application I have to execute: The method main() of the class Controllo The class Vista The class Modello 2) If the user select a ticket not available from the list, what happen?: The method actionperformed() of the class AzioneAcquistaBiglietto is executed An error is shown and the applicatin ends The class AzioneAcquistaBiglietto shows the message Ticket not available 3) What happen when the user select the action to buy a ticket without selecting a ticket before: The class AzioneIniziaAcquisto shows the message Nothing was selected The class AzioneAcquistaBiglietto shows the message Nothing was selected The class AzioneAcquistaBiglietto shows the message No ticket available 4) What is the class in charge of controlling the ticket: The class AzioneAcquistaBiglietto The class Controllo The class Modello 5) When an instance of the class Controllo (in the constructor) is created: An object of type Modello is created The method actionperformed() is executed No operation is exectuted 6) What is the class or method in charge of initializing graphical interfaces: The method inizializzaazioni() of the class Controllo The class Modello The method inizializzasottoviste() of the class Vista 7) What is the class or method in charge of loading the repository: The class Vista The method main() of the class Controllo The method caricaarchivio() of the class Controllo 8) What is class in charge of showing the tickets (available and not available): The class Vista The class PannelloPrincipale The class AzioneAcquistaBiglietto

2 9. What is the class that should be used to manage exceptional conditions: The class Modello The class Controllo The class Vista 10. A new graphical interface should be declared in: In the class Modello In the class Controllo In the method inizializzasottoviste() of the class Vista 11. To add the entry help to the Main (Initial) Menu, which of the following methods should be modified:: messaggi() inizializzaazioni() initcomponents() 12. If I want to manage the exceptional condition when a client is in the repository but he/she has not already bought a ticket I should modify the method actionperformed() of the class AzioneAcquistaBiglietto I should modify the class Controllo I should modify the method main() of the class Controllo 13. If I want to implement a new functionlity that allows to reserve a ticket before to buy it: I should add a method in the class Modello I should add a new control class I should modify the classe Modello 14. To add the possibility of cancelling the bought of a ticket, I should add: A control object and an entity object A boundary object and a control object A boundary object and an entity object 15. The exceptional conditions are: Managed by the field logger of the class Controllo Managed by the field logger of the class AzioneAcquistaBiglietto A suitable filed should be added in the class Vista

3 T2 Detailed UML class diagram

4 T2 Detailed UML sequence diagram

5 T2 JAVA source code See files: - AzioneAcquistaBiglietto.java - Controllo.java - Modello.java - PannelloPrincipale.java - Vista.java

6 AzioneAcquistaBiglietto.java Printed on 20/11/2008, Page 1 1 package it.unibas.teatro.controllo; 2 3 import it.unibas.teatro.costanti; 4 import it.unibas.teatro.modello.posto; 5 import it.unibas.teatro.modello.teatro; 6 import it.unibas.teatro.vista.finestraspettatore; 7 import it.unibas.teatro.vista.pannelloprincipale; 8 import java.awt.event.actionevent; 9 import java.awt.event.keyevent; 10 import java.util.iterator; 11 import javax.swing.abstractaction; 12 import javax.swing.action; 13 import javax.swing.keystroke; public class AzioneAcquistaBiglietto extends AbstractAction{ private Controllo controllo; public AzioneAcquistaBiglietto(Controllo controllo){ 20 this.controllo = controllo; 21 this.putvalue(action.name, "InserisciSpettatore"); 22 this.putvalue(action.short_description,"inserisce i dati dello spettatore"); 23 this.putvalue(action.mnemonic_key, new Integer(KeyEvent.VK_I)); 24 this.putvalue(action.accelerator_key, KeyStroke.getKeyStroke("ctrl I")); 25 } public void actionperformed(actionevent e){ 28 String messaggio = ""; 29 PannelloPrincipale p =(PannelloPrincipale) this.controllo.getvista().getsottovista(costanti. VISTA_PANNELLO_PRINCIPALE); 30 Teatro t=(teatro)this.controllo.getmodello().getbean(costanti.teatro); 31 Iterator i=t.getlistaposti().iterator(); 32 while(i.hasnext()){ 33 Posto posto =(Posto) i.next(); 34 if(posto.isstato() == true){ 35 int selezione = p.getselectedindex(); 36 if(selezione!=-1){ 37 posto = t.getposto(selezione); 38 if(posto.isstato() == false){ 39 messaggio+= "Posto gia' occupato\n"; 40 this.controllo.getvista().finestramessaggi(messaggio); 41 return; 42 } 43 this.controllo.getmodello().putbean(costanti.posto, posto); 44 FinestraSpettatore fs =(FinestraSpettatore) this.controllo.getvista(). getsottovista(costanti.vista_finestra_spettatore); 45 fs.setvisible(true); 46 return; 47 } 48 else{ 49 messaggio+= "Non hai selezionato nulla\n"; 50 this.controllo.getvista().finestramessaggi(messaggio); 51 } 52 } 53 } 54 messaggio+= "Non ci sono posti disponibili\n"; 55 this.controllo.getvista().finestramessaggi(messaggio); 56 System.exit(0); 57 } 58 } C:\Documents and Settings\Power\Desktop\Materiale Esperimento Potenza\codice teatro\codice teatro + class diagram\source code_acquistoconinsuccesso\azioneacquist

7 Controllo.java Printed on 20/11/2008, Page 1 1 package it.unibas.teatro.controllo; 2 3 import it.unibas.teatro.costanti; 4 import it.unibas.teatro.modello.modello; 5 import it.unibas.teatro.modello.teatro; 6 import it.unibas.teatro.persistenza.daoteatro; 7 import it.unibas.teatro.persistenza.idaoteatro; 8 import it.unibas.teatro.vista.vista; 9 import java.util.hashmap; 10 import java.util.map; 11 import javax.swing.action; 12 import org.apache.commons.logging.log; 13 import org.apache.commons.logging.logfactory; public class Controllo{ private Vista vista; 18 private Modello modello; 19 private Map mappaazioni = new HashMap(); 20 private Log logger = LogFactory.getLog(Controllo.class); 21 public Controllo(){ 22 this.inizializzaazioni(); 23 this.modello = new Modello(); 24 this.caricaarchivio(); 25 this.vista = new Vista(this, modello); 26 } public void inizializzaazioni(){ 29 this.mappaazioni.put(costanti.azione_esci, new AzioneEsci(this)); 30 this.mappaazioni.put(costanti.azione_acquista_biglietto, new AzioneAcquistaBiglietto( this)); 31 this.mappaazioni.put(costanti.azione_invia, new AzioneInvia(this)); 32 this.mappaazioni.put(costanti.azione_inizia_acquisto, new AzioneIniziaAcquisto(this)); 33 this.mappaazioni.put(costanti.azione_ricerca, new AzioneRicercaPostoSpettatore(this)); 34 this.mappaazioni.put(costanti.azione_visualizza_tabella_biglietti, new AzioneVisualizzaTabellaBiglietti(this)); 35 } public Action getazione(string nome){ 38 return(action) this.mappaazioni.get(nome); 39 } public void caricaarchivio(){ 42 IDAOTeatro daoteatro=new DAOTeatro(); 43 try{ 44 Teatro teatro=(teatro) daoteatro.carica(""); 45 this.getmodello().putbean(costanti.teatro,teatro); 46 }catch(exception e){ 47 logger.error("errore nel caricamento!!"+e); 48 } 49 } public Vista getvista(){ 52 return vista; 53 } public void setvista(vista vista){ 56 this.vista=vista; 57 } public Modello getmodello(){ 60 return modello; 61 } C:\Documents and Settings\Power\Desktop\Materiale Esperimento Potenza\codice teatro\codice teatro + class diagram\source code_acquistoconinsuccesso\controllo.java

8 Controllo.java Printed on 20/11/2008, Page public void setmodello(modello modello){ 64 this.modello = modello; 65 } public Map getmappaazioni(){ 68 return mappaazioni; 69 } public void setmappaazioni(map mappaazioni){ 72 this.mappaazioni=mappaazioni; 73 } public static void main(string args[]){ 76 java.awt.eventqueue.invokelater(new Runnable(){ 77 public void run(){ 78 Controllo controllo = new Controllo(); 79 } 80 }); 81 } 82 } C:\Documents and Settings\Power\Desktop\Materiale Esperimento Potenza\codice teatro\codice teatro + class diagram\source code_acquistoconinsuccesso\controllo.java

9 Modello.java Printed on 20/11/2008, Page 1 1 package it.unibas.teatro.modello; 2 3 import java.util.hashmap; 4 import java.util.map; 5 6 public class Modello{ 7 8 private Map mappabean = new HashMap(); 9 10 public Modello(){ 11 } public Object getbean(string nome){ 14 return this.mappabean.get(nome); 15 } publicvoid putbean(string nome,object bean){ 18 this.mappabean.put(nome,bean); 19 } 20 } C:\Documents and Settings\Power\Desktop\Materiale Esperimento Potenza\codice teatro\codice teatro + class diagram\source code_acquistoconinsuccesso\modello.java

10 PannelloPrincipale.java Printed on 20/11/2008, Page 1 1 package it.unibas.teatro.vista; 2 3 import it.unibas.teatro.costanti; 4 import it.unibas.teatro.controllo.controllo; 5 import it.unibas.teatro.modello.modello; 6 import it.unibas.teatro.modello.teatro; 7 8 public class PannelloPrincipale extends javax.swing.jpanel{ 9 10 private Vista vista; 11 private Controllo controllo; 12 private Modello modello; public PannelloPrincipale(Vista vista){ 15 this.vista=vista; 16 this.modello = vista.getmodello(); 17 this.controllo = vista.getcontrollo(); 18 initcomponents(); 19 this.visualizzatabella(); 20 this.inizializzabottoni(); 21 } public Controllo getcontrollo(){ 24 return controllo; 25 } public void setcontrollo(controllo controllo){ 28 this.controllo = controllo; 29 } public Modello getmodello(){ 32 return modello; 33 } public void setmodello(modello modello){ 36 this.modello = modello; 37 } public void visualizzatabella(){ 40 Teatro teatro=(teatro)this.controllo.getmodello().getbean(costanti.teatro); 41 ModelloTabella mt = new ModelloTabella(teatro); 42 this.tabellaposti.setmodel(mt); 43 } public int getselectedindex(){ 46 return this.tabellaposti.getselectedrow(); 47 } public void inizializzabottoni(){ 50 this.bottonevisualizza.setaction(this.controllo.getazione(costanti. AZIONE_ACQUISTA_BIGLIETTO)); 51 } private void initcomponents(){ 54 labelregistra = new javax.swing.jlabel(); 55 jscrollpane1 = new javax.swing.jscrollpane(); 56 tabellaposti = new javax.swing.jtable(); 57 labelteatro = new javax.swing.jlabel(); 58 bottonevisualizza = new javax.swing.jbutton(); 59 labelregistra.settext("registra ACQUISTO BIGLIETTO"); 60 tabellaposti.setmodel(new javax.swing.table.defaulttablemodel( 61 new Object[][]{ 62 {null, null, null, null}, C:\Documents and Settings\Power\Desktop\Materiale Esperimento Potenza\codice teatro\codice teatro + class diagram\source code_acquistoconinsuccesso\pannelloprinci

11 PannelloPrincipale.java Printed on 20/11/2008, Page 2 63 {null, null, null, null}, 64 {null, null, null, null}, 65 {null, null, null, null} 66 }, 67 new String[]{ 68 "Title 1", "Title 2", "Title 3", "Title 4" 69 } 70 )); 71 jscrollpane1.setviewportview(tabellaposti); 72 labelteatro.settext("teatro DON BOSCO"); 73 bottonevisualizza.settext("visualizza"); 74 org.jdesktop.layout.grouplayout layout=new org.jdesktop.layout.grouplayout(this); 75 this.setlayout(layout); 76 layout.sethorizontalgroup( 77 layout.createparallelgroup(org.jdesktop.layout.grouplayout.leading) 78.add(layout.createSequentialGroup() 79.addContainerGap() 80.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 81.add(jScrollPane1, org.jdesktop.layout.grouplayout.preferred_size, 375, org.jdesktop. layout.grouplayout.preferred_size) 82.add(labelRegistra) 83.add(labelTeatro) 84.add(bottoneVisualizza)) 85.addContainerGap(15, Short.MAX_VALUE)) 86 ); 87 layout.setverticalgroup( 88 layout.createparallelgroup(org.jdesktop.layout.grouplayout.leading) 89.add(layout.createSequentialGroup() 90.addContainerGap() 91.add(labelTeatro) 92.add(20, 20, 20) 93.add(labelRegistra) 94.add(30, 30, 30) 95.add(jScrollPane1, org.jdesktop.layout.grouplayout.preferred_size, 83, org.jdesktop. layout.grouplayout.preferred_size) 96.add(32, 32, 32) 97.add(bottoneVisualizza) 98.addContainerGap(90, Short.MAX_VALUE)) 99 ); 100 } 101 private javax.swing.jbutton bottonevisualizza; 102 private javax.swing.jscrollpane jscrollpane1; 103 private javax.swing.jlabel labelregistra; 104 private javax.swing.jlabel labelteatro; 105 private javax.swing.jtable tabellaposti; 106 } C:\Documents and Settings\Power\Desktop\Materiale Esperimento Potenza\codice teatro\codice teatro + class diagram\source code_acquistoconinsuccesso\pannelloprinci

12 Vista.java Printed on 20/11/2008, Page 1 1 package it.unibas.teatro.vista; 2 3 import it.unibas.teatro.costanti; 4 import it.unibas.teatro.controllo.controllo; 5 import it.unibas.teatro.modello.modello; 6 import java.util.hashmap; 7 import java.util.map; 8 import javax.swing.joptionpane; 9 10 public class Vista extends javax.swing.jframe{ private Controllo controllo; 13 private Modello modello; 14 private Map mappasottoviste = new HashMap(); public Vista(Controllo controllo,modello modello){ 17 this.modello = modello; 18 this.controllo = controllo; 19 initcomponents(); 20 this.inizializzamenu(); 21 this.inizializzasottoviste(); 22 this.postcomponent(); 23 } public void postcomponent(){ 26 this.pack(); 27 this.setvisible(true); 28 } public void inizializzamenu(){ 31 this.esci.setaction(this.getcontrollo().getazione(costanti.azione_esci)); 32 this.acquistabiglietto.setaction(this.controllo.getazione(costanti.azione_inizia_acquisto )); 33 this.ricercapostocliente.setaction(this.controllo.getazione(costanti.azione_ricerca)); 34 } public Object getsottovista(string nome){ 37 return this.mappasottoviste.get(nome); 38 } public void inizializzasottoviste(){ 41 PannelloPrincipale pp = new PannelloPrincipale(this); 42 this.mappasottoviste.put(costanti.vista_pannello_principale,pp); 43 FinestraSpettatore fs = new FinestraSpettatore(this); 44 this.mappasottoviste.put(costanti.vista_finestra_spettatore,fs); 45 RicercaPosto rp = new RicercaPosto(this); 46 this.mappasottoviste.put(costanti.vista_ricerca_posto,rp); 47 Biglietti b = new Biglietti(this); 48 this.mappasottoviste.put(costanti.vista_biglietti,b); 49 } public Controllo getcontrollo(){ 52 return controllo; 53 } public void setcontrollo(controllo controllo){ 56 this.controllo = controllo; 57 } public Modello getmodello(){ 60 return modello; 61 } 62 C:\Documents and Settings\Power\Desktop\Materiale Esperimento Potenza\codice teatro\codice teatro + class diagram\source code_acquistoconinsuccesso\vista.java F

13 Vista.java Printed on 20/11/2008, Page 2 63 public void setmodello(modello modello){ 64 this.modello = modello; 65 } public void finestramessaggi(string messaggio){ 68 JOptionPane op=new JOptionPane(); 69 op.showmessagedialog(this,messaggio); 70 } private void initcomponents(){ 78 jmenubar1 = new javax.swing.jmenubar(); 79 jmenu1 = new javax.swing.jmenu(); 80 esci = new javax.swing.jmenuitem(); 81 acquistabiglietto = new javax.swing.jmenuitem(); 82 ricercapostocliente = new javax.swing.jmenuitem(); 83 setdefaultcloseoperation(javax.swing.windowconstants.exit_on_close); 84 settitle("teatro"); 85 jmenu1.settext("file"); 86 esci.settext("item"); 87 jmenu1.add(esci); 88 acquistabiglietto.settext("item"); 89 jmenu1.add(acquistabiglietto); 90 ricercapostocliente.settext("item"); 91 jmenu1.add(ricercapostocliente); 92 jmenubar1.add(jmenu1); 93 setjmenubar(jmenubar1); 94 pack(); 95 } private javax.swing.jmenuitem acquistabiglietto; 98 private javax.swing.jmenuitem esci; 99 private javax.swing.jmenu jmenu1; 100 private javax.swing.jmenubar jmenubar1; 101 private javax.swing.jmenuitem ricercapostocliente; 102 } C:\Documents and Settings\Power\Desktop\Materiale Esperimento Potenza\codice teatro\codice teatro + class diagram\source code_acquistoconinsuccesso\vista.java F

CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus

CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus 1. Purpose This assignment exercises how to write a peer-to-peer communicating program using non-blocking

More information

How To Create A Digital Signature Certificate

How To Create A Digital Signature Certificate Tool. For Signing & Verification Submitted To: Submitted By: Shri Patrick Kishore Chief Operating Officer Sujit Kumar Tiwari MCA, I Year University Of Hyderabad Certificate by Guide This is certifying

More information

Translating to Java. Translation. Input. Many Level Translations. read, get, input, ask, request. Requirements Design Algorithm Java Machine Language

Translating to Java. Translation. Input. Many Level Translations. read, get, input, ask, request. Requirements Design Algorithm Java Machine Language Translation Translating to Java Introduction to Computer Programming The job of a programmer is to translate a problem description into a computer language. You need to be able to convert a problem description

More information

Java Classes. GEEN163 Introduction to Computer Programming

Java Classes. GEEN163 Introduction to Computer Programming Java Classes GEEN163 Introduction to Computer Programming Never interrupt someone doing what you said couldn't be done. Amelia Earhart Classes, Objects, & Methods Object-oriented programming uses classes,

More information

Software Engineering 1 EEL5881 Spring 2009. Homework - 2

Software Engineering 1 EEL5881 Spring 2009. Homework - 2 Software Engineering 1 EEL5881 Spring 2009 Homework - 2 Submitted by Meenakshi Lakshmikanthan 04/01/2009 PROBLEM STATEMENT: Implement the classes as shown in the following diagram. You can use any programming

More information

D06 PROGRAMMING with JAVA

D06 PROGRAMMING with JAVA Cicles Formatius de Grau Superior Desenvolupament d Aplicacions Informàtiques D06 PROGRAMMING with JAVA Ch11 Interfaces & Polymorphism PowerPoint presentation, created by Angel A. Juan - ajuanp(@)gmail.com,

More information

Assignment # 2: Design Patterns and GUIs

Assignment # 2: Design Patterns and GUIs CSUS COLLEGE OF ENGINEERING AND COMPUTER SCIENCE Department of Computer Science CSc 133 Object-Oriented Computer Graphics Programming Spring 2014 John Clevenger Assignment # 2: Design Patterns and GUIs

More information

NetBeans, Java, and JFreeChart. An introduction for the complete novice (Part 1)

NetBeans, Java, and JFreeChart. An introduction for the complete novice (Part 1) NetBeans, Java, and JFreeChart An introduction for the complete novice (Part 1) Carl David Carl.David@uconn.edu Introduction This set of papers consists of an introduction to JFreeChart and NetBeans as

More information

11. Applets, normal window applications, packaging and sharing your work

11. Applets, normal window applications, packaging and sharing your work 11. Applets, normal window applications, packaging and sharing your work In this chapter Converting Full Screen experiments into normal window applications, Packaging and sharing applications packaging

More information

Handout 3 cs180 - Programming Fundamentals Spring 15 Page 1 of 6. Handout 3. Strings and String Class. Input/Output with JOptionPane.

Handout 3 cs180 - Programming Fundamentals Spring 15 Page 1 of 6. Handout 3. Strings and String Class. Input/Output with JOptionPane. Handout 3 cs180 - Programming Fundamentals Spring 15 Page 1 of 6 Handout 3 Strings and String Class. Input/Output with JOptionPane. Strings In Java strings are represented with a class type String. Examples:

More information

Java Program Coding Standards 4002-217-9 Programming for Information Technology

Java Program Coding Standards 4002-217-9 Programming for Information Technology Java Program Coding Standards 4002-217-9 Programming for Information Technology Coding Standards: You are expected to follow the standards listed in this document when producing code for this class. Whether

More information

Introduction to Object-Oriented Programming

Introduction to Object-Oriented Programming Introduction to Object-Oriented Programming Programs and Methods Christopher Simpkins chris.simpkins@gatech.edu CS 1331 (Georgia Tech) Programs and Methods 1 / 8 The Anatomy of a Java Program It is customary

More information

Java is commonly used for deploying applications across a network. Compiled Java code

Java is commonly used for deploying applications across a network. Compiled Java code Module 5 Introduction to Java/Swing Java is commonly used for deploying applications across a network. Compiled Java code may be distributed to different machine architectures, and a native-code interpreter

More information

Swing. A Quick Tutorial on Programming Swing Applications

Swing. A Quick Tutorial on Programming Swing Applications Swing A Quick Tutorial on Programming Swing Applications 1 MVC Model View Controller Swing is based on this design pattern It means separating the implementation of an application into layers or components:

More information

Chapter 1. JOnAS and JMX, registering and manipulating MBeans

Chapter 1. JOnAS and JMX, registering and manipulating MBeans Chapter 1. JOnAS and JMX, registering and manipulating MBeans Table of Contents 1.1. Introduction... 1 1.2. ServletContextListener... 1 1.3. Configuration... 4 1.4. Library Dependences... 4 1.5. HibernateService

More information

JAVA Program For Processing SMS Messages

JAVA Program For Processing SMS Messages JAVA Program For Processing SMS Messages Krishna Akkulu The paper describes the Java program implemented for the MultiModem GPRS wireless modem. The MultiModem offers standards-based quad-band GSM/GPRS

More information

LAB4 Making Classes and Objects

LAB4 Making Classes and Objects LAB4 Making Classes and Objects Objective The main objective of this lab is class creation, how its constructer creation, object creation and instantiation of objects. We will use the definition pane to

More information

Using ilove SharePoint Web Services Workflow Action

Using ilove SharePoint Web Services Workflow Action Using ilove SharePoint Web Services Workflow Action This guide describes the steps to create a workflow that will add some information to Contacts in CRM. As an example, we will use demonstration site

More information

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Exam Name MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) The JDK command to compile a class in the file Test.java is A) java Test.java B) java

More information

J a v a Quiz (Unit 3, Test 0 Practice)

J a v a Quiz (Unit 3, Test 0 Practice) Computer Science S-111a: Intensive Introduction to Computer Science Using Java Handout #11 Your Name Teaching Fellow J a v a Quiz (Unit 3, Test 0 Practice) Multiple-choice questions are worth 2 points

More information

ICOM 4015: Advanced Programming

ICOM 4015: Advanced Programming ICOM 4015: Advanced Programming Lecture 10 Reading: Chapter Ten: Inheritance Copyright 2009 by John Wiley & Sons. All rights reserved. Chapter 10 Inheritance Chapter Goals To learn about inheritance To

More information

First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science

First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science First Java Programs V. Paúl Pauca Department of Computer Science Wake Forest University CSC 111D Fall, 2015 Hello World revisited / 8/23/15 The f i r s t o b l i g a t o r y Java program @author Paul Pauca

More information

INTRODUCTION TO COMPUTER PROGRAMMING. Richard Pierse. Class 7: Object-Oriented Programming. Introduction

INTRODUCTION TO COMPUTER PROGRAMMING. Richard Pierse. Class 7: Object-Oriented Programming. Introduction INTRODUCTION TO COMPUTER PROGRAMMING Richard Pierse Class 7: Object-Oriented Programming Introduction One of the key issues in programming is the reusability of code. Suppose that you have written a program

More information

Altas, Bajas y Modificaciones de Registros en tabla MYSQL

Altas, Bajas y Modificaciones de Registros en tabla MYSQL Altas, Bajas y Modificaciones de Registros en tabla MYSQL 1. En MySql crear una base de datos de nombre EmpresaABC y dentro de ella la tabla Empleados con la siguiente estructura: DNI integer(8) Definir

More information

Java. Java. e=mc 2. composition

Java. Java. e=mc 2. composition 2 Java Java e=mc 2 composition 17 18 method Extreme Programming Bo Diddley 2-1 2-1 50 1998 19 π ª º pattern XML XML hash table key/value XML 20 EJB CMP SQL ASP VBScript Microsoft ASP ASP.NET JavaScript

More information

Building a Multi-Threaded Web Server

Building a Multi-Threaded Web Server Building a Multi-Threaded Web Server In this lab we will develop a Web server in two steps. In the end, you will have built a multi-threaded Web server that is capable of processing multiple simultaneous

More information

// Correntista. //Conta Corrente. package Banco; public class Correntista { String nome, sobrenome; int cpf;

// Correntista. //Conta Corrente. package Banco; public class Correntista { String nome, sobrenome; int cpf; // Correntista public class Correntista { String nome, sobrenome; int cpf; public Correntista(){ nome = "zé"; sobrenome = "Pereira"; cpf = 123456; public void setnome(string n){ nome = n; public void setsobrenome(string

More information

Licensed for viewing only. Printing is prohibited. For hard copies, please purchase from www.agileskills.org

Licensed for viewing only. Printing is prohibited. For hard copies, please purchase from www.agileskills.org Unit Test 301 CHAPTER 12Unit Test Unit test Suppose that you are writing a CourseCatalog class to record the information of some courses: class CourseCatalog { CourseCatalog() { void add(course course)

More information

API for java.util.iterator. ! hasnext() Are there more items in the list? ! next() Return the next item in the list.

API for java.util.iterator. ! hasnext() Are there more items in the list? ! next() Return the next item in the list. Sequences and Urns 2.7 Lists and Iterators Sequence. Ordered collection of items. Key operations. Insert an item, iterate over the items. Design challenge. Support iteration by client, without revealing

More information

e ag u g an L g ter lvin v E ram Neal G g ro va P Ja

e ag u g an L g ter lvin v E ram Neal G g ro va P Ja Evolving the Java Programming Language Neal Gafter Overview The Challenge of Evolving a Language Design Principles Design Goals JDK7 and JDK8 Challenge: Evolving a Language What is it like trying to extend

More information

LAB 1. Familiarization of Rational Rose Environment And UML for small Java Application Development

LAB 1. Familiarization of Rational Rose Environment And UML for small Java Application Development LAB 1 Familiarization of Rational Rose Environment And UML for small Java Application Development OBJECTIVE AND BACKGROUND The purpose of this first UML lab is to familiarize programmers with Rational

More information

Specialized Programme on Web Application Development using Open Source Tools

Specialized Programme on Web Application Development using Open Source Tools Specialized Programme on Web Application Development using Open Source Tools Objective: At the end of the course, Students will be able to: Understand various open source tools(programming tools and databases)

More information

CSE 308. Coding Conventions. Reference

CSE 308. Coding Conventions. Reference CSE 308 Coding Conventions Reference Java Coding Conventions googlestyleguide.googlecode.com/svn/trunk/javaguide.html Java Naming Conventions www.ibm.com/developerworks/library/ws-tipnamingconv.html 2

More information

You are to simulate the process by making a record of the balls chosen, in the sequence in which they are chosen. Typical output for a run would be:

You are to simulate the process by making a record of the balls chosen, in the sequence in which they are chosen. Typical output for a run would be: Lecture 7 Picking Balls From an Urn The problem: An urn has n (n = 10) balls numbered from 0 to 9 A ball is selected at random, its' is number noted, it is set aside, and another ball is selected from

More information

Java Interview Questions and Answers

Java Interview Questions and Answers 1. What is the most important feature of Java? Java is a platform independent language. 2. What do you mean by platform independence? Platform independence means that we can write and compile the java

More information

Specialized Programme on Web Application Development using Open Source Tools

Specialized Programme on Web Application Development using Open Source Tools Specialized Programme on Web Application Development using Open Source Tools A. NAME OF INSTITUTE Centre For Development of Advanced Computing B. NAME/TITLE OF THE COURSE C. COURSE DATES WITH DURATION

More information

IRA EXAMPLES. This topic has two examples showing the calculation of the future value an IRA (Individual Retirement Account).

IRA EXAMPLES. This topic has two examples showing the calculation of the future value an IRA (Individual Retirement Account). IRA EXAMPLES This topic has two examples showing the calculation of the future value an IRA (Individual Retirement Account). Definite Counting Loop Example IRA After x Years This first example illustrates

More information

CS 335 Lecture 06 Java Programming GUI and Swing

CS 335 Lecture 06 Java Programming GUI and Swing CS 335 Lecture 06 Java Programming GUI and Swing Java: Basic GUI Components Swing component overview Event handling Inner classes and anonymous inner classes Examples and various components Layouts Panels

More information

Section 6 Spring 2013

Section 6 Spring 2013 Print Your Name You may use one page of hand written notes (both sides) and a dictionary. No i-phones, calculators or any other type of non-organic computer. Do not take this exam if you are sick. Once

More information

Unit Testing and JUnit

Unit Testing and JUnit Unit Testing and JUnit Testing Objectives Tests intended to find errors Errors should be found quickly Good test cases have high p for finding a yet undiscovered error Successful tests cause program failure,

More information

Classes and Objects in Java Constructors. In creating objects of the type Fraction, we have used statements similar to the following:

Classes and Objects in Java Constructors. In creating objects of the type Fraction, we have used statements similar to the following: In creating objects of the type, we have used statements similar to the following: f = new (); The parentheses in the expression () makes it look like a method, yet we never created such a method in our

More information

Java GUI Programming. Building the GUI for the Microsoft Windows Calculator Lecture 2. Des Traynor 2005

Java GUI Programming. Building the GUI for the Microsoft Windows Calculator Lecture 2. Des Traynor 2005 Java GUI Programming Building the GUI for the Microsoft Windows Calculator Lecture 2 Des Traynor 2005 So, what are we up to Today, we are going to create the GUI for the calculator you all know and love.

More information

C:\Documents and Settings\Gijs\Desktop\src\client\Client.java dinsdag 3 november 2009 10:50

C:\Documents and Settings\Gijs\Desktop\src\client\Client.java dinsdag 3 november 2009 10:50 C:\Documents and Settings\Gijs\Desktop\src\client\Client.java dinsdag 3 november 2009 10:50 package client; import hotel.bookingconstraints; import hotel.bookingexception; import hotel.costumersessionremote;

More information

Introduction to Java

Introduction to Java Introduction to Java The HelloWorld program Primitive data types Assignment and arithmetic operations User input Conditional statements Looping Arrays CSA0011 Matthew Xuereb 2008 1 Java Overview A high

More information

STORM. Simulation TOol for Real-time Multiprocessor scheduling. Designer Guide V3.3.1 September 2009

STORM. Simulation TOol for Real-time Multiprocessor scheduling. Designer Guide V3.3.1 September 2009 STORM Simulation TOol for Real-time Multiprocessor scheduling Designer Guide V3.3.1 September 2009 Richard Urunuela, Anne-Marie Déplanche, Yvon Trinquet This work is part of the project PHERMA supported

More information

Creating a Simple, Multithreaded Chat System with Java

Creating a Simple, Multithreaded Chat System with Java Creating a Simple, Multithreaded Chat System with Java Introduction by George Crawford III In this edition of Objective Viewpoint, you will learn how to develop a simple chat system. The program will demonstrate

More information

JUnit Howto. Blaine Simpson

JUnit Howto. Blaine Simpson JUnit Howto Blaine Simpson JUnit Howto Blaine Simpson Published $Date: 2005/09/19 15:15:02 $ Table of Contents 1. Introduction... 1 Available formats for this document... 1 Purpose... 1 Support... 2 What

More information

Unit Testing & JUnit

Unit Testing & JUnit Unit Testing & JUnit Lecture Outline Communicating your Classes Introduction to JUnit4 Selecting test cases UML Class Diagrams Rectangle height : int width : int resize(double,double) getarea(): int getperimeter():int

More information

System.out.println("\nEnter Product Number 1-5 (0 to stop and view summary) :

System.out.println(\nEnter Product Number 1-5 (0 to stop and view summary) : Benjamin Michael Java Homework 3 10/31/2012 1) Sales.java Code // Sales.java // Program calculates sales, based on an input of product // number and quantity sold import java.util.scanner; public class

More information

Collections and iterators

Collections and iterators Objects First With Java A Practical Introduction Using BlueJ Grouping objects Collections and iterators 2.0 Concepts covered so far Abstraction Modularization Classes define types Class and object diagrams

More information

Automatic generation of fully-executable code from the Domain tier of UML diagrams

Automatic generation of fully-executable code from the Domain tier of UML diagrams Abstract. Automatic generation of fully-executable code from the Domain tier of UML diagrams Macario Polo, Agustín Mayoral, Juan Ángel Gómez and Mario Piattini Alarcos Group - Department of Computer Science

More information

1 Hour, Closed Notes, Browser open to Java API docs is OK

1 Hour, Closed Notes, Browser open to Java API docs is OK CSCI 143 Exam 2 Name 1 Hour, Closed Notes, Browser open to Java API docs is OK A. Short Answer For questions 1 5 credit will only be given for a correct answer. Put each answer on the appropriate line.

More information

Oracle WebLogic Server

Oracle WebLogic Server Oracle WebLogic Server Monitoring and Managing with the Java EE Management APIs 10g Release 3 (10.3) July 2008 Oracle WebLogic Server Monitoring and Managing with the Java EE Management APIs, 10g Release

More information

Tutorial: Getting Started

Tutorial: Getting Started 9 Tutorial: Getting Started INFRASTRUCTURE A MAKEFILE PLAIN HELLO WORLD APERIODIC HELLO WORLD PERIODIC HELLO WORLD WATCH THOSE REAL-TIME PRIORITIES THEY ARE SERIOUS SUMMARY Getting started with a new platform

More information

An Android-based Instant Message Application

An Android-based Instant Message Application An Android-based Instant Message Application Qi Lai, Mao Zheng and Tom Gendreau Department of Computer Science University of Wisconsin - La Crosse La Crosse, WI 54601 mzheng@uwlax.edu Abstract One of the

More information

Enhancement of Openbravo POS system

Enhancement of Openbravo POS system - 1 - Cai Zhongjie Enhancement of Openbravo POS system Information and Technology 2010 - 2 - VAASAN AMMATTIKORKEAKOULU UNIVERSITY OF APPLIED SCIENCES Degree Programme of Information Technology ABSTRACT

More information

Part I. Multiple Choice Questions (2 points each):

Part I. Multiple Choice Questions (2 points each): Part I. Multiple Choice Questions (2 points each): 1. Which of the following is NOT a key component of object oriented programming? (a) Inheritance (b) Encapsulation (c) Polymorphism (d) Parallelism ******

More information

Realizing Enterprise Integration Patterns in WebSphere

Realizing Enterprise Integration Patterns in WebSphere Universität Stuttgart Fakultät Informatik, Elektrotechnik und Informationstechnik Realizing Enterprise Integration Patterns in WebSphere Thorsten Scheibler, Frank Leymann Report 2005/09 October 20, 2005

More information

Classes and Objects. Agenda. Quiz 7/1/2008. The Background of the Object-Oriented Approach. Class. Object. Package and import

Classes and Objects. Agenda. Quiz 7/1/2008. The Background of the Object-Oriented Approach. Class. Object. Package and import Classes and Objects 2 4 pm Tuesday 7/1/2008 @JD2211 1 Agenda The Background of the Object-Oriented Approach Class Object Package and import 2 Quiz Who was the oldest profession in the world? 1. Physician

More information

Software Development with UML and Java 2 SDJ I2, Spring 2010

Software Development with UML and Java 2 SDJ I2, Spring 2010 Software Development with UML and Java 2 SDJ I2, Spring 2010 Agenda week 7, 2010 Pakages Looking back Looking forward Packages Interfaces Page 1 Spring 2010 Download, Install/Setup 1. Java SE SDK (http://java.sun.com/javase/downloads)

More information

Zebra and MapReduce. Table of contents. 1 Overview...2 2 Hadoop MapReduce APIs...2 3 Zebra MapReduce APIs...2 4 Zebra MapReduce Examples...

Zebra and MapReduce. Table of contents. 1 Overview...2 2 Hadoop MapReduce APIs...2 3 Zebra MapReduce APIs...2 4 Zebra MapReduce Examples... Table of contents 1 Overview...2 2 Hadoop MapReduce APIs...2 3 Zebra MapReduce APIs...2 4 Zebra MapReduce Examples... 2 1. Overview MapReduce allows you to take full advantage of Zebra's capabilities.

More information

Chapter 2. println Versus print. Formatting Output withprintf. System.out.println for console output. console output. Console Input and Output

Chapter 2. println Versus print. Formatting Output withprintf. System.out.println for console output. console output. Console Input and Output Chapter 2 Console Input and Output System.out.println for console output System.out is an object that is part of the Java language println is a method invoked dby the System.out object that can be used

More information

LINKED DATA STRUCTURES

LINKED DATA STRUCTURES LINKED DATA STRUCTURES 1 Linked Lists A linked list is a structure in which objects refer to the same kind of object, and where: the objects, called nodes, are linked in a linear sequence. we keep a reference

More information

How to Install Java onto your system

How to Install Java onto your system How to Install Java onto your system 1. In your browser enter the URL: Java SE 2. Choose: Java SE Downloads Java Platform (JDK) 7 jdk-7- windows-i586.exe. 3. Accept the License Agreement and choose the

More information

5.17 GUI. Xiaoyi Jiang Informatik I Grundlagen der Programmierung

5.17 GUI. Xiaoyi Jiang Informatik I Grundlagen der Programmierung AWT vs. Swing AWT (Abstract Window Toolkit; Package java.awt) Benutzt Steuerelemente des darunterliegenden Betriebssystems Native Code (direkt für die Maschine geschrieben, keine VM); schnell Aussehen

More information

Design Pattern for the Adaptive Scheduling of Real-Time Tasks with Multiple Versions in RTSJ

Design Pattern for the Adaptive Scheduling of Real-Time Tasks with Multiple Versions in RTSJ Design Pattern for the Adaptive Scheduling of Real-Time Tasks with Multiple Versions in RTSJ Rodrigo Gonçalves, Rômulo Silva de Oliveira, Carlos Montez LCMI Depto. de Automação e Sistemas Univ. Fed. de

More information

qwertyuiopasdfghjklzxcvbnmqwerty uiopasdfghjklzxcvbnmqwertyuiopasd fghjklzxcvbnmqwertyuiopasdfghjklzx cvbnmqwertyuiopasdfghjklzxcvbnmq

qwertyuiopasdfghjklzxcvbnmqwerty uiopasdfghjklzxcvbnmqwertyuiopasd fghjklzxcvbnmqwertyuiopasdfghjklzx cvbnmqwertyuiopasdfghjklzxcvbnmq qwertyuiopasdfghjklzxcvbnmqwerty uiopasdfghjklzxcvbnmqwertyuiopasd fghjklzxcvbnmqwertyuiopasdfghjklzx cvbnmqwertyuiopasdfghjklzxcvbnmq Introduction to Programming using Java wertyuiopasdfghjklzxcvbnmqwertyui

More information

Chulalongkorn University International School of Engineering Department of Computer Engineering 2140105 Computer Programming Lab.

Chulalongkorn University International School of Engineering Department of Computer Engineering 2140105 Computer Programming Lab. Chulalongkorn University Name International School of Engineering Student ID Department of Computer Engineering Station No. 2140105 Computer Programming Lab. Date Lab 2 Using Java API documents, command

More information

Installing Java (Windows) and Writing your First Program

Installing Java (Windows) and Writing your First Program Appendix Installing Java (Windows) and Writing your First Program We will be running Java from the command line and writing Java code in Notepad++ (or similar). The first step is to ensure you have installed

More information

Fondamenti di Java. Introduzione alla costruzione di GUI (graphic user interface)

Fondamenti di Java. Introduzione alla costruzione di GUI (graphic user interface) Fondamenti di Java Introduzione alla costruzione di GUI (graphic user interface) component - container - layout Un Container contiene [0 o +] Components Il Layout specifica come i Components sono disposti

More information

Introduction to Java Applications. 2005 Pearson Education, Inc. All rights reserved.

Introduction to Java Applications. 2005 Pearson Education, Inc. All rights reserved. 1 2 Introduction to Java Applications 2.2 First Program in Java: Printing a Line of Text 2 Application Executes when you use the java command to launch the Java Virtual Machine (JVM) Sample program Displays

More information

Classes: Relationships Among Objects. Atul Prakash Background readings: Chapters 8-11 (Downey)

Classes: Relationships Among Objects. Atul Prakash Background readings: Chapters 8-11 (Downey) Classes: Relationships Among Objects Atul Prakash Background readings: Chapters 8-11 (Downey) Real-World Relationships: Parent-child relationships among members of a species Friends relationship among

More information

1.00 Lecture 1. Course information Course staff (TA, instructor names on syllabus/faq): 2 instructors, 4 TAs, 2 Lab TAs, graders

1.00 Lecture 1. Course information Course staff (TA, instructor names on syllabus/faq): 2 instructors, 4 TAs, 2 Lab TAs, graders 1.00 Lecture 1 Course Overview Introduction to Java Reading for next time: Big Java: 1.1-1.7 Course information Course staff (TA, instructor names on syllabus/faq): 2 instructors, 4 TAs, 2 Lab TAs, graders

More information

Advanced Network Programming Lab using Java. Angelos Stavrou

Advanced Network Programming Lab using Java. Angelos Stavrou Advanced Network Programming Lab using Java Angelos Stavrou Table of Contents A simple Java Client...3 A simple Java Server...4 An advanced Java Client...5 An advanced Java Server...8 A Multi-threaded

More information

What s Wrong with This?

What s Wrong with This? More Sophisticated Behaviour 2 Using library classes to implement more advanced functionality. Also class (static( static) ) fields. What s Wrong with This? class Notebook private ArrayList notes;

More information

public void creditaccount(string accountnumber, float amount) { this.accounts.get(accountnumber).credit(amount); }

public void creditaccount(string accountnumber, float amount) { this.accounts.get(accountnumber).credit(amount); } package bank; //... public class Bank { private Map accounts; public Bank() { this.accounts = new HashMap(); public void addaccount(bankaccount account) { this.accounts.put(account.getnumber(),

More information

JIDE Action Framework Developer Guide

JIDE Action Framework Developer Guide JIDE Action Framework Developer Guide Contents PURPOSE OF THIS DOCUMENT... 1 WHAT IS JIDE ACTION FRAMEWORK... 1 PACKAGES... 3 MIGRATING FROM EXISTING APPLICATIONS... 3 DOCKABLEBARMANAGER... 9 DOCKABLE

More information

See the Developer s Getting Started Guide for an introduction to My Docs Online Secure File Delivery and how to use it programmatically.

See the Developer s Getting Started Guide for an introduction to My Docs Online Secure File Delivery and how to use it programmatically. My Docs Online Secure File Delivery API: C# Introduction My Docs Online has provided HIPAA-compliant Secure File Sharing and Delivery since 1999. With the most recent release of its web client and Java

More information

AP Computer Science Java Subset

AP Computer Science Java Subset APPENDIX A AP Computer Science Java Subset The AP Java subset is intended to outline the features of Java that may appear on the AP Computer Science A Exam. The AP Java subset is NOT intended as an overall

More information

java.util.scanner Here are some of the many features of Scanner objects. Some Features of java.util.scanner

java.util.scanner Here are some of the many features of Scanner objects. Some Features of java.util.scanner java.util.scanner java.util.scanner is a class in the Java API used to create a Scanner object, an extremely versatile object that you can use to input alphanumeric characters from several input sources

More information

Chapter 2 Introduction to Java programming

Chapter 2 Introduction to Java programming Chapter 2 Introduction to Java programming 1 Keywords boolean if interface class true char else package volatile false byte final switch while throws float private case return native void protected break

More information

Tools for Integration Testing

Tools for Integration Testing Tools for Integration Testing What is integration ing? Unit ing is ing modules individually A software module is a self-contained element of a system Then modules need to be put together to construct the

More information

Sample CSE8A midterm Multiple Choice (circle one)

Sample CSE8A midterm Multiple Choice (circle one) Sample midterm Multiple Choice (circle one) (2 pts) Evaluate the following Boolean expressions and indicate whether short-circuiting happened during evaluation: Assume variables with the following names

More information

Searching Algorithms

Searching Algorithms Searching Algorithms The Search Problem Problem Statement: Given a set of data e.g., int [] arr = {10, 2, 7, 9, 7, 4}; and a particular value, e.g., int val = 7; Find the first index of the value in the

More information

Java: overview by example

Java: overview by example Chair of Software Engineering Carlo A. Furia, Marco Piccioni, Bertrand Meyer Java: overview by example Bank Account A Bank Account maintain a balance (in CHF) of the total amount of money balance can go

More information

How To Use The Command Pattern In Java.Com (Programming) To Create A Program That Is Atomic And Is Not A Command Pattern (Programmer)

How To Use The Command Pattern In Java.Com (Programming) To Create A Program That Is Atomic And Is Not A Command Pattern (Programmer) CS 342: Object-Oriented Software Development Lab Command Pattern and Combinations David L. Levine Christopher D. Gill Department of Computer Science Washington University, St. Louis levine,cdgill@cs.wustl.edu

More information

Construction of classes with classes

Construction of classes with classes (November 13, 2014 Class hierarchies 1 ) Construction of classes with classes Classes can be built on existing classes through attributes of object types. Example: I A class PairOfDice can be constructed

More information

Programming with Java GUI components

Programming with Java GUI components Programming with Java GUI components Java includes libraries to provide multi-platform support for Graphic User Interface objects. The multi-platform aspect of this is that you can write a program on a

More information

Chapter 5. Recursion. Data Structures and Algorithms in Java

Chapter 5. Recursion. Data Structures and Algorithms in Java Chapter 5 Recursion Data Structures and Algorithms in Java Objectives Discuss the following topics: Recursive Definitions Method Calls and Recursion Implementation Anatomy of a Recursive Call Tail Recursion

More information

The following program is aiming to extract from a simple text file an analysis of the content such as:

The following program is aiming to extract from a simple text file an analysis of the content such as: Text Analyser Aim The following program is aiming to extract from a simple text file an analysis of the content such as: Number of printable characters Number of white spaces Number of vowels Number of

More information

Stock Trading System Software Design Document

Stock Trading System Software Design Document Stock Trading System Software Design Document Project Name: Stock Trading System Prepared by: Jin Li Student ID: 3062211079 Version: 1.2 Faculty adviser: Jin Bo CATALOG 1 Introduction...4 1.1 Purpose...

More information

http://netbeans.org/kb/docs/java/gui-functionality.html?print=yes

http://netbeans.org/kb/docs/java/gui-functionality.html?print=yes Page 1 of 6 Introduction to GUI Building Contributed by Saleem Gul and Tomas Pavek, maintained by Ruth Kusterer and Irina Filippova This beginner tutorial teaches you how to create a simple graphical user

More information

Third AP Edition. Object-Oriented Programming and Data Structures. Maria Litvin. Gary Litvin. Phillips Academy, Andover, Massachusetts

Third AP Edition. Object-Oriented Programming and Data Structures. Maria Litvin. Gary Litvin. Phillips Academy, Andover, Massachusetts Third AP Edition Object-Oriented Programming and Data Structures Maria Litvin Phillips Academy, Andover, Massachusetts Gary Litvin Skylight Software, Inc. Skylight Publishing Andover, Massachusetts Skylight

More information

WRITING DATA TO A BINARY FILE

WRITING DATA TO A BINARY FILE WRITING DATA TO A BINARY FILE TEXT FILES VS. BINARY FILES Up to now, we have looked at how to write and read characters to and from a text file. Text files are files that contain sequences of characters.

More information

COSC 1020 3.0 Introduction to Computer Science I Section A, Summer 2005. Question Out of Mark A Total 16. B-1 7 B-2 4 B-3 4 B-4 4 B Total 19

COSC 1020 3.0 Introduction to Computer Science I Section A, Summer 2005. Question Out of Mark A Total 16. B-1 7 B-2 4 B-3 4 B-4 4 B Total 19 Term Test #2 COSC 1020 3.0 Introduction to Computer Science I Section A, Summer 2005 Family Name: Given Name(s): Student Number: Question Out of Mark A Total 16 B-1 7 B-2 4 B-3 4 B-4 4 B Total 19 C-1 4

More information

Developer's Guide: Driving Tivoli Workload Automation

Developer's Guide: Driving Tivoli Workload Automation IBM Tivoli Workload Automation Developer's Guide: Driving Tivoli Workload Automation Version 9 Release 1 SC23-9608-02 IBM Tivoli Workload Automation Developer's Guide: Driving Tivoli Workload Automation

More information

16.1 DataFlavor. 16.1.1 DataFlavor Methods. Variables

16.1 DataFlavor. 16.1.1 DataFlavor Methods. Variables In this chapter: DataFlavor Transferable Interface ClipboardOwner Interface Clipboard StringSelection UnsupportedFlavorException Reading and Writing the Clipboard 16 Data Transfer One feature that was

More information

Lecture J - Exceptions

Lecture J - Exceptions Lecture J - Exceptions Slide 1 of 107. Exceptions in Java Java uses the notion of exception for 3 related (but different) purposes: Errors: an internal Java implementation error was discovered E.g: out

More information

Algorithms and Data Structures Written Exam Proposed SOLUTION

Algorithms and Data Structures Written Exam Proposed SOLUTION Algorithms and Data Structures Written Exam Proposed SOLUTION 2005-01-07 from 09:00 to 13:00 Allowed tools: A standard calculator. Grading criteria: You can get at most 30 points. For an E, 15 points are

More information

Masters programmes in Computer Science and Information Systems. Object-Oriented Design and Programming. Sample module entry test xxth December 2013

Masters programmes in Computer Science and Information Systems. Object-Oriented Design and Programming. Sample module entry test xxth December 2013 Masters programmes in Computer Science and Information Systems Object-Oriented Design and Programming Sample module entry test xxth December 2013 This sample paper has more questions than the real paper

More information