text
stringlengths
14
410k
label
int32
0
9
public synchronized boolean removeItem(FieldItem item, Position position){ if ((position.getX() <= this.getXLength()) || (position.getY() <= this.getYLength())) return false; if (field[position.getX()][position.getY()] == item) { field[position.getX()][position.getY()] = null; re...
3
private static int[] gcd( int numerator, int denominator ) { int highest; int n = 1; int d = 1; if( denominator > numerator ) { highest = denominator; } else { highest = numerator; } for( int x = highest; x > 0; x-- ) { if( ((denominator % x) == 0) && ((numerator % x) == 0) ) { ...
4
private static void verifyAntBuildFile(File currentFolder, PackDetails packDetails) throws ParserConfigurationException, SAXException, IOException { File antFile = new File(currentFolder, "build.xml"); System.out.println("Verifying ANT build file for validity..."); SAXParser parser =...
2
public void compileStmnt(String src) throws CompileError { Parser p = new Parser(new Lex(src)); SymbolTable stb = new SymbolTable(stable); while (p.hasMore()) { Stmnt s = p.parseStatement(stb); if (s != null) s.accept(gen); } }
2
@Override public void run() { Client client = new Client(socket); try { InputStream in = socket.getInputStream(); byte type = (byte) in.read(); if (type == 0x00) { while (true) { byte[] buffer = Protocol.decode(in); System.err.println(new String(buffer)); String decoded; if...
5
private static boolean isDigit(char arg0) { return arg0 >= '0' && arg0 <= '9'; }
1
public boolean Has3Items(int itemID, int amount, int itemID2, int amount2, int itemID3, int amount3){ if(HasItemAmount(itemID, amount)){ if(HasItemAmount(itemID2, amount2)){ if(HasItemAmount(itemID3, amount3)){ return true; } else{ return false; } } else{ return false; } } else...
3
public boolean checkStates() throws BadLocationException { dialog.addMessageToLogger("Checking states for assignment resources to the states", 1); boolean[] assignedStates = new boolean[pn.getStates().size()]; for (State state : pn.getStates()) { int i = pn.getStates().indexOf(state)...
8
static int[] getLocalIP() { try { InetAddress addr = InetAddress.getLocalHost(); byte[] ip = addr.getAddress(); if( ip == null || ip.length != 4 ) { return null; } int[] ret = new int[4]; for( int cnt = 0;cnt<4;cnt++) { ret[cnt] = (int)ip[cnt]; if( ret[cnt] < 0 ) { ...
5
public String readLine(ByteBuffer buffer) throws LineTooLargeException { byte b; boolean more = true; while (buffer.hasRemaining() && more) { b = buffer.get(); if (b == CR) { if (buffer.hasRemaining() && buffer.get() == LF) { more = fal...
9
public final Iterator<Path> filesIterator() { return new Iterator<Path>() { private DirTree currentTree = walkTo(DirTree.this.base); private Iterator<String> dirIter = this.currentTree.directories .keySet().iterator(); private Iterator<String> fileIter = this.currentTree.files.keySet() .iterator()...
5
public void setB(float b) { this.b = b; }
0
public Collection<DepartamentoDTO> buscarTodos(){ Connection con = null; PreparedStatement pstm = null; ResultSet rs = null; try { con = UConnection.getConnection(); String sql = "SELECT * FROM departamento LIMIT 10"; pstm = con.p...
5
public boolean benutzerSchonVorhanden(String neuerBenutzername) { Benutzer benutzer = dbZugriff.getBenutzervonBenutzername(neuerBenutzername); if (benutzer != null){ return true; } return false; }
1
@Override public void execute(String[] input) { if (input.length < 2) { laura.print("You need to give me a word to define."); return; } StringBuilder sb = new StringBuilder(); for (int i=1; i<input.length; i++) { sb.append(input[i]); } String query = sb.toString(); WordApi api = new WordAp...
4
public static void main(String[] args) { String fileName = null; ClassReader classReader = null; try { /* Filename should be the first command line argument */ fileName = args[0]; } catch(ArrayIndexOutOfBoundsException ex) { errorMessage("Usage: jav...
9
public Ticket_Frame() { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle...
6
protected void addedToWorld(World world) { // bereits existierende Aktoren auf der Kachel werden geloescht List l = getWorld().getObjectsAt(getX(), getY(), null); for (int i = 0; i < l.size(); i++) { Actor actor = (Actor) l.get(i); if (actor != this) { getWorld().removeObject(actor); } } }
2
private int getActiveContestantCount(RobotPeer peer) { int count = 0; for (ContestantPeer c : contestants) { if (c instanceof RobotPeer) { RobotPeer robot = (RobotPeer) c; if (!robot.isSentryRobot() && robot.isAlive()) { count++; } } else if (c instanceof TeamPeer && c != peer.getTeamPeer())...
9
private void addLabel(BufferedWriter bw, int address) throws IOException { // add label if(rom.label[address] != null || rom.labelType[address] != 0) { String label = rom.getLabel(address); if(rom.labelType[address] > 1) label += ": ; "+prettyPrintAddress(address); if(rom.labelType[address] > 2) { ...
6
private static boolean hasSuperclass(Class<?> c, Class<?> superClass) { if (superClass == Object.class) return true; Class<?> s = c.getSuperclass(); while(s != null && s != Object.class){ if (s == superClass) return true; s = s.getSuperclass(); } return false; }
7
private Vector<XMLNoteReplacer> getReplacers() { Vector<XMLNoteReplacer> r=new Vector<XMLNoteReplacer>(); r.add(new XMLNoteReplacer("[<]head[^>]*[>].*?[<][/]head[>]","",true)); r.add(new XMLNoteReplacer("[<]p[>](.*?)[<][/]p[>]","::P:PAR:P::$1::P:EPAR:P::",true)); r.add(new XMLNoteReplacer("[<]p\\s[^>]+[>](.*?)[...
9
public long getaField2() { return aField2; }
0
@Override public void update(Observable o, Object arg) { if (arg instanceof SearchModel) { this.model = (SearchModel) arg; } /**-50 to count for the offset of the textbox*/ show(this.textField, -50, this.textField.getHeight()); List<PictureObject> pictures = this.model.getPictures(); this.setListItem...
5
static void addElement(List<Node> list, Node node) { if ( null == list ) { throw new NullPointerException("The collection is null"); } if ( list.isEmpty() ) { list.add(node); } int size = list.size(); int i = 0; int j = size - 1; ...
8
public static void DFS(int node, int used, int parent, String path) { if (path.length() / 2 == size) ans.add(path.trim()); else { Stack<Integer> change = new Stack<Integer>(); for (int i = 0; i < ady[node].size(); i++) { int neigh = ady[node].get(i); if (check(used, neigh)) { if (parents[neigh...
8
private static boolean isMethodBetter( JavaAbstractMethod method1, int precision1, JavaAbstractMethod method2, int precision2) { //Methods comparison is done in a simplified way compared to the way how Java compiler //chooses the best method. The main ...
8
private static String canonicalize(final SortedMap<String, String> sortedParamMap) { if (sortedParamMap == null || sortedParamMap.isEmpty()) { return ""; } final StringBuffer sb = new StringBuffer(100); for (Map.Entry<String, String> pair : sortedParamMap.entrySet()) { final String key = pair.getKey().to...
8
public static List<CustomBlock> load(BlockAPI plugin) { ArrayList<CustomBlock> list = new ArrayList<CustomBlock>(); if (!PATH.exists()) { PATH.mkdirs(); return list; } BlockClassLoader classLoader = new BlockClassLoader(plugin.getClass().getClassLoader()); File[] classes = PATH.listFiles(); for (int x...
9
protected static int indexOf(final char[] chars, final String str, final int fromIndex) { for (char ch : chars) { if (str.indexOf(ch, fromIndex) != -1) { return str.indexOf(ch, fromIndex); } } return -1; }
2
public void getWalkingAnimation(int direction){ removeAnimation(currentAnimation); if(crouch){ addAnimation(crouching[current]); currentAnimation = crouching[current]; if (current != direction){ removeAnimation(crouching[current]); current = direction; addAnimation(crouching[curre...
5
public static void main(String[] args) { // calculating the sum and average of integer values int[] nums = { 5, 10, 15, 20, 25 }; int sum = 0; double avg = 0; for (int i = 0; i < nums.length; i++) { sum = sum + nums[i]; } avg = sum / (nums.length); System.out.println("Sum: " + sum); ...
1
void dessineLab(Graphics g){ int[][] tab = monLab.defLab; int x = -1; int y = -1; for (int i=0;i<tab.length;i++){ if (tab[i][NORD]==-1){ x = (i%Labyrinthe.DIM)*dimCase; y = (i/Labyrinthe.DIM)*dimCase; g.drawLine(x,y,x+dimCase,y); } if (tab[i][SUD]==-1){ x = (i%Labyrinthe.DIM)*dimCase; ...
5
public float[] distribution(){ float[] bowl = new float[NUM_FRUIT_TYPES]; for (int i = 0; i < NUM_FRUIT_TYPES; i++){ // each fruit bowl[i] = fruitOccuranceMLE(i); } return Vectors.normalize(bowl); }
1
private void checkHighScore() { leaderboard.add(playerScore); // Find out if the score was a highscore, and where it falls if ( playerScore > leaderboard.get(4) && !enteredName ) { enteredName = true; // pop up to add name String name = JOptionPane.showInputDialog("Congrats! You've Made the Lead...
7
public int getDefaultPoints() { return defaultPoints; }
0
protected byte[] toByteArray(short[] samples, int offs, int len) { byte[] b = getByteArray(len * 2); int idx = 0; short s; while (len-- > 0) { s = samples[offs++]; b[idx++] = (byte) s; b[idx++] = (byte) (s >>> 8); } return b; }
1
@Override public boolean check() { System.out.println(this.getClass().getSimpleName()); if (isUpperExists() == false) { return false; } if (isCurrentEqualsUpper() == false) { return false; } if (isLowerExists(1) == false) { return f...
9
@Override public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if(cmd.getName().equalsIgnoreCase("Prefix")) { if(sender instanceof Player) { Player p = (Player) sender; PlayerUtil pu = new PlayerUtil(p); if(pu.hasPermission("Nostalgia.Command.prefix", Permissio...
8
public void planNextStep(double s_elapsed) { for (Scenery scenery : sceneries) { scenery.planNextAction(s_elapsed); } for (Powerup powerup : powerups) { powerup.planNextAction(s_elapsed); } for (Shot shot : shots) { shot.planNextAction(s_elapsed); } for (ProximityBomb bomb ...
7
public void parseCommand(String command) { //Split command based on space String[] words = command.split(" "); //First word is the process/command String com = words[0]; //Remaining words are process arguments String[] args = new String[words.length - 1]; MigratableProcessWrapper mpw = null; ...
9
public void SimpleRunSameGameInterval(String dataFile, String outputFile, int interval){ globalLinkCounter = 0; L = new LinkSet(); MatchData M = new MatchData(dataFile); Match m; int c = 0; ArrayList<LinkSetNode> links; long longinterval = (long)interval*...
5
public EasyDate set(int year, int month, int day, int... args) { calendar.set(Calendar.YEAR, year); calendar.set(Calendar.MONTH, month - 1); calendar.set(Calendar.DAY_OF_MONTH, day); if (args.length > 0) { int[] fields = new int[] { Calendar.HOUR_OF_DAY, Calendar.MINUTE, Calendar.SECOND, Calendar.MILLISECOND...
2
public double[] rawPersonMeans(){ if(!this.dataPreprocessed)this.preprocessData(); if(!this.variancesCalculated)this.meansAndVariances(); return this.rawPersonMeans; }
2
public DNSRR readRR() throws IOException { String rrName = readDomainName(); int rrType = readShort(); int rrClass = readShort(); long rrTTL = readInt(); int rrDataLen = readShort(); DNSInputStream rrDNSIn = new DNSInputStream(buf, pos, rrDataLen); pos += rrDataLe...
5
public Long getUpdatedAt() { return updatedAt; }
0
public void setManufacturerId(String manufacturerId) { this.manufacturerId = manufacturerId; setDirty(); }
0
public static void main(String[] args) { makeAllPieces(); makeSideIcons(); }
0
public String nextValue() throws IOException { Token tkn = nextToken(); String ret = null; switch (tkn.type) { case TT_TOKEN: case TT_EORECORD: ret = tkn.content.toString(); break; case TT_EOF: ret = null; ...
4
private boolean createDatabase() { Utilities.outputDebug("Loading " + m_plugin.getDataFolder() + File.separator + m_databaseName + ".sqlite"); m_databaseFile = new File(m_plugin.getDataFolder() + File.separator + m_databaseName + ".sqlite"); if (m_databaseFile.exists()) { return true; } if (!m_...
4
private boolean setID(String fileName, int id) { boolean result = false; int i = 0; File tempFile = null; Storage tempStorage = null; while ((i < storageList_.size()) && (tempFile == null)) { tempStorage = (Storage) storageList_.get(i); tempFile = tempSto...
3
private double[] calculateHDDConsumption(Component component, HardwareAlternative hardwareAlternative) { double consumption[] = { -1, -1 }; consumption[0] = component.getUsageHDD().getEnergyPoints(); for (HardwareComponent hdd : hardwareAlternative.getHardwareComponents()) { double temp = Utils.consumptionHDD(...
4
public Set<Map.Entry<Integer,V>> entrySet() { return new AbstractSet<Map.Entry<Integer,V>>() { public int size() { return _map.size(); } public boolean isEmpty() { return TIntObjectMapDecorator.this.isEmpty(); } public...
7
private void handleReadyKey(SelectionKey key) throws IOException { if ((key.readyOps() & SelectionKey.OP_ACCEPT) == SelectionKey.OP_ACCEPT) { // accept the new connection ServerSocketChannel newChannel = (ServerSocketChannel)key.channel(); SocketChannel sc = newChannel.accept(); sc.configureBlocking(false...
8
public static void allocate(int size, FileRequester fileRequester) { try { Model.modelHeaderCache = new ModelHeader[size]; Model.fileRequester = fileRequester; } catch (ArrayIndexOutOfBoundsException arrayoutofbounds) { Model.modelHeaderCache = new ModelHeader[size + Short.MAX_VALUE]; Model.fileRequeste...
1
@Get("json") public Representation _get() { String keyword = getAttribute("keyword"); String input = format("^%s", escapeRE(keyword)); Pattern ptrn = compile(input.toLowerCase()); Find find = $namespaces.find(FIND, ptrn).limit(20); List<String> rslts = new ArrayList<>(); f...
5
@Override public void actionPerformed(ActionEvent e) { Object s = e.getSource(); if(s instanceof JButton) { if(s instanceof ThemeItem) { Option.setTheme(((ThemeItem) s).getTheme()); themeName.setText(Option.getThemeName().replace("/", "")); frame.dispose(); changeTheme.setEnabled(true); } ...
5
private static String getTime(String time) { time = time.split(" ")[3]; time = (Integer.parseInt(time.split(":")[0]) > 12 ? Integer.parseInt(time.split(":")[0])-12 : time.split(":")[0]) + ":" +time.split(":")[1] +(Integer.parseInt(time.split(":")[0]) > 12 ? " PM" : " AM"); retur...
2
public boolean colorMatch(P p) { if (this.R==250 && this.G==250 && this.B==250) return false; if (this.R == p.R && this.G == p.G && this.B == p.B) return true; return false; }
6
public void setMoney(double money){ this.money = money; }
0
private void drawGrid(Graphics2D g) { for (int i = 0; i < 9; i++) { for (FieldSlot s : field.areas.get(i)) { int x = s.getX(); int y = s.getY(); g.setColor(new Color((200 + 25 * i) % 255, (120 * i) % 255, 90 * i % 255)); g.fillRect(x * width / 9, y * height / 9, width / 9 + 1, height / ...
5
public void delStudent(String no) { String delete = "DELETE FROM STUDENT WHERE NO=?"; try { PreparedStatement ps = conn.prepareStatement(delete); ps.setString(1, no); ps.executeUpdate(); ps.close(); } catch (SQLException e) { e.printStackTrace(); } }
1
public void clear() { configurationToButtonMap.clear(); selected.clear(); super.removeAll(); }
0
public void repaintSelection() { repaintSelectionInternal(); for (OutlineProxy proxy : mProxies) { proxy.repaintSelectionInternal(); } }
1
public void moveAnchor(int x, int y, int width, int height) { ((Rectangle) shape).x = x; ((Rectangle) shape).y = y; ((Rectangle) shape).height += height; ((Rectangle) shape).width += width; updateCornerRects(); canvas.repaint(); }
0
public final void setSliderButtonImage(BufferedImage image) { double sliderWidth = isVertical ? scrollBarThickness : getSliderSize(); double sliderHeight = isVertical ? getSliderSize() : scrollBarThickness; if (slider == null) slider = new TButton(x + (isVertical ? 0 : scrollBarThickness), y + (isV...
8
public int getBit(int n) { if (n < 0 || n > length - 1) { throw new IllegalArgumentException( "n must be between 0 and " + (length - 1)); } return ((bits & (1 << n)) >> n); }
2
*/ private void jComboB_ItemsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboB_ItemsActionPerformed /* * lokale Variablen für diese Methode, momentan zu Testzwecken */ int currentSemester = Sims_1._maingame.getSemester(); // current Semester boolean...
5
public String run(PrintWriter out) throws InstantiationException, IllegalAccessException { classInstance = (Program)className.newInstance(); startTime = System.currentTimeMillis(); status = 0; classInstance.run(out, args); status = 3; endTime = System.currentTimeMillis(); return getName() +" ran...
0
public BuilderPattern build() { return new BuilderPattern(this); }
0
@Override public void handle(HttpExchange he) throws IOException { String response = ""; int statusCode = 200; String method = he.getRequestMethod().toUpperCase(); switch (method) { case "GET": break; case "POST": isr = n...
8
private int dantzig() { int q = 0; for (int j = 1; j < M + N; j++) if (a[M][j] > a[M][q]) q = j; if (a[M][q] <= 0) return -1; // optimal else return q; }
3
public String readStr() { if(inf) { if(sc.hasNext()) return sc.next(); else return null; } else { ExceptionLog.println("Попытка записи в неоткрытый файл"); return null; } }
2
public void setNode(boolean isNode) {this.isNode = isNode;}
0
private static boolean trackCut(double[] upper, double[] under, int position, int deep) { if (upper[position] <= under[position]) { return false; } for (int i = (position - 1); i > (position - deep); i--) { if (upper[i] < under[i]) { return true; ...
3
private LinkDecor getDecors1(String s) { // System.err.println("s1=" + s); if (s == null) { return LinkDecor.NONE; } s = s.trim(); if ("<|".equals(s)) { return LinkDecor.EXTENDS; } if ("<".equals(s)) { return LinkDecor.ARROW; } if ("^".equals(s)) { return LinkDecor.EXTENDS; } if ("+".e...
7
public Couleur obtenirCouleurInverse() { if (this == BLANC) return NOIR; return BLANC; }
1
public void newFruit() { int r = rand.nextInt(5); Fruit fruit; if (r == 0) { fruit = new Orange(); } else { fruit = new Apple(); } // Makes sure fruit doesn't spawn on obstacles or snakes if (fruit.spawned == false) { for (Obstacle o : obstacles) { if (fruit.x == o.getX() && fruit.y == o.get...
8
public List<EntidadBancaria> findAll(){ try{ List<EntidadBancaria> ListaEntidades; Connection connection = connectionFactory.getConnection(); ListaEntidades = new ArrayList(); String selectTodasEntidades = "SELECT * from EntidadBancaria"; PreparedStatement prepared = nul...
2
public static void chooseHeuristicDynamicCell(List<Measurement> measurements, Computation comp, int threshold, boolean useRSS) { if(useRSS) { HashSet<Integer> indices = Generate.randomInts(threshold, measurements.size(), null); int sum1 = 0; int sum2 = 0; int count1 = 0; int count2 = 0; for(int i : ...
6
public static void count_vowels(String s) { s = s.toLowerCase(); int count = 0; List<Character> vowels = Arrays.asList('a', 'e', 'i', 'o', 'u'); for (int i = 0; i < s.length(); i++) { if (vowels.contains(s.charAt(i))) count++; } System.out.println(count); ...
2
public static void main(String args[]){ Scanner sc = new Scanner(System.in); int A,C; while(true) { A= sc.nextInt(); if(A==0) break; C = sc.nextInt(); int recentElement = 0; int cutCount = 0; for(int ...
5
public static void main(String[] args) { ExGui exGui = new ExGui(); exGui.go(); }
0
public void faireActivite() { this.choixActivite = "0"; boolean test = false; boolean recommencer = true; while (!test) { System.out.println("\n\nQuelle activite souhaitez-vous faire ?" + "\n Tapez 1 pour entrer dans le casin...
9
public void cargarTabla(NodoBase raiz){ while (raiz != null) { if (raiz instanceof NodoIdentificador){ InsertarSimbolo(((NodoIdentificador)raiz).getNombre(),-1,((NodoIdentificador)raiz).getTipo()); //TODO: A�adir el numero de linea y localidad de memoria correcta } /* Hago el recorri...
9
@Override public double getClippedValue(double input, double clip) { double result = 0; if (input >= a && input <= c) { result = (input - a) / (c - a); if (result < clip) { return result; } else { return clip; } ...
6
public boolean isInAcceptState() { return getState() >= 0 && getCurrState().isAcceptState() && !isInSpaceState() && !isInErrorState(); }
3
@RequestMapping(method = RequestMethod.POST, produces = "application/json") public ResponseEntity<?> create(@ModelAttribute("contact") Contact contact, @RequestParam(required = false) String searchFor, @RequestParam(required = false, defaultVal...
2
private boolean isValid() { if (firstName.length() > 50 || lastName.length() > 75 || (!gender.equals("M") && !gender.equals("F"))) { System.err.println("Invalid argument(s) when inserting a user!"); return false; } return true; }
4
public void action(Sac[] tabSacs, DomaineDesMorts ddm, JFrame page, Dieu deus) { this.avancer(1); int k = 0; int nb = 0; int val; if ("Tyr".equals(deus.getNom())) { int det1 = de.getCouleur(); int det2 = de.getCouleur(); String[] choix1 = {ta...
5
public void mouseMoved(MouseEvent e) { String str = "x: " + e.getX() + ",y: " + e.getY(); System.out.println(str); }
0
private static final long getTimeOfDate(Object date) { long theTime; if (date == null) { theTime = System.currentTimeMillis(); } else if (date instanceof Date) { theTime = ((Date) date).getTime(); } else if (date instanceof EasyDate) { theTime = ((EasyDate) date).getTime(); } else if (date instanceof...
4
public void initiate() { new MainFrame(); serverConnection = new DummyConnection(); int id = serverConnection.assignPlayer("Anders"); if(id != 0)thePlayer = new ThisPlayer("Anders", id, 0); startGame(); }
1
public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://down...
6
private void addProgrammaticLogging(Level level, File dir) { try { dir.mkdirs(); File file = new File(dir, "jscover.log"); if (file.exists()) file.delete(); FileHandler fileTxt = new FileHandler(file.getAbsolutePath(), true); Enumeratio...
4
public ArmorItem(){ super(); this.defenseScore = 1; this.name = "Unknown ARMOR name"; }
0
public static void main(String[] args) { final double PBAIN = 20; final double PTONTE = 25; final double PCOUPE = 30; String strNom; String strService; strNom = JOptionPane.showInputDialog("Nom de l'animal:"); strService = JOptionPane.showInputDialog("Services [B] [T] [G]:"); NumberFormat ...
6
public boolean checkPositionUsed(Map<String, EnumElement> board, EnumLine line, EnumColumn column) throws PositionAlreadyUsedException { if (board.get(this.createPosition(line, column)) == EnumElement.HIT) { throw new PositionAlreadyUsedException(); } else { return true; } }
1
@Override public void execute(CommandSender arg0, String[] args) { //plugin.dbConfig.players.add(arg1[0]); if(args.length != 1) { arg0.sendMessage(TextComponent.fromLegacyText(ChatColor.DARK_AQUA+"["+ChatColor.RED+"#"+ChatColor.DARK_AQUA+"] "+ChatColor.GOLD+"Utilizzo: /watch [nome]!")); }else{ if(plugin....
3
public static void main(String[] args) { FancyHouse fancyHouse = constructFancyHouse(args); if (fancyHouse == null) { System.out.println ("Illegal arguments"); return; } //testing house with fancy collection of balloons //FancyHouse fancyHouse = FancyHou...
1