text
stringlengths
14
410k
label
int32
0
9
public static List<CDDFeature> reloadFeatures(CyNetwork network, CyIdentifiable id) { if (!CyUtils.checkColumn(network.getDefaultNodeTable(), CDD_FEATURE, List.class, String.class)) return null; List<String> features = network.getRow(id).getList(CDD_FEATURE, String.class); List<String> chainFeatures = network...
6
@Override public void run() { if (D) Log.i(TAG, "BEGIN TimeoutThread (remaining time="+mTime+")"); setName("TimeoutThread (time="+mTime+")"); while (true) { try { Thread.sleep(mTime); break; } catch (InterruptedException e) { if (D) Log.i(TAG, "TimeoutThread reseted, starting over again...
6
@Override public void mousePressed(MouseEvent e) { for (int i = 0; i < sliders.size() && !active; i++) { TButton slider = sliders.get(i); if (slider.contains(e.getPoint())) { active = true; activeSlider = slider; } } if (active) { int i = getIn...
7
public static int[] eliminateRedundantLinks(int[] links) { // final int tag = Integer.MIN_VALUE; // int last = 0; int ctr = 0; // if (links.length > 0) { ctr += LINK_SIZE; } // // first make redundant links invalid. // ...
5
public void loadImage(){ int returnVal = fc.showOpenDialog(Paintimator.this); BufferedImage[] img = new BufferedImage[1]; if (returnVal == JFileChooser.APPROVE_OPTION) { try { img[0] = ImageIO.read(fc.getSelectedFile()); layeredPanel.importImgToPane(img[0]); } catch (IOException e1) { JOptionPa...
2
public boolean accept(File f){ return f.getName().endsWith(".gif") || f.isDirectory(); }
1
private void btn_aceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_aceptarActionPerformed if (lab_modo.getText().equals("Alta")){ if (camposCompletos()){ ocultar_Msj(); insertar(); menuDisponible(true); ...
9
@Override public void setLoginTimeout(int arg0) throws SQLException { }
0
@SuppressWarnings("rawtypes") public synchronized boolean clearWorldReference(String worldName) { if (regionfiles == null) { plugin.getLogger().warning("Exception while removing world reference for '" + worldName + "'!"); return false; } if (rafField == null) { plugin.getLogger().warning("Exception ...
9
static String hashMD5(String s) throws ApiDataException { MessageDigest algorithm = null; try { algorithm = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException nsae) { throw new ApiDataException("Cannot find MD5 digest algorithm"); } byte[]...
4
public void registerAll(Collection<RegisteredListener> listeners) { for (RegisteredListener listener : listeners) { register(listener); } }
1
public ParseException generateParseException() { jj_expentries.clear(); boolean[] la1tokens = new boolean[27]; if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } for (int i = 0; i < 22; i++) { if (jj_la1[i] == jj_gen) { for (int j = 0; j < 32; j++) { i...
8
public void fire(){ final int dX = 3,dY = 3; if( lastDir==DirKey.Up || lastDir==DirKey.Down ){ bullets.add(new Bullet(id,this.getCenter().x - dX, this.getCenter().y, lastDir)); } else{ bullets.add(new Bullet(id,this.getCenter().x, this.getCenter().y - dY, lastDir)); } }
2
public static void main(String[] args) { double score1, score2, score3; // Using three scores and an average double averageScore; Scanner keyboard = new Scanner(System.in); //Creates scanner object so program will accept input System.out.print("\n"); // Only for formatt...
4
public TasonLuontiTest() { }
0
public EditorRuler(mxGraphComponent graphComponent, int orientation) { this.orientation = orientation; this.graphComponent = graphComponent; updateIncrementAndUnits(); graphComponent.getGraph().getView().addListener( mxEvent.SCALE, repaintHandler); graphComponent.getGraph().getView().addListener( mx...
2
public static int loadTexture(String path) { int tex = 0; BufferedImage img = null; try { img = ImageIO.read(Main.class.getResourceAsStream(path)); } catch (Exception e) { System.out.print(e.toString()); return 0; } int[] pix = img.getRGB(0, 0, img.getWidth(), img.getHeight(), null, 0, img.getWi...
2
protected boolean inserirElemento(int x) { NoB elem = busca(raiz,x); NoB novaPagina; NoB temp; if (elem == null) { //caso seja o primeiro elemento inserido novaPagina = new NoB(x, null, null, null); raiz = new NoB(1, null, novaPagina, null); novaPagina.anterior = raiz; return(true); } else ...
6
public Symbol lookup(String name) throws SymbolNotFoundError { if (table.containsKey(name)) { return table.get(name); } if (parent != null) { return parent.lookup(name); } throw new SymbolNotFoundError(name); }
2
Expr phiRelatedFind(Expr a) { final ArrayList stack = new ArrayList(); while (a != null) { Object p = phiRelated.get(a); if ((p == a) || (p == null)) { // Path compression. final Iterator iter = stack.iterator(); while (iter.hasNext()) { p = iter.next(); if (p != a) { phiRelate...
5
public void dragg(Excel start, Excel finish) { }
0
public Object getValueAt(int row, int col) { File f = uploads.get(row).getF(); String uploadName = uploads.get(row).uploadName; int pos = uploadName.lastIndexOf("."); if (pos != -1) uploadName = uploadName.substring(0, uploadName .lastIndexOf(".")); if (col == 0) { if (uploads.get(row).ge...
9
private boolean doList(ICommand cmd) throws Exception { if (cmd.getSubCommand().equals(CmdConstants.SubCmdNames.CLASS) || cmd.getSubCommand().matches(CmdConstants.SubCmdNames.INTERFACE)) { long id = IdManager.getInstance().accessIdWithKey(cmd.getFlagValue(CmdConstants.Flags.OBJECT)); System.out.println(isc.list...
9
private Govt switchGov(int i) { switch (i) { case 0: return Govt.PROT; case 1: return Govt.DEMO; case 2: return Govt.DICT; case 3: return Govt.AUTH; } return null; }
4
protected void distributeFileChangeEvent(FileChangeEvent event) { Iterator it = fileListeners.iterator(); while (it.hasNext()) { FileChangeListener listener = (FileChangeListener) it.next(); listener.fileChanged(event); } }
1
private void parseAdditionalPropertiesFile(File pPropertiesFile) throws ExManifestBuilder { Logger.logDebug("Reading additional properties file " + pPropertiesFile.getName()); ManifestParser lParser = new ManifestParser(pPropertiesFile); try { lParser.parse(); } catch(Throwable th...
4
private Map<String, Long> retrieveFilePathMap(VDK1FileInfo vdkFileInfo) { Map<String, Long> filePathMap = new HashMap<String, Long>(); long currentOffset = vdkFileInfo.getSize() + VDK1FilePattern.getRootLength() + VDK1FilePattern.getFileListHeaderLength(); long endOfFileList = vdkFileInfo.getSize() + VDK1FileP...
3
public Digraph reverse() { Digraph R = new Digraph(V); for (int v = 0; v < V; v++) { for (int w : adj(v)) { R.addEdge(w, v); } } return R; }
2
public void freeResult(ResultSet result) { try { if (result != null) { result.close(); result = null; } if (m_statement != null) { Connection connection = m_statement.getConnection(); m_statement.close(); connection.close(); m_statement = null; connection = null; ...
3
private void removeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeButtonActionPerformed int targetLayer; try{ //throws NumberFormatException if not a Number. targetLayer = Integer.parseInt(whichLayerTextField.getText())-1; //throws NullPointerException if N...
6
private static void makeSureFilesExist(String makeFileWithName) { File newFile = new File(makeFileWithName); try { newFile.createNewFile(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
1
@Override public void add(Users element) { //Добавляем запись в список getList().add(element); //2 способ добавления новой записи try { PreparedStatement statement = getConnection().prepareStatement(insertQuery); //Устанавливаем параметры statement...
1
public static void moviesToFile(String infilename, String outfilename) { File file = new File(outfilename); List<Movie> list = readData(infilename); FileWriter fw = null; try { fw = new FileWriter(file); for (Movie m : list) { fw.append(m.toString()); } fw.flush(); } catch (IOException e) { ...
4
@Override public int hashCode() { int hash = 7; hash = 31 * hash + (this.id != null ? this.id.hashCode() : 0); hash = 31 * hash + (this.seq != null ? this.seq.hashCode() : 0); return hash; }
2
private static void firstStrategy() { Semaphore MReading = new Semaphore(1); Semaphore MWriting = new Semaphore(1); int counter = 0; Random r = new Random(); while(true) { if(r.nextDouble() > 0.5) { Lecteur l = new Lecteur(MReading,MWriting,counter); l.run(); counter = l.counter; }...
2
public void setGroupName(String gName){ this.groupName = gName; }
0
private void botonAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonAceptarActionPerformed int fila = tabla.getSelectedRow(); int columna = tabla.getSelectedColumn(); if(fila == -1 || columna == -1){ JOptionPane.showMessageDialog(this, "Debe seleccionar u...
3
public void fireSubLWorkerStartedEvent(SubLWorkerEvent event) { if (event.getEventType() != SubLWorkerEvent.STARTING_EVENT_TYPE) { throw new RuntimeException("Got bad event type; " + event.getEventType().getName()); } setId(event.getId()); synchronized(listeners) { Object[] curListener...
4
public long[] nextLongs(int n) throws IOException { long[] res = new long[n]; for (int i = 0; i < n; ++i) { res[i] = nextLong(); } return res; }
1
@SuppressWarnings("serial") public javax.swing.table.DefaultTableModel readModelScores(){ @SuppressWarnings("unused") String id; String name; Integer score; javax.swing.table.DefaultTableModel model = new javax.swing.table.DefaultTableModel(){ @Override public ...
5
private boolean jj_2_32(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; try { return !jj_3_32(); } catch(LookaheadSuccess ls) { return true; } finally { jj_save(31, xla); } }
1
@Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof Connection)) { return false; } Connection other = (Connection) object; if ((this.id == null && other.id != null...
5
private void displayLast() { try { refresh(ekd.last()); } catch (NoEmailKontaktFoundException e) { refresh(null); e.printStackTrace(); } }
1
@Override public void nodeCreated(ZVNode newNode) { boolean updateView = false; if (nodes != null) { for (int i = 0; i < nodes.length; i++) { if ((nodes[i] == newNode)) { updateView = true; } ...
4
public static double cos(double x) { int quadrant = 0; /* Take absolute value of the input */ double xa = x; if (x < 0) { xa = -xa; } if (xa != xa || xa == Double.POSITIVE_INFINITY) { return Double.NaN; } /* Perform any argument ...
9
public void visit_monitorexit(final Instruction inst) { stackHeight -= 1; if (stackHeight < minStackHeight) { minStackHeight = stackHeight; } }
1
private byte[] calculateGeneralEncryptionKey( byte[] userPassword, byte[] firstDocIdValue, int keyBitLength, int revision, byte[] oValue, int pValue, boolean encryptMetadata) throws GeneralSecurityException { // Algorithm 3.2: Computing an encryption key // Step 1: ...
7
public void addTimer(The5zigModTimer timer) { timers.add(timer); }
0
public boolean distance(int y, int x, int[][] image){ int red = (image[y][x] >> 16) & 0xff; int blue = (image[y][x] >> 8) & 0xff; int green = (image[y][x]) & 0xff; double dfb = Math.sqrt(Math.pow(red - 0, 2) + Math.pow(green - 0, 2) + Math.pow(blue - 0, 2)); double dfw = Math.sqrt(Math.pow(red - 255, 2) + Ma...
1
public void tsumo(String win, int hou, int han) { Player winner = players[position(win)]; finalizeriichi(winner); int value = handvalue(hou, han); if (players[dealer] == winner) value = 2 * value; for (int i = 0; i < players.length; i++) { if (i == dealer) take(winner, players[i], 2 * value + 100...
4
@Override public void run(int interfaceId, int componentId) { switch(stage) { case -1: stage = 0; sendOptionsDialogue(SEND_DEFAULT_OPTIONS_TITLE, "No - toys are for kids.", "Let's have a look, then.", "Ohh, goody-goody - toys!", "Why do you sell most rune armour but not platebodies?"); ...
8
public static void replaceFlower(OneFlower o) { Random random = new Random(); int x = random.nextInt(12); int y = random.nextInt(12); if ((x == o.x && y == o.y) || (x == o.fx && y == o.fy)) { replaceFlower(o); return; } o.fx = x; o.fy = y; o.msFlower = System.currentTimeMillis(); }
4
public void go() { while ( !isOver() ) { attack(); //Attacks happen first try { //wait Thread.sleep(500); } catch(InterruptedException ex) { Thread.currentThread().interrupt(); } showHp(); //HP is shown if ( isOver() ) {break;}; //Game over if player dies/monsters die try { Thr...
5
@Override public void run() { try { report ("download job started", 1); if (!forceDownload) if (page.loadFromCache()) report("read from cache", 1); else report("cache reading failed", 1); if (page.updateFromNet(this) || forceDownload) { page.saveToCache(); report("download fin...
8
public List<String> getUsersHavingStatus(String sellerName, String status, String serviceName) { List<String> usersWithStatus = new ArrayList<String>(); HashMap<String, String> usersService = this.matchingUsers .get(serviceName); String userName; String currentStatus; Set<String> userNames = usersServ...
3
private void calculateEnabledState(JoeTree tree) { if (tree.getComponentFocus() == OutlineLayoutManager.ICON) { setEnabled(true); } else { if (tree.getCursorPosition() == tree.getCursorMarkPosition()) { setEnabled(false); } else { setEnabled(true); } } }
2
public static void main(String[] args) { try{ Collection c = new ArrayList(); Cardinality("hello", null); System.out.println(total); } catch(Exception e){ System.out.println("0"); } }
1
public static String decrypt(String code,BigInteger n, BigInteger d) { String t=new String(""); String binary[]=new String[1000000],msg1=new String(""); BigInteger decry[]=new BigInteger[1000000]; BigInteger encry[]=new BigInteger[1000000]; int j=-1; for(int i=0;i<code.length();i++) {if(i%4=...
8
protected final void appendLabelAndStereotype(IEntity entity, final StringBuilder sb, boolean classes) { final Stereotype stereotype = getStereotype(entity); final String stereo = entity.getStereotype() == null ? null : entity.getStereotype().getLabel(); if (isThereLabel(stereotype)) { sb.append("<BR ALIGN=\"L...
7
public static String[] parse(String line) { boolean insideQuote = false; ArrayList<String> result = new ArrayList<String>(); int quoteCount = 0; StringBuilder sb = new StringBuilder(); for(int i = 0; i < line.length(); i++) { char c = line.charAt(i); if(c == QUOTE) { insideQuote = !insideQuote; ...
5
public synchronized void broadcastChatEventToClients(ChatEvent chatEvent) { ObjectOutputStream currentObjectOutputStream; for (ClientConnection clientConnection : clientConnections) { if (!clientConnection.getUser().getUsername().equals(chatEvent.getFrom().getUsername())) { currentObjectOutputStream = client...
3
public BufferedImage getCaptchaImage(String captchaStr, int width, int height) { BufferedImage retBufImage = null; Graphics graphicsLine = null; Graphics captchaImg = null; BufferedImage bufferImg = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); try { graphicsLine = bufferImg.getGraph...
3
public synchronized void mouseReleased(MouseEvent me) { xm = me.getX(); ym = me.getY(); onScreen = xm >= 0 && ym >= 0 && xm < canvas.getWidth() && ym < canvas.getHeight(); if (me.getButton() == MouseEvent.BUTTON1) mb0 = false; if (me.getButton() == MouseEvent.BUTTON3) mb1 = false; if (me.getButton() == Mous...
6
public static void addEmployee() { //todo: verify someone cannot enter a duplicate username. File f = new File("Employee.txt"); String choice = "y"; try { PrintWriter pw = new PrintWriter(new FileOutputStream(f, true)); while (choice.equalsIgnoreCase("y")) { System.out.print("Please enter the...
5
public void addOrInsert(T o) { int i = 0; boolean found = false; boolean empty = false; while (i < list.size() && !found && !empty) { if (o instanceof Yeast) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; found = y.getName().equalsIgnoreCase(y2.getName()); // empty = y.getName().e...
9
@Override public int move(State state) { while (!mousePressed()) { // Wait for a mouse click } double x = mouseX(); double y = mouseY(); int r = (int)round((0.95 - y) / 0.1); int c = (int)round((x - 0.15) / 0.1); int result = PASS; if (r >= 0 && r < WIDTH && c >= 0 && c < WIDTH) { result = r * WI...
6
public void handleRecord(Record record){ log("[PrintAdapter] Record:"); if(record == null){ log(" null"); } else{ for(Property<?> property : record.getAllProperties()){ if(property == null){ log(" [null]"); } else{ if((printableFields == null) || printableFields.containsKey(pro...
6
public void useGravity(BlackHole bh) { calculateGravity(bh); if (x + r < bh.getX() + bh.getWidth() / 2) { vx += gravity; } if (x + r > bh.getX() + bh.getWidth() / 2) { vx -= gravity; } if (y + r < bh.getY() + bh.getHeight() / 2) { vy...
4
protected void validateField() throws Exception { // do some type checking here if (m_fieldDefs != null) { Attribute a = getFieldDef(m_fieldName); if (a == null) { throw new Exception("[FieldRef] Can't find field " + m_fieldName + " in the supplied field definitions"); } ...
7
public OthelloBoardBinary board(){ return board; }
0
public void func_71852_a(World par1World, int par2, int par3, int par4, int par5, int par6) { boolean flag = (par6 & 4) == 4; boolean flag1 = (par6 & 8) == 8; if (flag || flag1) { func_72143_a(par1World, par2, par3, par4, 0, par6, false, -1, 0); } if (fl...
7
public static boolean sameSentence(Integer word1, Integer word2, String line) { String[] words = splitAndMaskWordsAroundNotLeavePunctuation(line); Integer start = word1 < word2 ? word1: word2; Integer end = word1 < word2 ? word2: word1; for (int i=start; i < end; i++) { if (w...
9
private static void saveSettings(){ SettingsModel.setUserName(nameField.getText()); SettingsModel.setFullscreen(fullscreen.isSelected()); Locale [] l = model.save.SettingsModel.getAllLocales(); for(int a=0; a<l.length; a++){ if (l[a].getDisplayLanguage(l[a]).equalsIgnoreCase(language.getSelectedItem().toStri...
2
public String get(int n) { if (capitalword_) return null; int len = grams_.length(); if (n < 1 || n > 3 || len < n) return null; if (n == 1) { char ch = grams_.charAt(len - 1); if (ch == ' ') return null; return Character.toString(ch); } else ...
6
public boolean add(Item it) { if (it == null) { return false; } for (Item i : items) { if (i.getClass().isInstance(it)) { i.add(it.amount()); return true; } } if (items.size() + 1 < maxitems) { items....
4
private void changeStat(Button b, boolean plus) { if (plus && (valuables > 0)) { for (String s : plusButtonMap.keySet()) { if (plusButtonMap.get(s).equals(b)) { supplyMap.put(s, supplyMap.get(s) + buyAmtMap.get(s)); valuables -= supplyCost; supplyTextboxMap.get(s).setText(s + ": " + supplyMap.ge...
6
static String java_home() { String jh = System.getProperty("jh"); if (jh != null) { return jh; } jh = System.getenv("JAVA_HOME"); if (jh != null) { return jh; } return System.getProperty("java.home"); }
2
@Override public void run() { if (ctx.skillingInterface.getCategory().equalsIgnoreCase("heat ingots")) { ctx.skillingInterface.start(); Condition.wait(new Callable<Boolean>() { @Override public Boolean call() throws Exception { return !ctx.backpack.select().id(MakeSword.HEATED_INGOTS).isEmpty(); ...
4
public double getIntelligence() { return intelligence; }
0
private boolean hasVariable(AlgebraicParticle a){ if(a instanceof Variable) return true; else if(a instanceof AlgebraicCollection){ AlgebraicCollection c = (AlgebraicCollection) a; for(int i = 0; i < c.length(); i++){ if(hasVariable(c.get(i))) return true; } return false; } else if(a instanceof ...
6
public void run(String[] args) throws Exception { if (args.length == 1) { Logger.log("Uso: " + getTemplate()); } else { String[] apdu = null; if (args.length == 2) { apdu = StringUtil.tokenize(args[1]); } else { apdu = n...
6
public String nextToken() throws JSONException { char c; char q; StringBuffer sb = new StringBuffer(); do { c = next(); } while (Character.isWhitespace(c)); if (c == '"' || c == '\'') { q = c; for (;;) { c = next(); ...
9
public void prettyPrint(int ident, boolean putLeft, TreeSet<Integer> verticalLines, String repr) { if (right != null) if (putLeft) { right.prettyPrint(ident + 1, true, verticalLines, repr + "0"); } else { TreeSet<Integer> leftVertic...
9
public Dimension getMaximumSize(JComponent c) { return getPreferredSize(c); }
0
public Collection<SystemObject> getAllObjects( final Collection<ConfigurationArea> configurationAreas, final Collection<SystemObjectType> systemObjectTypes, ObjectTimeSpecification objectTimeSpecification) { // Liste, die alle ermittelten Objekte enthält final Collection<SystemObject> objects = new ArrayLi...
7
public IntDataType createIntDataType() { return new IntDataType(); }
0
public void newGeneration(){ List<Chromo<T>> freshPop = new ArrayList<Chromo<T>>(size); freshPop.addAll(getElite()); while (freshPop.size() < size){ Chromo<T> offspring1 = rouletteSelection(); Chromo<T> offspring2 = rouletteSelection(); crossOver(offspring1, offspring2); ...
2
public List<Boolean> getBooleanList(String path) { List<?> list = getList(path); if (list == null) { return new ArrayList<Boolean>(0); } List<Boolean> result = new ArrayList<Boolean>(); for (Object object : list) { if (object instanceof Boolean) { ...
7
@Override public boolean tick(Tickable ticking, int tickID) { if(!super.tick(ticking,tickID)) return false; if(!(affected instanceof MOB)) return true; final MOB M=(MOB)affected; if(M.location()!=null) { if((!M.getWorshipCharID().equals(godName)) &&(godName.length()>0)) { final Deity D=...
9
public KmeansCommand(CommandParameter par) { if(par == null) throw new NullPointerException("KmeansCommand has a null CommandParameter"); this.par= par; }
1
public static void main(String[] args) { GUI.init(); //Menus.MainMenu(); // Sleep to let the GUI build try { Thread.sleep(1000); } catch (InterruptedException e) {} intro(); }
1
private String readInput() throws IOException { return this.keyboard.readLine(); }
0
public void pause(String soundName) { Sound sound = sounds.get(soundName); if (sound != null) { sound.pause(); } }
1
public static Cons kifTwoArgumentForallToStellaForall(Cons tree, Cons declarations) { { Stella_Object sentence = Logic.kifSentenceToUntypedStellaSentence(tree.rest.rest.value); if (Stella_Object.safePrimaryType(sentence) == Logic.SGT_STELLA_CONS) { { Cons sentence000 = ((Cons)(sentence)); ...
7
public ShowGoSaveFileChooser(MainWindow mainWindow){ this.mainWindow = mainWindow; fc = new JFileChooser(new File(System.getProperty("user.dir"))) { private static final long serialVersionUID = 1L; @Override public void approveSelection() { File f = getSelectedFile(); if (!f.getName().endsWith(".s...
7
@Override public List<Cible> getCibles() throws BadResponseException { List<Cible> cibles = new ArrayList<Cible>(); JsonRepresentation representation = null; // R�cup�ration de la liste des messages Representation repr = serv.getResource("intervention/" + interId + "/cible", null); try { representation...
4
@Override public void update(GameContainer gc, int delta) { if(gc.getInput().isKeyDown(Input.KEY_W) && position.getY() > 0) { position.setY(position.getY() - (delta * MOVEMENT_MULTIPLIER)); } if(gc.getInput().isKeyDown(Input.KEY_A) && position.getX() > 0) { currentAnimation = birdLeft; position.setX(pos...
8
public static int Action(Client joueur) { int tempDette = 0; int choiceInt = -1; boolean wrong = true; boolean quit = true; do { System.out.println("Que voulez vous faire?" + "\n pour dormir tapez 1" + "\n pour appeler le room s...
8
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } Event other = (Event) obj; if (extendsProp == null) { if (other.extendsProp != null) { ...
9
private void setBorder() { for (int i=TOP_AND_LEFT_BORDER_SIZE-1; i< SIZE_OF_MATRIX; i+=2) { for (int k=TOP_AND_LEFT_BORDER_SIZE-1; k< SIZE_OF_MATRIX; k++) { matrix[i][k] = BORDER_MATERIAL; } for (int k=TOP_AND_LEFT_BORDER_SIZE; k< SIZE_OF_MATRIX; k++) { ...
5