text
stringlengths
14
410k
label
int32
0
9
public void render(int[] pixels, int offset, int row) { for (int yTile = yOffset >> 3; yTile <= (yOffset + height) >> 3; yTile++) { int yMin = yTile * 8 - yOffset; int yMax = yMin + 8; if (yMin < 0) yMin = 0; if (yMax > height) yMax = height; for (int xTile = xOffset >> 3; xTile <= (xOffset +...
8
public void checkfold() { for (Widget wdg = child; wdg != null; wdg = wdg.next) { if ((wdg == cbtn) || (wdg == fbtn)) continue; if (folded) { if (wdg.visible) { wdg.hide(); wfolded.add(wdg); } } else if (wfolded.contains(wdg)) { wdg.show(); } } Coord max = new Coord(ssz); i...
9
public boolean search(DirectedGraph g, Node start, Node end) { //Initialize all the nodes in the graph LinkedList<Node> nodes = new LinkedList<Node>(); for(Node n : g.getNodes()) { n.status = Status.Unvisited; } start.status = Status.Visiting; nodes.add(start); Node node; while(!nodes.isEmpty()) {...
6
@Override public void tick(double dt) { super.tick(dt); handleIntersections(); if (liveTime < armTime) { liveTime += dt; } else if (!armed){ arm(); } if (explode && !triggered) explode(); if (!touchingGround) { accelerate(0, 0.08); } }
5
private static byte[] executeS(byte[] block) { byte[] helperBlock = splitInSextets(block); // execute S function on each byte // each resulting byte contains 4 bits for (int i = 0; i < helperBlock.length; i++) { ByteHelper.printByte(helperBlock[i]); helperBlock[...
1
public String preSendShippingDate(int postalCode, int arrivalDate, String string) { int[] shippingDate = new int[6]; shippingDate[0] = arrivalDate / 10000;//amYear shippingDate[1] = arrivalDate % 10000 / 100;//amMonth shippingDate[2] = arrivalDate % 100;//amDay shippingDate[3] = arrivalDate / 10000;//pmYear ...
9
public boolean newAccountsAllowed(String login, Session session, PlayerAccount acct) { switch(newAccountNameCheck(login,session.getAddress())) { case NO_NEW_PLAYERS: session.println(L("\n\r'@x1' is not recognized.",CMStrings.capitalizeAndLower(login))); return false; case BAD_USED_NAME: session.printl...
9
public static String LoadShader(String fileName) { StringBuilder shaderSource = new StringBuilder(); BufferedReader shaderReader = null; try { shaderReader = new BufferedReader(new FileReader("./res/shaders/" + fileName)); String line; while ((line = shaderReader.readLine()) != null) shader...
2
@Override protected void setColoredExes() { coloredEx = LineGenerator.WuAlgorithm(begin, end); center = coloredEx.get(coloredEx.size() /2); }
0
public static void main(String[] args) { // Working with Loops int number = 1; while (number <= 10) { System.out.println(number); number++; } int number2 = 11; do { System.out.println(number2); number2++; } while (number2 <= 20); for (int i = 21; i <= 30; i++) { System.out.println(i)...
3
@Override public void componentHidden(ComponentEvent e) {}
0
private static void doAnalysis(String outfile, Level level) throws TesseractException, IOException { layout = analyzer.analyzeLayout(); do { BoundingBox box = layout.getBoundingBox(level); if (box == null) { // If the bounding box is null, this indicates ...
2
public void setRowsCount(int rowsCount) { m_rowsCount = rowsCount; fitVectorsToSize(); }
0
@Override public void move(Excel start, Excel finish) { if (start.getX() == begin.getX() && start.getY() == begin.getY()) { begin = finish; setColoredExes(); return; } if (start.getX() == end.getX() && start.getY() == end.getY()) { end = finish; setColoredExes(); return; } for(E...
6
protected ConfigurationSection getSection() { return yamlConfiguration; }
0
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 run() { try { in = new ObjectInputStream(connection.getInputStream()); } catch (IOException ex) { Logger.getLogger(ILServer.class.getName()).log(Level.SEVERE, null, ex); return; } boolean going = true; MessageObj incoming; ...
5
public void saveRegion(final Region region, final boolean immediate) { final BufferedYamlConfiguration config = this.configuration.get((region.isDefault() ? null : region.world)); String path = region.name; if (region.isDefault()) if (region.world == null) { path = "...
5
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed JFileChooser apkChooser = new JFileChooser(); apkChooser.setFileFilter(new APKFilter()); apkChooser.setDialogTitle(parser.parse("installApp:chooserTitle")); apkChoo...
1
protected void createCachedParticles(ParticleEmitter emitterDetails) { int particleNumber = 0; for (int colorHex : emitterDetails.possibleColors) { for (BufferedImage particleImage : emitterDetails.particleGraphics) { // Take a copy of our image so we can freely modify it without // affecting the origina...
4
@EventHandler void buffdamage(EntityDamageByEntityEvent event){ if((event.getDamager() instanceof Player)||(event.getEntity() instanceof LivingEntity)){ try { Player p = (Player) event.getDamager(); ItemShell is = getShell(p); for(int i = 2;i<19;i++){ ...
5
public void mapToMouse(GameAction gameAction, int mouseCode) { mouseActions[mouseCode] = gameAction; }
0
public Player getPlayer() { return player; }
0
public NumberNodeEditor(NumberNode node) { this.m_Node = node; String name = node.getText(); Number value = node.getValue(); int iteratorType = node.getIteratorType(); boolean showCheckBox = node.getCheckable(); boolean selected = node.getSelected(); textForeground = UIManager.getC...
7
public int getDocumentID(int rID) { int result = 0; String strStatement = "SELECT dID FROM report WHERE rID = " + rID; try { ResultSet rstResultSet = startQuery(strStatement); if (rstResultSet.next()) { result = rstResultSet.getInt("dID"); } } catch (ClassNotFoundException e) { _logge...
3
public void testFormatAppend_PrinterParser_null_Parser() { PeriodParser parser = new PeriodFormatterBuilder().appendWeeks().appendLiteral("-").toParser(); PeriodFormatterBuilder bld = new PeriodFormatterBuilder().append(null, parser).appendMonths(); assertNull(bld.toPrinter()); assertNot...
1
public void setCellAt(String value, int row, int column) { try { Properties properties = new Properties(); String currentPath = System.getProperty("user.dir"); properties.load(new FileInputStream(currentPath + "/src/tictactoe/resources/" ...
6
public void onDisable() { // save players for (ChatPlayer p : PlayerManager.getPlayersByServer(name)) { String pre = "players." + p.name + "."; persist.get().set(pre + "channel", p.channel); persist.get().set(pre + "listening", p.listening); ArrayList<String> modes = new ArrayList<String>(); for(Chat...
7
private int getLinearity() { return myLinearity; }
0
@Override public boolean isWin() { for (int i = 0; i < 3; i++) { if (checkColumn(i)) return true; if (checkRow(i)) return true; } if (checkDiagnol1()) return true; if (checkDiagnol2()) return true; return false; }
5
private static void showWinner() { int winner = 0; for(LightCycle p : players) { winner++; if(p.alive()) break; } if(winner != 1) { wins = 0; streak = false; msg.setText("Wow! You lose!"); lastKey = null; } else { int points = gameBoard.percentLeft(); score = score + points; win...
6
@Override public String toString() { return String.format( "inPackage(%s)", this.targetPackage ); }
0
public JComboBox getjComboBoxPracticien() { return jComboBoxPracticien; }
0
public DataFinder(Class searchClass) throws IllegalArgumentException { if (searchClass.getGenericSuperclass() != Persistent.class) throw new IllegalArgumentException(); this.searchClass = searchClass; this.indexGlobal = DataWorker.GetIndexGlobalName(searchClass); }
1
public List<Object> getAny() { if (any == null) { any = new ArrayList<Object>(); } return this.any; }
1
public GridPanel(final Grid grid) { this.grid = grid; this.size = new Dimension(grid.width * BLOCK_SIZE, grid.height * BLOCK_SIZE); this.addMouseMotionListener(new MouseMotionAdapter() { @Override public void mouseMoved(MouseEvent e) { posX = e.getX() / BL...
6
private boolean _jspx_meth_c_when_0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_choose_0, PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // c:when org.apache.taglibs.standard.tag.rt.core.WhenTag _jsp...
4
public SortedSet get(String variable, String lookahead) { int[] r = getLocation(variable, lookahead); return Collections.unmodifiableSortedSet(entries[r[0]][r[1]]); }
0
public Command getTurnOffCommand() { return turnOffCommand; }
0
public String ProcessTransaction(HttpMethod httpMethod, String url, Object data) throws BeanstreamApiException { try { Gson gson = getGsonBuilder().create(); String json = data != null ? gson.toJson(data) : null; // this is a temporary printl...
9
protected Date parseWFTDate(String[] words) throws MalformedDateException { if (!words[1].equalsIgnoreCase("EST")) throw new MalformedDateException("Second word \"" + words[1] + "\" not recognised in WFT date"); if (words.length < 3) throw new MalformedDateException("Too few words in WFT date"); if (w...
5
String readFile(String fileName) { File file = new File(fileName); if (!file.exists()) fatalError("No such file '" + fileName + "'"); if (!file.canRead()) fatalError("Cannot open file '" + fileName + "'"); return Gpr.readFile(fileName); }
2
public void stop() { try { safeClose(myServerSocket); closeAllConnections(); myThread.join(); } catch (Exception e) { e.printStackTrace(); } }
1
public void updateTrackLabel(Track t) { String result = ""; String s; if ((s = t.get("title")) == null) s = "Unknown"; result += s + " - "; if ((s = t.get("artist")) == null) s = "Unknown"; result += s + " - "; if ((s = t.get("album")) == ...
3
public void decode(final CachedInputStream pool) throws IOException { final InputStream input = (CachedInputStream)pool.clone(); // Make sure that everything is clear pmap.clear(); // Code version int version = input.read(); if((version & 0x7f) != DJVUPALETTEVERSION) { throw n...
8
@Override public JSONObject main(Map<String, String> params, Session session) throws Exception { JSONObject rtn = new JSONObject(); User activeUser = User.findById(session.getActiveUserId()); if(!activeUser.isRemoving()) { rtn.put("rtnCode", this.getRtnCode(405)); return rtn; } session.setActiveU...
1
public void setCarTyp(CarType value) { this._carType = value; }
0
public void endAudioChat(String chat){ AudioThread thread = audioRooms.get(chat); if (thread==null) return; Scanner scanner = new Scanner(chat); String sender = scanner.next(); String target = scanner.next(); ChatServerThread senderThread = users.get(sender).getThread(); if (senderThread...
3
public void run() { Query query = new Query("p", new Term[] { new Atom("a"), new Atom("a") }); for (int i = 0; i < 10; ++i) { try { query.hasSolution(); } catch (JPLException e) { System.out.println("Threaded p(a, a) threw exception: " + e); System.exit(1); } System.out.print(id_); ...
5
public static Clustering kMeans(Cluster[] centers, List<? extends Cluster> data) { int k = centers.length; int dimensions = centers[0].getCenter().length; ArrayList<ArrayList<Cluster>> clustering = new ArrayList<ArrayList<Cluster>>(); for (int i = 0; i < k; i++) { ...
7
@Override public void execute(DebuggerVirtualMachine dvm) { dvm.executionFinished(); }
0
public ArrayList<Gebruiker> getAlleGebruikersDB() { ArrayList<Gebruiker> alleGebruikersDB = new ArrayList<Gebruiker>(); try { this.leesDatabase(); output = statement.executeQuery("SELECT * FROM gebruiker "); while (output.next()){ int rol_id = output.getInt("rol_id"); String naam = output.getStrin...
2
public void parseProcessState(ProcessState s) { int exitCode = s.exitCode; if (exitCode != 0 && !expectExit) { JOptionPane.showMessageDialog(this, "Launched game process unexpectedly exited with code: " + exitCode, "Process died", JOptionPane.ERROR_MESSAGE); } btnLaunch.set...
2
@EventHandler public void postLoad(FMLPostInitializationEvent event) { }
0
@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 User)) { return false; } User other = (User) object; if ((this.userID == null && other.userID != null) || (this...
5
@Override public void mark(int boardPosition, Cell[] cellBoard, int rows, int columns) throws IllegalMark { //Find the row. int boardPositionRow = boardPosition / columns; //Find the column. int boardPositionColumn = boardPosition % columns; //Position to ma...
2
private void displayNeuronBrief(){ ArrayList<Node> neurons=new ArrayList<>(); for(int i=0;i<currentNetwork.getNeurons().size();i++) neurons.add(currentNetwork.getNeurons().get(i)); neurons=Node.sort(neurons); for(int i=0;i<neurons.size();i++){ Neuron neuron=(Neuro...
7
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { Player player = null; if (sender instanceof Player) { player = (Player) sender; } if (args.length == 0) { if (player == null) { sender.sendMessage(ChatColor.GOLD+"[ SimpleMail "+plugin.ge...
7
public static String indexToOptionID(int index) { String optionId = null; switch (index) { case 1: optionId = GRE_OPTION_A; break; case 2: optionId = GRE_OPTION_B; break; case 3: optionId = GRE_OPTION_C; break; case 4: optionId = GRE_OPTION_D; break; case 5: optionId = GRE_OPTIO...
5
@Override public void receivedObject(POWMessage m, Connection c) { alreadyRequested.remove(m.getInventoryVector()); if (datastore.put(m)) { for (Connection con : connections) { if (con != c) { con.advertiseObject(m.getInventoryVector()); } } if (m.getCommand().equals(MsgMessage.COMMAND)) { ...
4
public T getSecond() { return second; }
0
public TreeIterator(TreeElement<TreeValue> place) { if (place != null) { this.place = place; this.way = new Stack<>(); this.way.push(place.getValue(), place.getId(), place.getLeftSon(), place.getRightSon()); } }
1
@SuppressWarnings("unchecked") private void getEvidenceList(String actionType) { titleDLM.removeAllElements(); evidenceResultList = evidence.getEvideces(fileName, actionType, teamType); if (evidenceResultList.size() != 0) { for (int i = 0; i < evidenceResultList.size(); i++) { titleDLM.addElement(evidence...
9
void hookExampleWidgetListeners () { if (logging) { Widget[] widgets = getExampleWidgets (); for (int i = 0; i < widgets.length; i++) { hookListeners (widgets [i]); } Item[] exampleItems = getExampleWidgetItems (); for (int i = 0; i < exampleItems.length; i++) { hookListeners (exampleItems [i])...
5
private String getXMLValue() { FileInputStream fis = null; String value = ""; try { fis = new FileInputStream(new File("D:/xml.xml")); Properties prop = new Properties(); prop.loadFromXML(fis); value = prop.getProperty("foo"); }...
3
public void copyNewKeysToDisk(String fileName){ InputStream in = plugin.getResource(fileName); if (in == null)//File isn't in our jar, exit. return; //Load the stream to a ymlconfig object. YamlConfiguration locales = new YamlConfiguration(); try { locales.load(in); } catch (IOException e1) {e1.pr...
7
@Override Integer deleteEntity(Criteria criteria, AbstractDao dao) throws DaoException { criteria.addParam(DAO_DIRECTION_STATUS, DELETED); Integer res = updateDirection(criteria, dao); List<Direction> list = getEntity(criteria, dao); for (Direction d : list) { List<Tour> ...
2
public static byte[] gzip(String input) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); GZIPOutputStream gzos = null; try { gzos = new GZIPOutputStream(baos); gzos.write(input.getBytes("UTF-8")); } catch (IOException e) { e.printStackTrace(); } finally { if (gzos != null) try { ...
3
@Override public boolean equivalent(Type that) { if (!(that instanceof TypeList)) return false; List<Type> olist = ((TypeList)that).list; if (list.size() != olist.size()) return false; for (int i=0; i<list.size(); ++i) { ...
4
public void test_getMillis_long_long() { assertEquals(0L, iField.getMillis(0L, 567L)); assertEquals(1234000L, iField.getMillis(1234L, 567L)); assertEquals(-1234000L, iField.getMillis(-1234L, 567L)); try { iField.getMillis(LONG_MAX, 567L); fail(); } catch (...
1
private static WebDriver createLocalDriver(Capabilities capabilities) { String browserType = capabilities.getBrowserName(); if (browserType.equals("firefox")) return new FirefoxDriver(capabilities); if (browserType.startsWith("internet explorer")) return new InternetExplorerDriver(capabilities); if (brows...
4
public NNetwork(IActivationFunction function, int ... layers) throws NNException { if (layers.length < 2) { throw new NNException("A neural network must have at least 2 layers."); } inputLayer = new ArrayList<>(layers[0]); outputLayer = new ArrayList<>(layers[layers.length - 1]); midLayers = new ArrayList<...
5
private void btnBuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarActionPerformed // TODO add your handling code here: String busqueda = tfBusqueda.getText(); boolean esDigito = StringValidation.validaDigitos(busqueda); boolean esCorreo = StringValidation....
5
public Grid getGrid() { boolean test = false; if (test || m_test) { System.out.println("Game :: getGrid() BEGIN"); } if (test || m_test) { System.out.println("Game :: getGrid() END"); } return m_grid; }
4
public static void initalize(String[] args){ if(args.length == 0){ printUsage(); Zegana.quit = true; return; } Zegana.parseArguements(args); if(Zegana.verbose) System.out.println("Reading card list"); Zegana.readCards("Zegana/standard.txt"); Zegana.currentGen = new Deck[genSize]; if(Z...
7
public static ArrayList<MstxImage> getMstxImageList(int mid) { ArrayList<MstxImage> result = new ArrayList<MstxImage>(); Connection con = DBUtil.getConnection(); PreparedStatement pstmt = null; ResultSet rs = null; try { pstmt = con.prepareStatement("select * from mstx_image where mid=?"); pstmt.setInt(...
8
public boolean contains(int datum) { return indexOf(datum) >= 0; }
0
public boolean inCut(int v) { return marked[v]; }
0
public double getDirectionAngleChange(){ double sum = 0; long preX = mousePointer.getXpix(), preY = mousePointer.getYpix(); double preAngle=0,a,da; boolean isFirst = true; if (0 == mouseMoves.size()) return 0; int index = noSkipFirstPoint()?0:1; MouseMove mouseMove; for (;index<mouseMoves.size();index++...
7
public Pawn getNextPawn() { if (pawns.size() == 1) { currentPawn = pawns.get(0); return pawns.get(0); } else { final Pawn result = currentPawn; currentPawn = this.pawns.get((this.pawns.indexOf( currentP...
1
private static String skipToNextChild(String s) { int idx; int nest; idx = 0; if (!s.contains(")")) return (null); else if (!s.startsWith("(")) { while (s.charAt(idx) != '(') idx++; return (s.substring(idx)); } else { nest = 0; while (s.charAt(idx) != ')' || nest > 1) { i...
9
@Override public void run() { long time = System.currentTimeMillis(); while(System.currentTimeMillis()-time<80){} animation = type.checkAnimationState(prevAnimation); prevAnimation = animation; }
1
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof PlayerDetailsMessage)) return false; PlayerDetailsMessage that = (PlayerDetailsMessage) o; return !(playerName != null ? !playerName.equals(that.playerName) : that.playerName != null); }
3
public Blob2D deletePointBefore(int k) { int n = points.length; if (n < 4) return this; float[] x = new float[n - 1]; float[] y = new float[n - 1]; if (k > 0 && k < n) { for (int i = 0; i < k; i++) { x[i] = points[i].x; y[i] = points[i].y; } for (int i = k + 1; i < n; i++) { x[i - 1] =...
7
@Override public void processDraw(Graphics g, ImageObserver imgObserver, boolean isEnterSub) { // 背景画像 g.drawImage( _model.getBg(), 0, 0, imgObserver ); // 背景ブロック描画 for ( int i = 0, len = _model.getBgBlockPos().size(); i < len; i++ ) { List< Integer > pos = _model.getBgBlockPos().get( i ); g.drawIm...
6
public void draw(Graphics2D canvas) { for (GameObject object : inactiveObjects) { if (is(TraceFlag.DRAWS)) { System.out.println("\tdraw inactive object: " + object.getID()); } object.draw(canvas); } for (GameObject object : activeObjects) { if (is(TraceFlag.DRAWS)) { System.out.println("\tdraw...
4
@Subscribe public void packChange(PackChangeEvent evt) { final PackChangeEvent event = evt; SwingUtilities.invokeLater(new Runnable() { public void run() { if (event.getType() == PackChangeEvent.TYPE.ADD) { boolean doneWork = false; ...
7
public void keyPressed(int k) { if(player.getMovable()){ if(k == KeyEvent.VK_LEFT) player.setLeft(true); if(k == KeyEvent.VK_RIGHT) player.setRight(true); if(k == KeyEvent.VK_W) player.setJumping(true); if(k == KeyEvent.VK_R) player.setScratching(); if(k == KeyEvent.VK_F) player.setFiring(); } }
6
boolean calc(GtexExperiment gtexExperiment) { boolean changed = true; int iteration; if (verbose) System.err.print(gtexExperiment.getTissueTypeDetail() + "\t"); for (iteration = 0; changed && iteration < MAX_ITERATIONS; iteration++) { changed = false; HashSet<Entity> done = new HashSet<Entity>(); for...
7
public static int getPlantAmount(int plantType) { if (plantType == GREEN_PLANT) { return GREEN_PLANT_AMOUNT; } if (plantType == RED_PLANT) { return RED_PLANT_AMOUNT; } if (plantType == YELLOW_PLANT) { return YELLOW_PLANT_AMOUNT; } if (plantType == MAGENTA_PLANT) { return MAGENTA_PLANT_AMOUNT;...
4
public void run(int nOfIterations){ int i = 0; while (i < nOfIterations){ i++; ArrayList <Chromosome> newPopulation; newPopulation = new ArrayList<Chromosome>(); for (Chromosome aSubject : population){ if (isTimeToMutate()) aSubject.mutate(); else { for(Chromosome aCouple : po...
9
public void renderPixel(int xp, int yp, int col, int alphaPercentage) { xp -= xOffset; yp -= yOffset; if (xp >= 0 || yp >= 0 || xp <= (width << Level.PDRX) || yp <= (height << Level.PDRY)) return; if (col != 0xFFFF00D0) pixels[xp + yp * width] = col; }
5
public void update(long deltaMs) { if(!messageQueue.isEmpty()) { messageQueue.peekFirst().update(deltaMs); if(messageQueue.peekFirst().finished()) { nextMessage(); } } }
2
protected void leftRotate(TreeNode<K, D> nd) { TreeNode<K, D> nd2 = nd.right; if (isNil(nd2)) { return; // do nothing } //turn nd2's left subtree into nd's right subtree nd.right = nd2.left; if (!isNil(nd2.left)) { nd2.left.parent = nd; } ...
4
public static void downclassifyOneDescription(LogicObject self) { { Object old$Classificationsession$000 = Logic.$CLASSIFICATIONSESSION$.get(); try { Native.setSpecial(Logic.$CLASSIFICATIONSESSION$, Logic.getClassificationSession(Logic.KWD_DESCRIPTION)); if (!LogicObject.downclassifiedP(self)...
7
@SuppressWarnings("unused") private static int find_card( int rank, int suit) { int i, c; for ( i = 0; i < 52; i++ ) { c = deck[i]; if ( ((c & suit) > 0) && (((c >> 8) & 0xF) == rank) ) return( i ); } return( -1 ); }
3
public Expr evaluate(IEvaluationContext context, Expr[] args) throws ExprException { assertArgCount(args, 3); Expr et = evalArg(context, args[0]); if (!isNumber(et)) return ExprError.VALUE; int trials = ((ExprNumber) et).intValue(); if (trials < 0) ...
8
@Override protected String getChildNodesXPath() { switch (variant) { case SIDEBAR: return SIDEBAR_CHILD_LINK; case CENTRAL_INDEX: return INDEX_CHILD_REF; } return null; }
2
public String getToken() { String retorno = this.getNumber(); if (retorno != null) { return retorno; } retorno = this.getString(); if (retorno != null) { return retorno; } if (this.getBegin() < this.getCad().length() && (this.getCad().charA...
5
private void quicksort(int low, int high) { incrementRekursionDepth(); int i = low, j = high; // comparison element // is median of the array values with highest, lowest and middle index int middle = (low + high) / 2; int comparisonElement; if (array[countStep(middle)] < array[countStep(high)] && arra...
9