text
stringlengths
3
1.18M
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * clase Obstaculo2 * * @author Anthony Misael Robledo * @version 1.1 */ public class Obstaculo2 extends Actor { /** * constructor de Obstaculo2 * @param nivel para saber que tipo de imagen usar s...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * clase Pinguio1 * * @author Anthony Misael * @version 1.1 */ public class Pinguino1 extends Pinguinos { private int y; /** * movimiento del Pinguino1 usando atributos de la super clase */ pu...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * clase Boton se usa para pintar y la animacion de los botones. * @author Anthony Robledo * @version 1.1 */ public class Boton extends Actor { private boolean cambio;// bandera para saver si el maouse paso por el obje...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Clase abstracta para usar plomirfismo * * @author Anthony Misael Robledo * @version 1.2 */ abstract class Pinguinos extends Maloso { /** * actua de la clase */ public void act() { //...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * clase buitre * * @author (your name) * @version (a version number or a date) */ public class buitre extends Maloso { private int n;//variable para usar en rand y que el buitre suelte el cubo de hielo private b...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** *clase Bala *objeto que sale cuando el jugador dispara * @author Anthony Robledo * @version 1.1 */ public class Bala extends Actor { private boolean dir;//direccion izq o der de la bala private boolean band;/...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * clase Play * @author Anthony Robledo * @version 1.1 */ public class Play extends Boton { /** * constructor de la subclase Play * da el nombre de la imagen en estado encendido y apagado * establ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * clase Cubo * * @author Anthony Misael Robledo Perez * @version 1.1 */ public class Cubo extends Maloso { /** * mueve el objeto */ public void act() { if(!super.esObstaculo()||!sup...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class Municion here. * * @author (your name) * @version (a version number or a date) */ public class Municion extends Actor { /** * Act - do whatever the Municion wants to do. This me...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** *clase mundo * @author Anthony Robledo * @version 1.1 */ public class mundo extends World { //private int cont=0; private int vidas;//vidas que tiene el jugador private Cont bal;// contador de balas pr...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** *clase usada para pintar las vidas restantes * * @author Anthony Misael Robledo * @version 1.1 */ public class Vidas extends Actor { /** * cambia la imagen segun el numero de vidas * @param n es el numer...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * * clase Menu * @author Anthony Robledo * @version 1.1 */ public class Menu extends Boton { /** * constructor de la subclase Menu * da el nombre de la imagen en estado encendido y apagado * est...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** *clase jugador * * * @author Anthony Robledo * @version 1.1 */ public class jugador extends Actor { private int t=0;//variable para cambiar el fondo del escenario private boolean dir;//para saver la direcci...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * clase Oso * * @author Anthony Misael Robledo * @version 1.1 */ public class Oso extends Maloso { /** * movimiento del oso usando atributos de la super clase */ public void act() { ...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * clase Pinguino2 * * @author Anthony Misael Robledo * @version 1.1 */ public class Pinguino2 extends Pinguinos { private int cont;//contador usado para cuando el pinguino2 dispare las pelotas /** * con...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * clase Maloso * * @author Anthony Misael Robledo * @version 1.1 */ public class Maloso extends Actor { /** * */ public void act() { } /** * se mueve segun l...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * clase Obstaculo * * @author Anthony Misael Robledo * @version 1.1 */ public class Obstaculo extends Actor { //private int ancho,alto; //private GreenfootImage img; /** * constructor de Obsta...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * * clase fin * solo se usa para poner la imagen del objeto * */ public class fin extends Actor { public void act() { } }
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * clase Next * usada solamente para poner letrero de siguiente * nivel * @author Anthony Misael Robledo * @version 1.1 */ public class Next extends Actor { public void act() { // Add your action c...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * * clase Help * @author Anthony Robledo * @version 1.1 */ public class Help extends Boton { /** * constructor de la subclase Help * da el nombre de la imagen en estado encendido y apagado * e...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * clase pelota * * @author Anthony Misael Robledo * @version 1.1 */ public class pelota extends Pinguino2 { public boolean band;//bandera usada para saver cuando eliminar el objeto pelota /** * construc...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * * clase Credits * @author Anthony Robledo * @version 1.1 */ public class Credits extends Boton { /** * constructor de la subclase Credits * da el nombre de la imagen en estado encendido y apagado ...
package com.machine32.classification.tree; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import org.apache.hadoop.io.Writable; import org.apache.hadoop.io.WritableUtils; /** * Identifies what tree the split is for * @author murariuf * */ public class TreeKey implements Writable...
package com.machine32.classification.tree.mappred; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapred.Mapper; public class TreeMapper /*implements Mapper<LongWritable, Text, K2, V2>*/{ }
package com.machine32.classification.tree.mappred; public class PreTreeMapper { }
package com.bytes32.stats; import org.apache.hadoop.io.Writable; /** * Represents a buffer used for holding approximate quantiles * @author murariuf * */ public interface QBuffer extends Writable{ /** * Sets the weight of the buffer * @param weight */ public void weight(int weight); /** * Gets the we...
package com.bytes32.stats; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Iterator; /** * A type of quantile that is build by merging * from previous quantiles into one final solution * * @author murariuf * */ public class ReduceQuantiles extends LargeQuanti...
package com.bytes32.stats; /** * Buffer status * @author murariuf * */ public enum BufferStatus { FULL, /* can no longer receive elements*/ PARTIAL, /* accepts elements */ EMPTY /* just created */ }
package com.bytes32.stats; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import java.util.Arrays; import org.apache.hadoop.io.WritableUtils; /** * Implementation of {@link QBuffer} hosts * the aproximate quantiles and associated information * @author murariuf * */ final class ...
package com.bytes32.stats; import java.nio.DoubleBuffer; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Random; public class MergeAndSelect { /* * Determines the offset based on the size of the buffer the weight of the * new collapsed buffer and the step in t...
package com.bytes32.stats; /** * set configuration * for epsilon and delta * * outputs the number of buffers b * and the size of the buffers k * * from the most imprecise to * @author murariuf * */ public enum Config { /** max 90 */ _01(0.1f,0.001f,3,90), /** max 97 */ _02(0.1f,0.0001f,3,97), /** max...
package com.bytes32.stats; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import java.nio.DoubleBuffer; import java.util.Collection; import java.util.Collections; import java.util.Deque; import java.util.Iterator; import java.util.LinkedList; import java.util.Random; import org.apach...
package com.bytes32.preprocess; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.mapred.JobConf; import org.apache.hadoop.mapred.OutputCollector; import org.apache.hadoop.mapred.Reducer; im...
package com.bytes32.preprocess; import java.io.IOException; import java.lang.reflect.Constructor; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Map.Entry; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapred.JobConf...
package com.bytes32.preprocess; import java.io.IOException; import java.util.Random; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapred.JobConf; import org.apache.hadoop.mapred.Mapper; import org.apache.hadoop.mapred.Out...
package com.bytes32.preprocess; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.bytes32.classification.tree.dataset.Feature; import com.bytes32.classification.tree.dataset.InvalidFeatureValueException; import com.bytes32.parsing.Parser; import com.bytes32.parsing.ParsingExc...
package com.bytes32.classification.tree.dataset; public class Stupid { public static void main(String[] args) { Long stupid = 1000L; Long a = stupid; a+=100; System.out.println(stupid); System.out.println(a); } }
package com.bytes32.classification.tree.dataset; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import java.nio.DoubleBuffer; import java.text.DecimalFormat; import java.text.NumberFormat; import java.text.ParseException; import java.util.ArrayList; import java.util.Arrays; import jav...
package com.bytes32.classification.tree.dataset; public class InvalidFeatureValueException extends Exception { /** * SVUID */ private static final long serialVersionUID = -3234372332978946217L; /** * Default message constructor * @param message */ public InvalidFeatureValueException(String message) { ...
package com.bytes32.classification.tree.dataset; import java.util.Iterator; import org.apache.hadoop.io.Writable; /** * Separates the way a feature is * processed, un-ordered (labels) and ordered (continuous) * @author murariuf * */ public interface FeatureProcessor<E> extends Writable{ /** * Adds a number...
package com.bytes32.classification.tree.dataset; /** * The types describing features * in a dataset, self explanatory * @author murariuf * */ public enum AttributeType { BINARY(0), LONG(1), DOUBLE(2), TEXT(3), UNKNOWN(Integer.MAX_VALUE); /* BINARY < LONG < DOUBLE < TEXT */ private final int order; pr...
package com.bytes32.classification.tree.dataset; public enum FeatureType { /** doesn't matter */ IGNORED, /** labels */ UNORDERED, /** some order mostly numbers*/ ORDERED, /** initial state of how features are emmitted from the mapper */ UNKNOWN, }
package com.bytes32.classification.tree.dataset; import java.io.ByteArrayOutputStream; import java.io.DataInput; import java.io.DataOutput; import java.io.DataOutputStream; import java.io.IOException; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.u...
package com.bytes32.classification.tree.dataset; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import java.util.Date; import java.util.Iterator; import java.util.List; import org.apache.hadoop.io.Writable; import org.apache.hadoop.io.WritableUtils; import com.bytes32.parsing.Parser...
package com.bytes32.classification.tree.dataset; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import java.util.Arrays; import org.apache.hadoop.io.Writable; import org.apache.hadoop.io.WritableUtils; /* * Wraps the key */ public class ByteArrayWrapper implements Writable{ /* t...
package com.bytes32.classification.tree.dataset; //package com.bytes32.classification.tree.model; // //import com.google.common.base.Preconditions; //import com.google.common.io.Closeables; //import org.apache.commons.lang.ArrayUtils; //import org.apache.hadoop.conf.Configuration; //import org.apache.hadoop.fs.F...
package com.bytes32.classification.tree.dataset; import java.io.ByteArrayOutputStream; import java.io.DataInput; import java.io.DataOutput; import java.io.DataOutputStream; import java.io.IOException; import java.util.Iterator; import java.util.Map.Entry; import org.apache.hadoop.io.WritableUtils; /** * Returns one ...
package com.bytes32.classification.tree.error; /** * Thrown when a feature expected maximum index * is exceeded * @author murariuf * */ public class IndexExceededException extends Exception { /** * SVUID */ private static final long serialVersionUID = 1051250706029015047L; /** * Simple message construc...
package com.bytes32.parsing; /** * Thrown by parsers when they are * unable to transform from string * * @author murariuf * */ public class ParsingException extends Exception { /** * SVUID */ private static final long serialVersionUID = 2804158960587342508L; /** * Default cause constructor * @param...
package com.bytes32.parsing; import org.apache.hadoop.io.Writable; import com.bytes32.classification.tree.dataset.AttributeType; import com.bytes32.classification.tree.dataset.FeatureType; /** * Attempts to convert from a string into * another writable that can be mapped to {@link AttributeType} * * Keep this w...
package com.bytes32.parsing; import com.bytes32.classification.tree.dataset.AttributeType; import com.bytes32.classification.tree.dataset.FeatureType; /** * Every successful intoText and intoNumber scores 1 point * in the weight * * This will score 1 point for unordered (assumed string) * and always fail for or...
package com.bytes32.parsing; abstract class AbstractParser<FROM> implements Parser<FROM> { private int weight = 0; @Override public int incrementWeight() { return ++weight; } @Override public int getWeight() { return weight; } @Override public int compareTo(Parser<? super FROM> o) { return (-1) * (...
package com.bytes32.parsing; import java.text.DecimalFormat; import java.text.NumberFormat; import java.text.ParseException; import com.bytes32.classification.tree.dataset.AttributeType; import com.bytes32.classification.tree.dataset.FeatureType; /** * Every successful intoText and intoNumber scores 1 point * in t...
package com.bytes32.parsing; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.PriorityQueue; import java.util.Queue; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Utility class that tries to convert a string into some for...
package com.bytes32.config; public enum ParamsConfig { /** the sampling rate of the SamplingMapper */ SAMPLING_RATE, /** the available parsers in the order they are supposed to run */ MAP_PARSERS, /** after PARSE_SUCCESS_COUNT successful transformations the other parsers are eliminated */ PARSE_SUCCESS_COUNT, /...
hola mundo!!!!
package com.fiberhome.student; public interface Cons { public static final String R_N = "\r\n"; public static final String TAB = "\t"; }
package com.fiberhome.student; import java.util.List; /** * 学生成绩计算器 * * @author jliu * */ public class StudentCacl<T> { private Float avg=0.0f; private Integer max = Integer.MIN_VALUE; private Integer min = Integer.MAX_VALUE; public StudentCacl(List<T> ts, Gettor<T> gettor) { Integer cur...
package com.fiberhome.student; import java.io.BufferedWriter; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Locale; import java.util.Random; i...
package com.fiberhome.student; import java.util.Locale; public class Student { private String name; private String number; private Integer chinese; private Integer mathematics; private Integer english; public Student(String name, String number, Integer chinese, Integer mathematics, Integer english...
package control; import model.*; import db.*; import java.util.*; /*This is the Client controller. * Its purpose is to give instructions towards manipulating the data concerning clients, including adding, updating, removing * or simply returning a client for inspection. */ public class ClientCtrl { ...
package control; import model.*; import db.*; import java.text.SimpleDateFormat; import java.util.*; /*This is the Case controller. * Its purpose is to give instructions towards manipulating the data concerning cases, including adding, updating, closing * or simply returning a case for inspection. */ ...
package control; import java.util.*; import model.*; import db.*; /*This is the Person controller. * Its purpose is to give instructions towards manipulating the data concerning people, including adding, updating, deleting * or simply returning a person for inspection. It also has the added function of mani...
package control; import java.util.*; import model.*; import db.*; /*This is the Vehicle controller. * Its purpose is to give instructions towards manipulating the data concerning vehicles, including adding, updating, removing * or simply returning a vehicle for inspection. */ public class VehicleCtrl ...
package GUI; import java.awt.BorderLayout; import java.awt.Color; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JTabbedPane; import javax.swing.JButton; import javax.swing.JTextField; import javax.swing.JLabel; ...
package GUI; import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.border.*; import java.awt.Font; import javax.swing.*; import model.*; import control.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.text.SimpleDateFormat; import java...
package GUI; import javax.swing.table.*; import java.util.ArrayList; import model.*; import control.*; public class contactTable extends DefaultTableModel { private ArrayList<Contact> contact = new ArrayList<Contact>(); public contactTable() { } @Override public boolean isCellEditabl...
package GUI; import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JLabel; import java.awt.Font; import javax.swing.JOptionPane; import javax.swing.JTextField; import javax.swing.JTable;...
package GUI; import javax.swing.table.*; import java.util.ArrayList; import model.*; import control.*; public class clientTable extends DefaultTableModel { private ArrayList<Client> client = new ArrayList<Client>(); public clientTable() { } @Override public boolean isCellEditable(int...
package GUI; import javax.swing.table.*; import java.util.ArrayList; import model.*; import control.*; public class casesTable extends DefaultTableModel { private ArrayList<Case> cases = new ArrayList<Case>(); private String user = ""; private PersonCtrl personCtrl = new PersonCtrl(); public ca...
package GUI; import javax.swing.table.*; import java.util.ArrayList; import model.*; import control.*; public class debtorsTable extends DefaultTableModel { private ArrayList<Debtor> debtors = new ArrayList<Debtor>(); public debtorsTable() { } @Override public boolean isCellEditable(...
package GUI; import java.awt.BorderLayout; import java.awt.EventQueue; import control.*; import model.Employee; import javax.swing.border.EmptyBorder; import java.awt.Toolkit; import javax.swing.*; import javax.swing.border.TitledBorder; import javax.swing.table.TableColumn; import java.awt.*; im...
package GUI; import java.awt.EventQueue; import java.awt.Font; import java.awt.Toolkit; import javax.swing.*; import javax.swing.border.EmptyBorder; import javax.swing.border.TitledBorder; import model.Contact; import control.PersonCtrl; import java.awt.event.ActionListener; import java.awt.event.Acti...
package GUI; import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.*; import javax.swing.border.EmptyBorder; import java.awt.*; import java.awt.Component; import javax.swing.border.TitledBorder; import model.Debtor; import control.PersonCtrl; import java.awt.event.*; import...
package GUI; import java.awt.EventQueue; import java.awt.Font; import java.awt.Toolkit; import javax.swing.*; import javax.swing.border.EmptyBorder; import javax.swing.border.TitledBorder; import model.Client; import control.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; ...
package GUI; import control.*; import model.*; import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JTextField; import javax.swing.JButton; import java....
package GUI; import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.*; import javax.swing.border.EmptyBorder; import java.awt.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class mainMenu extends JFrame { private JPanel contentPane; priva...
package GUI; import javax.swing.table.*; import java.util.ArrayList; import model.*; import control.*; public class vehicleTable extends DefaultTableModel { private ArrayList<Vehicle> veh = new ArrayList<Vehicle>(); public vehicleTable() { } @Override public boolean isCellEditable(in...
package GUI; import javax.swing.table.*; import java.util.ArrayList; import model.*; import control.*; public class employeeTable extends DefaultTableModel { private ArrayList<Employee> emp = new ArrayList<Employee>(); public employeeTable() { } @Override public boolean isCellEditabl...
package db; import model.*; import java.sql.*; import java.util.ArrayList; /** * DBEmployee.java * @author kbh * @version 5. oktober 2006, 2011.02.16 * */ public class DBEmployee{ private Connection con; private DBPerson dbPerson = new DBPerson(); /** Creates a new instance of...
package db; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.DriverManager; /** * @Author Almar * @Version 25.04.2014 * This class is used to create the connection to the database * It is implementet as a singelton. The constructor is private to ensure that only * one obje...
package db; import static org.junit.Assert.*; import org.junit.Test; public class DBConnectionTest { @Test public void test() { DBConnection dbCon = DBConnection.getInstance(); if(dbCon != null) { System.out.println("Conecction to DB is ok"); } else{ fail("Can not connect to the...
package db; import model.*; import java.sql.*; import java.util.ArrayList; /** * DBVehicle.java */ public class DBVehicle { private Connection con; /** Creates a new instance of DBVehicle */ public DBVehicle() { con = DBConnection.getInstance().getDBcon(); } //Implements the method...
package db; import model.*; import java.sql.*; import java.util.ArrayList; /** * DBEmployee.java * @author kbh * @version 5. oktober 2006, 2011.02.16 * */ public class DBCaseXEmployee{ private Connection con; private DBCase dbCase; private DBEmployee dbEmployee; /** Creat...
package db; import model.*; import java.sql.*; import java.util.ArrayList; /** * DBEmployee.java * @author kbh * @version 5. oktober 2006, 2011.02.16 * */ public class DBDebtor{ private Connection con; private DBContact dbContact = new DBContact(); private DBPerson dbPerson = new DB...
package db; import model.*; import java.sql.*; import java.util.ArrayList; /** * DBEmployee.java * @author kbh * @version 5. oktober 2006, 2011.02.16 * */ public class DBClient{ private Connection con; private DBContact dbContact = new DBContact(); /** Creates a new instance o...
package db; import model.*; import java.sql.*; import java.util.ArrayList; /** * DBCase.java */ public class DBCase { private Connection con; private DBVehicle dbVehicle = new DBVehicle(); private DBDebtor dbDebtor = new DBDebtor(); private DBClient dbClient = new DBClient(); /** Creates...
package db; import model.*; import java.sql.*; import java.util.ArrayList; /** * DBEmployee.java * @author kbh * @version 5. oktober 2006, 2011.02.16 * */ public class DBContact{ private Connection con; private DBPerson dbPerson = new DBPerson(); /** Creates a new instance of ...
package db; import model.*; import java.sql.*; import java.util.ArrayList; /** * DBEmployee.java * @author kbh * @version 5. oktober 2006, 2011.02.16 * */ public class DBPerson{ private Connection con; /** Creates a new instance of DBEmployee */ public DBPerson() { con ...
package model; public class Client { private String cvr; private String name; private String address; private String zipCode; private String city; private String phone; private String gsm; private String email; private Contact contact; public Client(String cvr, String name, String address, St...
package model; public class Person { private String cpr; private String name; private String address; private String zipCode; private String city; private String phone; private String gsm; private String email; public Person(String cpr, String name, String address, String zipCode, String city...
package model; import java.util.*; public class Case { private String startDate; private String extensionDate; private String debt; private String contract; private String information; private String historyArea; private String processed; private String endDate; private String id; private Clie...
package model; import java.util.*; public class Employee extends Person { private String password; private ArrayList<Case> caseList = new ArrayList<Case>(); private String accessType; private String status; public Employee(String cpr, String name, String address, String zipCode, String city, String p...
package model; public class Contact extends Person { public Contact(String cpr, String name, String address, String zipCode, String city, String phone, String gsm, String email) { super(cpr, name, address, zipCode, city, phone, gsm, email); } public Contact() { } public Person getPerson(...
package model; public class Vehicle { private String licensePlate; private String type; private String year; private String color; private String factoryNr; public Vehicle(String licensePlate, String type, String year, String color, String factoryNr) { this.licensePlate = licensePlate; this...
package model; public class Debtor extends Person { public Debtor(String cpr, String name, String address, String zipCode, String city, String phone, String gsm, String email) { super(cpr, name, address, zipCode, city, phone, gsm, email); } public Debtor() { } private Contact contact; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javaapplication28; import java.util.Date; /** * * @author Bruno */ public class Persona { private String nom; private String cognoms; private Date datanaixement; private String sexo; pri...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javaapplication28; /** * * @author Bruno */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application lo...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package examen1ªavaluacio; /** * * @author Bruno */ public class ExcepcioPossibilitatVida extends Exception{ public ExcepcioPossibilitatVida(String message) { super(message); } }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package examen1ªavaluacio; import com.nasa.telescopiHubble.ControladorTelescopi; /** * * @author Bruno */ public class Main { /** * @param args the command line arguments */ public static void Hay...