text
stringlengths
14
410k
label
int32
0
9
private void listSubjectMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_listSubjectMouseClicked //disable all text fields dateTextField.setEditable(false); toTextField.setEditable(false); fromTextField.setEditable(false); subjectTextField.setEditable(false); ...
6
protected String getRedoText() { if (!canRedo()) { return "Cannot redo."; } int i = insertionPoint; if ((i < maxInsertionPoint) && (edits.get(i).isSignificant())) { String description = edits.get(i).describeRedo(); if (!description.equals("redo")) { ...
7
public boolean attributesMatched(String uri, String localName, String name, Attributes atts) { if ((atts == null || atts.getLength() == 0) && (parsedAttributeName == null || parsedAttributeName .isEmpty())) { return true; } if (atts == null) { return false; } if ((atts.getLength() > 0 && pa...
8
@Test public void testStartPosition() { System.out.println("testStartPosition"); Tile[][] MapTemplate = new Tile[5][5]; for (int j = 0; j < 5; j++) { for (int k = 0; k < 5; k++) { MapTemplate[j][k] = new Tile('W'); } } map.MapArray=MapTemplate; MapTemplate[2][2].setType('G'); ...
2
@FXML private void seidelResultClick(MouseEvent me) { int curMethod = 2; if (me.getButton().equals(MouseButton.PRIMARY)) { if (coef == null || free == null || results[curMethod] == null) { return; } if (curMode[curMethod]) { curMode[curMethod] = false; seidelResult.setText(VECTOR + results[cur...
5
public RegularToAutomatonTransitionTool(AutomatonPane view, AutomatonDrawer drawer, REToFSAController controller) { super(view, drawer); this.controller = controller; }
0
@Test(expected=BadPostfixException.class) public void evaluatePostfix4() throws DAIndexOutOfBoundsException, DAIllegalArgumentException, NumberFormatException, NotEnoughOperandsException, BadPostfixException { try { postfix.addLast("5"); String result = calc.evaluatePostfix(postfix); } catch (...
5
private void play() { int counter = 0; passCards(); System.out.println("Trump: " + pack.getTrump() + ";"); while (!isGameEnded()) { System.out.println("Pack: " + pack.getCardAmount()); System.out.print(currentPlayer.getName() + ": "); currentPlayer....
3
public boolean addSong(String email, Song song) { String id = "song" + getSongs().size() + 1; Song newSong = new Song(id, song.getTitle(), song.getLyrics(), song.getSpeed()); if (!song.getArtists().isEmpty()) { for (Artist a : song.getArtists()) { newSong.addArtist(createArtist(a.getName())); } }...
4
static void checkUnqualifiedName(int version, final String name, final String msg) { if ((version & 0xFFFF) < Opcodes.V1_5) { checkIdentifier(name, msg); } else { for (int i = 0; i < name.length(); ++i) { if (".;[/".indexOf(name.charAt(i)) != -1) { throw new IllegalArgumentException("Invalid " + m...
3
public String getPeerUsername() { return target.getUsername(); }
0
public void setFaceDir(double faceDir) { if (faceDir > 359) { while (faceDir > 359) { faceDir = faceDir - 360; } } if (faceDir < 0) { while (faceDir < 0) { faceDir = faceDir + 360; } } this.faceDir = ...
4
* @return Returns true if the given cell is locked. */ public boolean isCellLocked(Object cell) { mxGeometry geometry = model.getGeometry(cell); return isCellsLocked() || (geometry != null && model.isVertex(cell) && geometry .isRelative()); }
3
public ArrayList<Integer> obtenerJugadasGanadorasDeHoy(ArrayList<Integer> boletosDeHoy, ArrayList<Integer> numerosGanadores, int loteria_id){ Verificadora verificadora = new Verificadora(); Connection cn = conexion.Conectar(); PreparedStatement pst; ResultSet rs; String query; ...
9
@Override public void setCell(int x, int y, boolean live) { if (y<0 || y>=getHeight()) return; if (x<0 || x>=getWidth()) return; if (live) world[y][x] = 0; }
5
public boolean collision(double d, boolean isDy) { int tileX; int tileY; if (isDy) { tileX = (int) (v.getX()) >> 5; tileY = (int) (v.getY() + d) >> 5; } else { tileX = (int) (v.getX() + d) >> 5; tileY = (int) (v.getY()) >> 5; } ...
6
@Override public CPUStatus getCPUStatus() throws RemoteException { try { /* establish a Session */ establishSession(); int RunningNum = 0; int BlockingNum = 0; int InterruptNum = 0; int ContextSwitchNum = 0; float UserPercent = 0; float SystemPercent = 0; float IdlePercent = 0; fl...
9
public DumpCommand(TotalPermissions p) { plugin = p; }
0
private Boolean isPartOfTernaire ( MCDLien mcdLien ) { // la cardinalité est 1,1 sur ce lien Boolean ternaire = false ; MCDAssociation association = ( MCDAssociation ) mcdLien.getElement ( Constantes.MCDENTITE1 ) ; MCDLien entiteLink = null, ws_lien = null ; String v0_name, v1_name, entite0_name =...
9
public void set(Protocol con, Component widget, JSONObject obj, Map styleMap) throws JSONException { if (obj.has("item")) { JSONArray array = obj.getJSONArray("item"); for (int j = 0; j < array.length(); j++) { JSONObject itemObj = array.getJSONObject(j); ...
9
public int indexOf(final AbstractInsnNode insn) { if (check && !contains(insn)) { throw new IllegalArgumentException(); } if (cache == null) { cache = toArray(); } return insn.index; }
3
@Override protected void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2d = (Graphics2D) g; g2d.setColor(Color.BLACK); g2d.setFont(font); g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); int width = g.getFontMetrics().charWidth('a');...
4
@Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { try { if (sender instanceof Player) { Player player = (Player)sender; int rank = 1; try { rank = HyperPVP.getStorage().readInt32("SELECT rank FROM users WHERE username = '" + player.ge...
7
private PrintWriter fluxSortant() { if (emetteur != null) { try { return new PrintWriter(emetteur.getOutputStream()); } catch (IOException e) { System.out .println("Problème de récupération du flux sortant sur le client."); } } return null; }
2
public void render(Screen screen) { if (time >= lifeTime - 6 * 20) { if (time / 6 % 2 == 0) return; } int xt = 8; int yt = 13; // screen.render(x - 4, y - 4 - 2, xt + yt * 32, Color.get(-1, 555, 555, 555), random.nextInt(4)); // screen.render(x - 4, y - 4 + 2, xt + yt * 32, Color.get(-1, 000, 000, 000), ...
2
private JPanel createJvmPanel() { JPanel total = new JPanel(new BorderLayout()); total.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8)); JPanel panel = new JPanel(new BorderLayout()); total.add(panel, BorderLayout.CENTER); DefaultTableModel tableModel = new DefaultTableModel() { public boolean isC...
7
public float getFOV() { return cam.getFOV(); }
0
public JSONArray toJSONArray(JSONArray names) throws JSONException { if (names == null || names.length() == 0) { return null; } JSONArray ja = new JSONArray(); for (int i = 0; i < names.length(); i += 1) { ja.put(this.opt(names.getString(i))); } re...
3
public int getCurrentBits() { return currentBits; }
0
public void recursivePrint(TreeNode root, int parentPosition, Node innerNode, Node p, int i) { Node innerParent; int position; if (root != null) { int height = heightRootToNode(root); int nextTop = getRectNextTop(height); if (innerNode != null) ...
4
private static String htmlFilter(String message){ if(message == null) return null; int len = message.length(); StringBuffer result = new StringBuffer(len + 20); char aChar; for(int i =0; i< len; i++){ aChar = message.charAt(i); switch (aChar) { case '<': result.append("&lt;"); break; ...
7
public String CalcMAC(byte strInput[]) { int i, ii; int lenInput; byte newMAC[] = new byte[16]; byte tempmac[] = new byte[8]; byte strMAC[] = new byte[8]; byte tempstr3[] = new byte[8]; int j, k; byte temp1[] = new byte[1], temp2[] = new byte[1]; lenInput = strInput.length; i = lenInput % 8; if(i...
8
public int compare(String o1, String o2) { String s1 = (String)o1; String s2 = (String)o2; int thisMarker = 0; int thatMarker = 0; int s1Length = s1.length(); int s2Length = s2.length(); while (thisMarker < s1Length && thatMarker < s2Length) { ...
8
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page ...
5
public CheckResultMessage checkTotal1(int i) { int r1 = get(2, 2); int c1 = get(3, 2); int r2 = get(4, 2); BigDecimal sum = new BigDecimal(0); if (checkVersion(file).equals("2003")) { try { in = new FileInputStream(file); hWorkbook = new HSSFWorkbook(in); for (int j = 1; j < r2 - r1; j++) { ...
7
private void getReminderDateTime(String command, TaskData t) { Object obj = reminderParser.parse(command); if (obj == null) { reminderDateTime = null; reminderMinutes = null; } else if (obj instanceof LocalDateTime) { reminderDateTime = (LocalDateTime) obj; } else if (obj instanceof Integer) { remin...
8
@Test public void testCreatingAddressBookWithNullLabelShouldFail() { try { new Book(null); fail("Was expecting an Exception when no label is provided."); } catch (IllegalArgumentException iae) { Assert.assertEquals("Please provide a value for Label as it is a non-nullable field.", iae.getMessage()); } ...
1
public String toString() { StringBuilder bookString = new StringBuilder(); Iterator<String> it = keywords.iterator(); bookString.append("-Book- \n").append("author: ").append(author).append('\n'); bookString.append("# pages: ").append(pageNum).append('\n'); bookString.append("...
2
public static Object sub(Object o1, Object o2){ if (o1 instanceof List){ List newList = new ArrayList((List)o1); if (o2 instanceof List){ newList.removeAll((List)o2); } else { newList.remove(o2); } return newList; } if (o1 instanceof String || o2 instanceof String){ return o1; } ...
6
private PathSet lookupPaths(Class<?> clazz) { PathSet paths = pathMap.get(clazz); if (paths == null) { paths = new PathSet(clazz); pathMap.put(clazz, paths); } return paths; }
2
public static final int typeIndex(Class type) { Class[] list = primitiveTypes; int n = list.length; for (int i = 0; i < n; i++) if (list[i] == type) return i; throw new RuntimeException("bad type:" + type.getName()); }
2
public boolean contains(double posX, double posY) { return (posX >= (x - 5) && posX <= (x + width + 5) && posY >= (y - 5) && posY <= (y + height + 5)); }
3
public void dumpInstruction(TabbedPrintWriter writer) throws java.io.IOException { writer.println("break" + (label == null ? "" : " " + label) + ";"); }
1
public void setjButtonClose(JButton jButtonClose) { this.jButtonClose = jButtonClose; }
0
private int readComplexValue (ResTable_Map map, byte[] remainingData, int offset) throws IOException { map.name = readUInt32(remainingData, offset); offset += 4; return readValue(map.value, remainingData, offset); }
0
static ArrayList<Pair> surround(Pair start) { // System.out.printf("start is (%d, %d)", start.x, start.y); ArrayList<Pair> prlist = new ArrayList<Pair>(); for (int i=0; i<4; i++) { Pair tmp0 = new Pair(start); Pair tmp; if (i==0) { if (start.x>0) { tmp = new Pair(tmp0.x-1,t...
9
public static void main(String[] args) { //TODO Make tests have less ugly code GameWindow window = new GameWindow(); panel = new RenderPanel() { long lastRender = 0, lastSec = 0; int tickCount = 0, tickSec = 0, renderSec = 0, currTick = 0, currRender = 0; public void onTick() { tickCount+...
8
public ParagraphInputDialog(String paragraph) { super(); setTitle("Podaj opis"); setSize(794,458); getContentPane().setLayout(null); textArea = new JTextArea(); textArea.setText(paragraph); textArea.setBounds(20,20,740,500); scrollPane = new JScrollPane(textArea); scrollPane.setBounds(20,20,740...
0
public String getDisplayValue() { StringBuilder buf = new StringBuilder(); appendValue(buf, value); appendValue(buf, adr1); appendValue(buf, adr2); appendValue(buf, adr3); appendValue(buf, (city != null ? city : "")+(city != null && stae != null ? ", " : "")+(stae != null ? stae : ""...
8
public static int[] convertBase(int[] digits, int baseA, int baseB, int precisionB) { //check for bad input if(baseA < 2 || baseB < 2 || precisionB <1) return null; for(int i=0; i<precisionB ; i++){ if(digits[i] < 0 || digits[i] >= baseA) return null; } ...
7
public boolean checkForHorizontalStrike(String input) { for (int i = 0; i < boardSize; i++) { int count = 0; for (int j = 0; j < boardSize; j++, count++) { if (boardArray[i][j].equalsIgnoreCase(input)) { continue; } brea...
4
public DbTable LoadTableContent(DbTable table) { //Baseline table contents for(int i =0; i<100; i++) { record = new DbTableRecord(); //Primary key StringBuffer primaryKeyValue = new StringBuffer(); for(String pk:table.get_tableDefinition().getPkColumns()) { primaryKeyValue = primaryKe...
8
private boolean check() { if (N == 0) { if (first != null) return false; } else if (N == 1) { if (first == null) return false; if (first.next != null) return false; } else { if (first.next == null) return false; } ...
8
@Override public int compare(Object o1, Object o2) { if ((o1.getClass() != Vertex.class && o1.getClass() != Point.class) || (o2.getClass() != Vertex.class && o2.getClass() != Point.class)) return 0; Vertex v1 = (Vertex)o1; Vertex v2 = (Vertex)o2; if (v1.X(...
7
public void inferYBoundsFromSeries() { if (seriesElements.size()==0) { axes.setDataBounds(0, 1, 0, 1); } else { double ymin = seriesElements.get(0).getMinY(); if (ymin > 0) ymin = 0; double ymax = seriesElements.get(0).getMaxY(); for(int i=1; i<seriesElements.size(); i++) { double ...
8
private String getCountersLink(String taskDetailsJsp, boolean isMapper) { Document mapDetails = HtmlFetcher.getHtml(taskDetailsJsp); Element tr = null; if(useHistory) { tr = mapDetails.getElementsByTag("tbody").first().child(1); } else { for(Element elem : mapDetails.getElementsByTag("tbody").fir...
6
private static int sumOfSquares(int n) { if (n <= 0) { return n; } else { return (n * n + sumOfSquares(n - 1)); } }
1
@Override public boolean removeAllUsers() { FileWriter writer = null; try { writer = new FileWriter(OnlineUsers.directory+OnlineUsers.flatfileData); writer.write(""); } catch (Exception e1) { log.log(Level.SEVERE, "Exception setting all offline from " + OnlineUsers.directory+OnlineUsers.flatfileData, e1...
3
public Color getColor(int x){ switch(x){ case 1: BlockColor = Color.BLACK; break; case 2: BlockColor = Color.GREEN; break; case 3: BlockColor = Color.BLUE; break; case 4: BlockColor = Color.ORANGE; break; case 5: BlockColor = Color.MAGENTA; break; case 6: BlockColor = Color.BLUE; ...
7
public static double countRuns(Board b) { int run = 0; //LEFT/RIGHT for (int i = 0; i < 4; i++){ for (int j = 0; j < 3; j++){ if (nextNum(b.boardState[i][j], b.boardState[i][j+1])){ run++; } if (nextNum(b.boardState[i][j+1], b.boardState[i][j])){ run++; } } } //UP/DOWN for...
8
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed nuevo.setVisible(false); }//GEN-LAST:event_jButton3ActionPerformed
0
private static void mousePressed(Point pressedMousePosition) { Point eventPosition = Camera.untranslatePoint(pressedMousePosition); Model pressed = OurWorld.getModel(eventPosition); if (!rollPlate.contains(new Point(Mouse.getX(), Display.getHeight() - Mouse.getY()))) { if (pressed!=null ...
6
public Effect getFirstEffectOnPosition(Position position) { List<Effect> effectsOnPosition = getEffectsOnPosition(position); if (!effectsOnPosition.isEmpty()) return getEffectsOnPosition(position).get(0); return null; }
1
public boolean getCanSpawnHere() { if (this.worldObj.rand.nextInt(3) == 0) { return false; } else { if (this.worldObj.checkIfAABBIsClear(this.boundingBox) && this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).size() == 0 && !this.worldObj....
7
@Override public void keyReleased(KeyEvent e) { // TODO Auto-generated method stub switch (e.getKeyCode()) { case KeyEvent.VK_DOWN: { downPressed=false; } break; case KeyEvent.VK_UP: { upPressed=false; } break; case KeyEvent.VK_RIGHT: { rightPressed=false;...
5
public String toString() { String plateauAsciiArt = " 0 1 2 3 4 5 6 7 \n"; for (int numeroDeLigne = 0; numeroDeLigne < NOMBRE_DE_LIGNES; numeroDeLigne++) { plateauAsciiArt += numeroDeLigne + " "; for (int numeroDeColonne = 0; numeroDeColonne < NOMBRE_DE_COLONNES; numeroDeColonne++) { if (this.cas...
3
public VariableTable registerVarDecl(DeclResult type, ArrayList<String> varList) { VariableTable vTable = new VariableTable(); switch (type.getType()) { case VAR: for (String identi : varList) { vTable.registerVar(identi); } break; case ARRAY: for (String identi : varList) { vTable.registerA...
4
public ResultSet getAllComponentOfType(String category, int processorType){ ResultSet res = null; try{ String query = "Select componentId as 'Id', componentDescription as 'Component', componentPrice as 'Price',"+ " componentCategoryName as 'Device', componentBrandName as 'Brand' from components" + ...
1
public void setNametextZoomedFont(String font) { if ((font == null) || font.equals("")) { this.nametextZoomedFont = UIFontInits.NAMEZOOMED.getFont(); } else { this.nametextZoomedFont = font; } somethingChanged(); }
2
public void tick(long c64Cycles) { while (cycles < c64Cycles) { // Run one instruction! - with special overflow "patch" - // Always fake 'byte ready' for fast read! // boolean o = overflow; if (byteReady && chips.byteReadyOverflow) { // Set overflow and clear byte ready! overflo...
9
public void testExhaustive(){ Random r= new Random(); int trials = 1000; for(int i = 0; i < trials; i++) { int c1 = r.nextInt(10), r1= r.nextInt(10); int c2 = r.nextInt(10), r2 = r.nextInt(10); Matrix m1 = new Matrix(r1,c1); Matrix m2 = new Matrix(r2,c2); //Test multiplication bound...
7
public static GameData load(File f) { GameData gD = new GameData(); try { DataFile dF = new DataFile(); dF.load(new FileInputStream((new StringBuilder()).append(f.getAbsolutePath()).toString())); gD.dir = f.getAbsolutePath(); gD.mode = dF.getProperty("mode"); } catch(Exception e) { } r...
1
@Override public void run(){ while(true){ int result=-1; // for each thread // check if namenodelocation is available for(Task t : taskQueue){ try { if(t instanceof MapperTask){ result = ((MapperTask) t).performOperation(); } else if(t instanceof ReducerTask){ result =...
6
public void update() { if(this.pwidth != this.getWidth() || this.pheight != this.getHeight()) if(this.currentGui != null) { this.currentGui.setBounds(0, 0, this.getWidth(), this.getHeight()); this.currentGui.init(); } this.pwidth = this.getWidth(); this.pheight = this.getHeight(); if(this.c...
4
public void mergeBreakedStack(VariableStack stack) { if (breakedStack != null) breakedStack.merge(stack); else breakedStack = stack; }
1
public String getAlias() { return alias; }
0
@EventHandler (priority = EventPriority.HIGHEST) public void onPlayerLogin (PlayerLoginEvent event) { reloadConfig(); if (getConfig().getString("Player."+event.getPlayer().getName()+".CR") == null) getConfig().set("Player."+event.getPlayer().getName()+".CR", "Default"); if (getConfig().getString("Player."+eve...
5
public Logcat() { mLogcatBeans = new ArrayList<LogcatBean>(); Process.getInstance().getProcessesFromDaemon(); final FrameLogCat logCatFrame = new FrameLogCat(); logCatFrame.setVisible(true); DaemonExecute.getInstance() .setCommand(DaemonCommands.LOGCAT, new DaemonCallback() { @Override public v...
5
private int collectRows(HashSet<Row> set, int index) { Row row = getRowAtIndex(index); int max = mRows.size(); set.add(row); index++; while (index < max) { Row next = getRowAtIndex(index); if (next.isDescendantOf(row)) { set.add(next); index++; } else { break; } } return index; ...
2
public void paint(Graphics g) { w1.draw(g); w2.draw(g); Color c = g.getColor(); g.setColor(Color.RED); g.drawString("missiles count: " + missiles.size(), 10, 50); g.drawString("explosions count: " + explosions.size(), 10, 70); g.drawString("enemyTanks count: " + enemyTanks.size(), 10, 90); g.drawStri...
6
private float[][] unrollLoop(int beg, int len, boolean loop, boolean pingpong) { // FEATURE SUGGESTION: this could possibly do some anticlick stuff --GM // some thresholds... // TODO: not require such a huge mixSpill value if(!loop) { beg = this.length; len = 1; } int mixSpill = (c5speed<<...
9
public void appendBlock(StructuredBlock block, int length) { SlotSet succIn = new SlotSet(); SlotSet succKill = new SlotSet(); VariableSet succGen = new VariableSet(); block.fillInGenSet(succIn, succKill); succGen.addAll(succKill); if (this.block == null) { this.block = block; lastModified = block; ...
4
synchronized public Element getElementForPage(String pageURL) { String searchXPath = String.format(ELEMENT_BY_URL_XPATH, pageURL); List<Element> result = queryXPathList(searchXPath); return result.size()>0?(Element)result.get(0).clone():null; }
1
public final int update(short[] var1, int var2) { if(this.seek >= (float)this.data.data.length) { return 0; } else { for(int var3 = 0; var3 < var2; ++var3) { int var4 = (int)this.seek; short var5 = this.data.data[var4]; short var6 = var4 < this.data.data...
4
@Override public void setNationality(String nationality) { super.setNationality(nationality); }
0
@Override public int getCount(ArrayList<FilterBean> hmFilter) throws Exception { int pages; try { oMysql.conexion(enumTipoConexion); pages = oMysql.getCount("usuario", hmFilter); oMysql.desconexion(); return pages; } catch (Exception e) { ...
1
public CreateRandomTime(String connectStr, String userName, String pass, String outputTable, Time t1StartTime, int t1DurationMillis, Time t2StartTime, int t2DurationMillis, Time t3StartTime, int t3DurationMillis, String experiment) throws SQLException { this....
8
* @parameter pos, position of the private array where is the shape to be * returned */ public MyShape getShape(int pos) { try { if ((pos >= 0) && (pos < 100) && (pos < this.getShapeCount())) { return this.shapes[pos]; } else { throw null; } } catch (NullPointerException NullPointerE...
4
public static void main(String[] args) throws ClassNotFoundException { //Class 类是java反射的入口点 //获取类的class对象 // Class<?> classType = Class.forName("java.lang.String"); Class<?> classType = Class.forName(args[0]); Method[] methods = classType.getDeclaredMethods(); for(Method method : methods){ ...
2
public String toString() { return path; }
0
private void writeDescriptions() { DefaultTreeCellRenderer treeCellRenderer = new DefaultTreeCellRenderer(); treeCellRenderer.setLeafIcon(null); treeCellRenderer.setOpenIcon(null); treeCellRenderer.setClosedIcon(null); instructionDescriptionTree.setCellRenderer(treeCellRenderer);...
3
public void setCondicao(PExpLogica node) { if(this._condicao_ != null) { this._condicao_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent...
3
public int getId() { return id; }
0
public static void envoyerCommande(String nomB,String nomC, ArrayList<String> listeIdProduits) throws IOException { try { gbu = (IGestionBoutiques) Naming.lookup("rmi://localhost/GestionBoutiques"); } catch (NotBoundException ex) { Logger.getLogger(ConnexionThreadClientCommandes...
8
@Override public void update(Object obj) { if (obj instanceof Vendedor) { Vendedor editar = (Vendedor) obj; Vendedor vendedor; for (int i = 0; i < vendedores.size(); i++) { vendedor = vendedores.get(i); if (vendedor....
9
public static void main(String[] args) { }
0
private String getLoadReplacementSignature(int opcode) throws BadBytecode { switch (opcode) { case AALOAD: return "(Ljava/lang/Object;I)Ljava/lang/Object;"; case BALOAD: return "(Ljava/lang/Object;I)B"; case CALOAD: return "(Ljava/lang/Object;I)C"; ...
8
public boolean containsValue(Object value) { Entry tab[] = table; if (value == null) { for (int i = tab.length ; i-- > 0 ;) { for (Entry e = tab[i] ; e != null ; e = e.next) { if (e.value == null) { return true; ...
7
public void start() { Random random = new Random(); int finishY = track.getFinishY(); int startY = track.getStartY(); int tracks[] = track.getTracks(); for (int t=0; t<turtles.length; t++) { turtles[t].setTrackX(tracks[t]); turtles[t].jumpTo(tracks[t], startY)...
9
@Override public boolean handleDownloadDirCommand(String providedCommandLine, PrintStream outputStream, IServerStatusInterface targetServerInterface) { boolean retVal = false; String[] commParts = GenericUtilities.splitBySpace(providedCommandLine); if(commParts != null && commParts.length >= 2) { ...
9