text
stringlengths
14
410k
label
int32
0
9
public void setId(int id) throws ParkingException { if (id < 0) { throw new ParkingException("Id is under zero"); } this.id = id; }
1
private ConfigManager() { m_props = new Properties(); try { m_props.load(this.getClass().getClassLoader() .getResourceAsStream("config.property")); } catch (FileNotFoundException e) { getLogger().error(e.getMessage()); e.printStackTrace(); } catch (IOException e) { getLogger().error(e.getMess...
2
public boolean isAlive() { return alive; }
0
@Test public void tosiPieniEsteOikealla() { laitetaasPariPientaEstetta(); t.lisaaEste(new Este(0, 92, 1000, 200)); pe.liikuOikealle(); for (int i = 0; i < 100; i++) { pe.eksistoi(); } assertTrue("Hahmo ei päässyt matalan esteen yli. x = " ...
1
public String getRoomNameInDirection(String direction) { switch (direction.toLowerCase()) { case "north": return this.north[0]; case "east": return this.east[0]; case "south": return this.south[0]; case "west": ...
4
public void successResponseReceived(String localAddress, String remoteAddress, int remotePort, Codec codec) { switch (userAgent.getMediaMode()) { case captureAndPlayback: //TODO this could be optimized, create captureRtpSender at stack init // and just retrieve it...
9
public void moveRight(Area currentWorld){ for(int count = stats.speed; count > 0; count--){ if(currentWorld.locWalkable(x + size + 1, y) && currentWorld.locWalkable(x + size + 1, y + size) && currentWorld.locWalkable(x + size + 1, y - size)){ x++; } } }
4
public Object getValueAt(int rowIndex, int columnIndex) { switch(columnIndex){ case 0: return pers[rowIndex].getNom(); case 1: return pers[rowIndex].getNaissance(); case 2: return pers[rowIndex].isMasculin(); case 3:...
4
public void runTest(File f, AI ai, AI ai2) throws FileNotFoundException, UnsupportedEncodingException, IOException { FileWriter out = new FileWriter(f, true); int wins = 0; int ties = 0; int loss = 0; for (int g = 0; g < numGames; g++) { doubl...
9
public String replaceObfuscation() { String replaceObfuscatedCode = null; /* * 難読化に使用する文字の個数を乱数で決める。 * 個数は必ず4以上とする。 */ int keyCharacterNumber = keyCharacterList.size(); int quantyKeyCharacter = 0; Random random = new Random(); while (true) { quantyKeyCharacter = random.nextInt(keyCharacterNumbe...
8
public void addInstance(GuideDecision decision) throws MaltChainedException { if (decision instanceof SingleDecision) { throw new GuideException("A branched decision model expect more than one decisions. "); } featureModel.update(); final SingleDecision singleDecision = ((MultipleDecision)decision).getSingle...
7
@Override public void mouseExited(MouseEvent e) { }
0
@Override public void onEnable() { // 1.0.0.0 <-- Dev # // 1.0.0 <-- Hotfix # // 1.0 <-- Sub Version # // 1 <-- Version # if (DEBUG) { NAME = "Cops And Robbers INDEV V1.0.0.1"; } else { NAME = "Cops And Robbers v1.0.0"; } // plugin enable stuff getLogger().info(NAME + " is enabled!"); ge...
1
@Override public void caseAIfStmt(AIfStmt node) { for(int i=0;i<indent;i++) System.out.print(" "); indent++; System.out.println("(If"); inAIfStmt(node); if(node.getIf() != null) { node.getIf().apply(this); } if(node.getLPar() != null...
9
public byte [] recvInterrupt () throws IOException { if ("interrupt" != getType ()) throw new IllegalArgumentException (); if (spi == null) spi = iface.getDevice ().getSPI (); // FIXME getInterval() ms timeout (caller guarantees periodicity) return spi.readIntr (getU8 (2), getMaxPacketSize ()); ...
2
public void actionPerformed(ActionEvent e) { if (e.getSource() == left) { halign = Alignment.LEFT; return; } if (e.getSource() == center) { halign = Alignment.CENTER; return; } if (e.getSource() == right) { halign = Alignment.RIGHT; return; } if (e.getSourc...
8
public JSONWriter endObject() throws JSONException { return this.end('k', '}'); }
0
private void traiterFichier (File fichier) { int b = -1; boolean pasFini = true; try { //transfert en binaire BufferedInputStream in = new BufferedInputStream(new FileInputStream(fichier)); BufferedOutputStream out = ne...
3
public static float findMinimum(Collection<Float> values) { float MIN = Float.POSITIVE_INFINITY; for (float f : values) if (f < MIN) MIN = f; return MIN; }
2
public void print(){ for(int k=0;k<=cols;k++){ System.out.print(vnames[k]+"\t"); } System.out.print("\n"); for(int k=0;k<=cols;k++){ System.out.print(vunits[k]+"\t"); } System.out.print("\n"); for(int i=0;i<rows;i++){ for(int j=0;j<cols;j++){ System.out.print(vls[i][j]+"\t"); } System.o...
4
public String readLine() //exclusively for NON-token { if(console) { try { return myInFile.readLine(); } catch (IOException e) { e.printStackTrace(); } return null; ...
7
private final String getChunk(String s, int slength, int marker) { StringBuilder chunk = new StringBuilder(); char c = s.charAt(marker); chunk.append(c); marker++; if (isDigit(c)) { while (marker < slength) { c = s.charAt(marker...
5
public void run() { int nf = 1; int df = 1; int n2, d2; for(int n = 1; n < 100; n++) { for(int d = n + 1; d < 100; d++) { for(int i = 0; i < 10; i++) { if(n == d || (n % 10 == 0 && d % 10 == 0)) { continue; ...
9
@Test public void testAddWhileQuery1() { Bag<Integer> myList = new Bag<Integer>(); myList.add(1); myList.add(2); myList.reset(); assertTrue(myList.hasNext()); int x = myList.next(); assertTrue(x == 1 || x == 2); myList.add(3); assertTrue(myList.hasNext()); int y = myList.next(); assertTrue(...
8
public boolean isCorner(String m[]){ String rows[] = {"row1", "row3"}; String cols[] = {"0", "2"}; if(m[0] == null) return false; if(m[0].equals("row2") && m[1].equals("1")){ //center square return false; } for(int i=0; i< rows.length; i++){ for(int j=0; j<cols.length; j++){ ...
7
public int getSouth(){ return this.south; }
0
@Override public void windowOpened(WindowEvent arg0) { }
0
@Override public String getTmp() {return tmp;}
0
public ArrayList<ArrayList<Integer>> threeSum(int[] num) { Arrays.sort(num); ArrayList<ArrayList<Integer>> result = new ArrayList<ArrayList<Integer>>(); Set set = new HashSet(); for (int i = 0; i < num.length; i++) { if (i < 0) break; int left =...
6
@Test public void testPercentageUpdate() throws Exception { propertyChangeSupport.firePropertyChange(DialogWindowController.PERCENTAGE, 0, 10); assertEquals(view.getProgressBar().getValue(), 10); }
0
@Override public void execute(Joueur jou){ Joueur proprio = this.getProprietaire(); if(proprio == null){ propositionAchat(jou); } else if(proprio == jou && getRanking() < 5 && jou.possede(this.groupePropriete)){ propositionAmeliorat...
6
private String getLabelForState(IEntity entity) throws IOException { final DrawFile cFile = entity.getImageFile(); final String stateBgcolor = getBackColorOfEntity(entity); final String stereotype = entity.getStereotype() == null ? null : entity.getStereotype().getLabel(); final StringBuilder sb = new StringB...
8
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed // TODO add your handling code here: if (!this.isEmptyTable(tableSetUp) && this.txtnamefile.getText().length() != 0) { this.getDataTable(tableSetUp); this.datacompiler ...
2
public String monthInLetters(String field) { String newField = ""; if(field.length() > 2) { newField = String.valueOf(getMonth(field.substring(0, 3))); System.out.println("month : " + getMonth(field.substring(0, 3))); if(field.length() > 3) ...
8
public String getManifestMainAttribute(Attributes.Name name, String defaultValue) { Attributes atts = _manifest.getMainAttributes(); Object value = atts.get(name); return value != null ? value.toString() : defaultValue; }
1
public static boolean modificar(Recurso r) throws SQLException { String queryRecurso = "UPDATE recurso SET isbn = ?, titulo = ?, fecha = ?, genero = ?," + "num_ejemplar = ?, estado_conserva = ?, disponibilidad = ? WHERE id = ?"; String queryLibro = "UPDATE recurso_libro SET autor = ?, e...
7
protected CommandManager(PrintStream commandSender, int verbose) { this.commandSender = commandSender; this.verbose = verbose; }
0
public accept() { this.requireLogin = true; this.addParamConstraint("id", ParamCons.INTEGER); this.addRtnCode(405, "appointment not found"); this.addRtnCode(406, "illegal time"); this.addRtnCode(407, "user not waiting"); }
0
private void btnRemoveTaskFromProjectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRemoveTaskFromProjectActionPerformed selectedTask = (Task)listTasksList.getSelectedValue(); if(selectedTask !=null && selectedElement !=null && selectedProject !=null && selectedAsset !=null) ...
4
public void placeFlags(){ // Place random flags Random randX = new Random(); Random randY = new Random(); int x, y; for( int r = 0; r < NUM_OBJECTS; r++ ){ x = randX.nextInt( 1820 + 1 ); y = randY.nextInt( 980 + 1 ); // Make sure we don't pla...
6
private boolean read(){ try { final URLConnection conn = this.url.openConnection(); conn.setConnectTimeout(5000); if (this.apiKey != null) { conn.addRequestProperty("X-API-Key", this.apiKey); } conn.addRequestProperty("User-Agent", Updater.USER_AGENT); conn.setDoOutput(true); final B...
4
public static boolean isPrime(long value){ if(value==2||value==3||value==5){ return true; } if(value%6==1||value%6==5){ for(long i=2; i*i<=value; i++){ if(value%i==0){ return false; } } return true; } re...
7
private void textProveedorKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_textProveedorKeyTyped // TODO add your handling code here: if (!Character.isLetter(evt.getKeyChar()) && !Character.isISOControl(evt.getKeyChar()) && !Character.isWhitespace(evt.getKeyChar())) { ...
4
@Test public void test_maxGold() { Pawn p0 = mock(Pawn.class); Pawn p1 = mock(Pawn.class); board.removeAllPawns(); assertEquals(board.numberOfPawns(), 0); board.addPawn(p0); assertEquals(board.numberOfPawns(), 1); when(p0.getX()).thenReturn(1); wh...
0
public double[] calculateEnergyConsumptionW(SoftwareSystem system, FunctionalRequirement functionalRequirement, SequenceAlternative sequenceAlternative) { double consumption[] = { 0, 0 }; for (HardwareSet hardwareSet : system.getActuallyUsedHardwareSets()) system.initializeTime(hardwareSet); system.getActually...
5
public void collapseMenu() { for(int i = 1; i < methodTree.getRowCount(); i++) methodTree.collapseRow(i); }
1
public static TagAndURISubModel launchPopupProfil(Component parent, ProfilesSystemModel profiles) { String profilName = (String) JOptionPane .showInputDialog(parent, "Nouveau profil :\n Veuillez saisir votre nom.", "Nouveau Profil", JOptionPane.QUESTION_MESSAGE, new ImageIcon(VitipiMenuCon...
6
@Override public void run() { if (Updater.this.url != null) { // Obtain the results of the project's file feed if (Updater.this.read()) { if (Updater.this.versionCheck(Updater.this.versionName)) { if ((Updater.this.versionLi...
6
@Override public boolean accept(File f) { if (f.isDirectory()) { return true; } String ext = null; String s = f.getName(); int i = s.lastIndexOf('.'); if (i > 0 && i < s.length() - 1) { ext = s.substring(i + 1).toLowerCase(); } System.out.println(ext); return ext.equals("sfp"); }
3
private void writeBoolList(List<Boolean> boolList) throws IOException { byte b = 0; int mask = 0x80; for (Boolean aBoolList : boolList) { if (aBoolList) b |= mask; mask >>= 1; if (mask == 0) { writeByte(b); mask ...
4
public static void main (String[] args) { final byte[] data = {(byte) 189, (byte) 88, (byte) 128, (byte) 244, (byte) 156, (byte) 41, (byte) 17, (byte) 177, (byte) 157, (byte) 173, (byte) 195, (byte) 121, (byte) 99, (byte) 111, (byte) 114, (byte) 112 }; final Guid guid1 = new...
1
public void AnalyseDirectory(String dir){ File F = new File(dir); String[] fi = F.list(); String of ; File fil = new File(dir + "/dist/"); if(!fil.exists()) { fil.mkdir(); } for(String f : fi) { if(new File(f).isDirectory())...
7
public synchronized void gridletSubmit(Gridlet gl, boolean ack) { // update the current Gridlets in exec list up to this point in time updateGridletProcessing(); // reset number of PE since at the moment, it is not supported if (gl.getNumPE() > 1) { String...
4
private boolean jj_2_41(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; try { return !jj_3_41(); } catch(LookaheadSuccess ls) { return true; } finally { jj_save(40, xla); } }
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
@SuppressWarnings("empty-statement") /** * This method will generate a SHA-256 Scanner_Checksum of a given file * * @param hash - possible values: SHA-1, SHA-256, SHA-512 and MD5 * @param filename - the target filename, we also handle locked files * @return - the resulting Scanner_Checksum or empty if not possible...
9
@Override public void update(GameContainer gc, int delta) { // TODO Auto-generated method stub Vector2 oldPos = position.copy(); Vector2 steeringForce = behavior.calculate(); Vector2 acceleration = steeringForce.divideBy(mass); velocity.add(acceleration.multiply(delta * MOVEMENT_PER_MS)); velocity.truncate...
2
public boolean equals(Object other) { if (!(other instanceof Location)) return false; Location otherLoc = (Location) other; return getRow() == otherLoc.getRow() && getCol() == otherLoc.getCol(); }
2
public void setTrajectory(Rectangle sling, Point releasePoint) { // don't update parameters if the ref point and release point are the same if (_trajSet && _ref != null && _ref.equals(getReferencePoint(sling)) && _release != null && _release.equals(releasePoint)) ...
6
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
protected void setup() { System.out.println("This is patient agent called " + getLocalName()); Object[] arg = getArguments(); try { int preference = 1; for (Object o : arg) { if (o.toString().equals("-")) { preference++; } else { preferences.put(Integer.parseInt(o.toString()), preference...
5
@Test public void testRemoveRedMarker() { System.out.println("removeRedMarker"); Cell instance = new Cell(0,0); instance.addRedMarker(0); instance.addRedMarker(1); instance.addRedMarker(2); instance.addRedMarker(3); instance.addRedMarker(4); instance.a...
0
public static Map loadYamlFromResource(String resource) { InputStream yamlConfig = Thread.currentThread().getContextClassLoader().getResourceAsStream(resource); Yaml yaml = new Yaml(); Map mainYamlMap = (Map) yaml.load(yamlConfig); Map resultYamlMap = new HashMap(); List<Map>...
2
private void BestMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_BestMouseClicked // TODO add your handling code here: List<String> s = new Conectar().GetVendedor(); int t = s.size(); boolean b = true; List<String> names = new ArrayList<>(); for(Str...
8
@Override public Set<Class<?>> getClasses() { Set<Class<?>> classes = new HashSet<Class<?>>(); classes.add(PropertyFilteringMessageBodyWriter.class); return classes; }
3
public double getDouble(String key) throws JSONException { Object o = get(key); if(o==null) return 0; try { if(o instanceof Number){ return ((Number)o).doubleValue(); }else if(o.toString().length()>0){ return Double.valueOf((o.toString())); }else ...
4
private static void refresh(Entity entity) { EntityTrackerEntry entry = (EntityTrackerEntry) ((WorldServer) ((CraftEntity) entity).getHandle().world).tracker.trackedEntities .get(entity.getEntityId()); if (entry != null) { EntityPlayer[] players = (EntityPlayer[]) entry.track...
4
public void insertString(int offs, String str, AttributeSet a) throws BadLocationException { while (this.getLength() > 0 && this.getText(0, 1).equals("0")) { super.remove(0, 1); if (offs > 0) offs--; } super.insertString(offs, p.matcher...
6
public String scriptsToString() { int n = getChoiceCount(); if (n < 1) return ""; if (scripts == null || scripts.length <= 0) return ""; StringBuffer sb = new StringBuffer(scripts[0]); if (getSingleSelection()) { if (n < 2) return sb.toString().trim(); for (int i = 1; i < n; i++) { sb.appe...
7
static void testHigh() { Scanner in = new Scanner(System.in); Board b = Board.readBoard(in); ArrayList<Integer> nextPiece = new ArrayList<Integer>(); while(in.hasNextInt()) nextPiece.add(in.nextInt()); Searcher s; for (int i = 9; i <13; i++){ for(int j= 5; j < i; j++){ s = new Jogger(new Linea...
3
public boolean isKeyPressed(int keyEventKeyCode) { if(keys.get(keyEventKeyCode) == null) return false; return keys.get(keyEventKeyCode); }
1
protected void installListeners() { super.installListeners(); if (AbstractLookAndFeel.getTheme().doShowFocusFrame()) { focusListener = new FocusListener() { public void focusGained(FocusEvent e) { if (getComponent() != null) { org...
6
@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 Usuario)) { return false; } Usuario other = (Usuario) object; if ((this.id == null && other.id != null) || (thi...
5
public void setRpcUser(String rpcUser) throws InvalidSettingException { if (rpcUser != null) { this.rpcUser = rpcUser; } else { throw new InvalidSettingException("Invalid User"); } }
1
private static <A, B, C> State resolvePair2(StatePair lr, Fst<A> left, Fst<B> rigth, final Map<StatePair, State> chart, Fst<C> intersection) { if (chart.containsKey(lr)) { return chart.get(lr); } else { boolean isInit = left.isInitial(lr.fst) && rigth.isInitial(lr.snd); boolean isAccept = left.isAccept(...
5
private boolean verificaiton(Socket socket) throws IOException { InputStream in = socket.getInputStream(); OutputStream out = socket.getOutputStream(); if (this.protocal == PROTOCAL.NOPROTOCAL) { return sa.NOPROTOCOL(in, out); } else if (this.protocal == PROTOCAL.T2) { return sa.T2(in, out); } els...
5
public void mousePressed(MouseEvent event) { if (!controller.isObject(event.getPoint()) && !event.isControlDown()) { controller.getCurrentGraph().deselectAll(); } else { if (controller.checkSelectedObject(event.getPoint())) { if (event.isControlDown()) { isDeactive = true; } } else { if (e...
5
static void Eval_pop(Neuron pop[]) { int i, j, k; //int spam2; //float spam = 0; int best[] = new int[Config.TOP_NETS]; float pop_average; float total_fitness = 0.0F; float the_best = -999999.0F; String best_name; Network net = new Network(); Neuron net_pop[] = new Neuron[Config.NUM_H...
9
public String asRegEx() { StringBuilder sb = new StringBuilder().append("^") .append(pattern(scheme, SCHEME_REGEX, "(%s):")) .append(pattern(host, HOST_REGEX, "//(%s)")); if (host == null || host.pattern().length() > 0) { sb.append(port == null ? PORT_REGEX : ((port < 0) ? "" : (":" + port))); } ...
6
public List<Tiedote> haeTiedotteet() throws DAOPoikkeus { // luodaan tyhjä arraylist tiedotteille List<Tiedote> tiedotteet = new ArrayList<Tiedote>(); try { // haetaan tiedotteet tietokannasta TiedoteDAO tDao = new TiedoteDAO(); ...
1
public static void mate(ArrayList<ParkerPaulChicken> chickens) { Random chickenGenerator = new Random(); // random number generator for generating chickens // guard clause - no more chickens or only 1 chicken if (chickens.isEmpty() || chickens.size() == 1) { return; } ...
4
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Bibliografia other = (Bibliografia) obj; if (basicaOuNao != other.basicaOuNao) return false; if (livro == null) { if (other.livro != null...
8
public static boolean insert(Object bean) { String sql; PreparedStatement stmt=null; try{ if(bean instanceof Patient){ sql = "INSERT into patients ("+Patient.getTableSchema()+") " + "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; stmt=conn.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS); ...
8
@Override public void keyReleased(KeyEvent e) { keys[e.getKeyCode()] = false; // add key to queue for thread to send keystr.add("false:"+e.getKeyCode()); }
0
public void reserveSmallConstants(GrowableConstantPool gcp) { next_instr: for (Iterator iter = instructions.iterator(); iter .hasNext();) { Instruction instr = (Instruction) iter.next(); if (instr.getOpcode() == opc_ldc) { Object constant = instr.getConstant(); if (constant == null) continue ne...
8
public boolean unregisterCommands() { CommandMap commandMap = getCommandMap(); List<String> toRemove = new ArrayList<String>(); Map<String, org.bukkit.command.Command> knownCommands = ReflectionUtil.getField(commandMap, "knownCommands"); Set<String> aliases = ReflectionUtil.getField(comm...
8
protected Object getChildPort(Object edge, boolean source) { GraphModel model = getModel(); // Contains the parent of the port, eg. the group Object parent = (source) ? DefaultGraphModel.getSourceVertex(model, edge) : DefaultGraphModel.getTargetVertex(model, edge); // Finds a vertex in the group int c = m...
9
@Test public void testSocketThreadSetSocketTimeoutEx() { LOGGER.log(Level.INFO, "----- STARTING TEST testSocketThreadSetSocketTimeoutEx -----"); String client_hash = ""; boolean exception_expected = false; try { server1.startThread(); } catch (IOException | Server...
4
public GraphDrawer getDrawer() { return drawer; }
0
private void postFile(String fileName) throws Exception { PrintWriter fileWriter = new PrintWriter(fileName); String str = ""; while ((str = in.readLine()) != null) { fileWriter.println(str); } fileWriter.close(); }
1
public static Object scan(String type, String line) { Object ret = scanHelper(type, line); if (ret instanceof Class<?>) { Class<?> clazz = ((Class<?>)ret).getComponentType(); if (clazz == null) { clazz = (Class<?>)ret; } return Array.newInstance(clazz,0...
6
private ArrayList<Individual> pickSimilarWithReplace(Population pop, Individual i1, int num) throws Exception { int r = 0; for (int i = 0; i < pop.size(); i++) { if (i1 == pop.getIndividual(i)) { r = i; } } //modified indexies ArrayList<In...
7
private static String executeCreateTableCommand(DataBaseManager dbManager, Command command) { List<String> args = command.getArgs(); String tableName = args.get(0); List<String> columnNames = args.subList(1, args.size()); String msg = ""; try { boolean result = dbMan...
2
public File encode(Serializable structure, File file, Map parameters) { return file; }
0
public static void writeBytesToImage(BufferedImage bimg, byte[] msg, String filename, String key) throws ImageWriteException, IOException { int w = bimg.getWidth(); int h = bimg.getHeight(); //System.out.println("[Key] " + key); RC4 prng = new RC4(EncryptionProvider.sha256(key.getByte...
5
public static void floodfill( int a, int b , char s ){ Queue<Integer> xx = new LinkedList<Integer>(); Queue<Integer> yy = new LinkedList<Integer>(); xx.add(a); yy.add(b); v[a][b] = true; while( !xx.isEmpty() ){ int x = xx.poll(); int y = yy.poll(); m[x][y] = '*'; for (int k = 0; k < dx.length; k...
8
public Ram produkujemyRam(){ return new DDR3(); }
0
public Node<T> deleteNode(T data) { if (_root == null) { return null; } if (_root.Data == data) { _root = _root.Next; return _root; } Node<T> temp = _root; while (temp.Next != null) { if (temp.Next.Data == data) { if (temp.Next == _e...
5
public VertexSet copy() { VertexSet tmp = new VertexSet(); tmp.addVertexSet(this); return tmp; }
0
@Override public boolean runWithoutCheats() { return true; }
0