text
stringlengths
14
410k
label
int32
0
9
private static KVArray ReadArrayData(String line) throws KVException, IOException { currentLine++; int startLine = currentLine; KVArray array = new KVArray(); if (!line.trim().equals("{")) { throw new KVException("Invalid array starter on line " + currentLine); } while (true) { line = reader.re...
5
public WumpusPerception eventShoot(AID hunterAID) { Hunter hunter = getHunter(hunterAID); int xCoord = hunter.getxCoord(); int yCoord = hunter.getyCoord(); int xDir = hunter.getxDirection(); int yDir = hunter.getyDirection(); WumpusPerception perception = getPerception(worldMap[xCoord][yCoord]); ...
7
public static void grindItem(final Client c, final int itemUsed, final int usedWith, final int itemSlot) { if (isSkilling[15] == true) { return; } c.startAnimation(364); final int itemId = (itemUsed == 233 ? usedWith : itemUsed); for (int i = 0; i < GRINDABLES.length; i++) { if (itemId == GRINDABLES[i][...
5
private void btnExcluirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExcluirActionPerformed Usuario usuario = new Usuario(); int codGerente = Integer.parseInt(txtCodigo.getText()); usuario.setIdUsuario(codGerente); usuario.setTipo("Encarregado"); //Cria...
2
@Override public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e) { e.getChannel().write(_event); }
0
private void calculate(Territory t) { if (fromTerrit == null && t.owner != activePlayer) return; if (fromTerrit == null || t.owner == activePlayer) { if (t.units == 1) { error("Cannot attack with only 1 troop!"); return; } if (fromTerrit != null) fromTerrit.unhilite(); fromTerrit = t; ...
7
public void execute ( T event ) throws Exception { if ( event == null ) throw new IllegalArgumentException ( "The event received is null" ) ; String [] names = nameMask.get ( event.getType () ); /** * If names is null it means that the handler should react to all the event...
5
public klasse elementAt (int n) { if (n<0 || n>=ON) throw new ArrayIndexOutOfBoundsException(n); if (Gap<0 || n<Gap) return O[n]; int k=Gap; for (int i=Gap; i<OLast; i++) { if (O[i]==null) continue; O[k]=O[i]; O[i]=null; if (k==n) { klasse ret=O[k]; k++; Gap=k; if (Gap>=ON) { for (int j...
9
@Override public boolean getOutput() { for (int j = 0; j < getNumInputs(); j++) if (getInput(j)) return false; return true; }
2
public void run(){ String line; try{ is = new DataInputStream(socket.getInputStream()); os = new PrintStream(socket.getOutputStream()); SimpleSet temp = new SimpleSet();temp.put("connected", "true"); composeResponse(temp,os); while (true) { line = is.rea...
5
public void lireNiveau(String nomTxt) throws Exception{ BufferedReader FichierEntree; String sLine; FichierEntree = new BufferedReader(new FileReader(nomTxt)); sLine = FichierEntree.readLine(); while(sLine != null){ if(sLine.charAt(0) == 's'){ listPosStructures.add(sLine.substring(1).split(":")); } ...
3
public String getStreamTitle() { return streamTitle; }
0
public CycConstant readCompleteConstant() throws IOException { CycConstant cycConstant = null; Object idObject = readObject(); if (idObject instanceof Guid) { final Guid guid = (Guid) idObject; final String name = (String) readObject(); cycConstant = CycObjectFactory.getCycConst...
5
public game() { super("game"); }
0
public void setUnprocessedInput(String input) { myUnprocessedInput = input; }
0
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final TipoEndereco other = (TipoEndereco) obj; if (this.idTipoEndereco != other.idTipoEndereco && (this.idTipoE...
5
private void deplacementPetit(int i,Tour depart, Tour arrivee, Tour intermediaire) { // TODO Auto-generated method stub switch(i%3){ case 0 : deplacer(depart,intermediaire); break; case 1 : deplacer(intermediaire,arrivee); ...
3
private void saveMenuButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveMenuButtonActionPerformed String s = ""; int[][] theGrid = gridToArray(); for(int i=0; i<9; i++){ for(int j=0; j<9; j++){ s+=theGrid[j][i]; } if(i...
7
public Path clone() { Path path = new Path(); for (int i = 0; i < size(); i++) { path.add(get(i).clone()); } return path; }
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
public void paint(Graphics g) { //the objects created above are made clickable with the mouseClicked method super.paint(g); final Graphics2D g2d = (Graphics2D) g; g2d.setColor(Color.white); g2d.drawImage(MenuBG, 0, 0, this); g2d.setFont(new Font("Courier", Font.BOLD, 30))...
9
public static boolean isFrozen(String player) { if (Bukkit.getPlayer(player) == null) { if(isJailed(player) && JailrPlugin.getPlugin().getConfig().getBoolean("auto-freeze")) { return true; } return false; } else { Player playerObject = Bukkit.getPla...
7
public static Medicament selectOnebyID(EntityManager em, String depotlegal) throws PersistenceException { Medicament unMedicament = null; unMedicament = em.find(Medicament.class, depotlegal); return unMedicament; }
0
void floyd(int rows) { for (int k = 0; k < rows; k++) for (int i = 0; i < rows; i++) for (int j = 0; j < rows; j++) if (d[i][j] > d[i][k] + d[k][j]) { d[i][j] = d[i][k] + d[k][j]; } }
4
private boolean logRotation() { try { if (position == 0) return false; BufferedReader in = new BufferedReader(new InputStreamReader( new FileInputStream(logFilePath))); ZipOutputStream out = new ZipOutputStream(new FileOutputStream( archiveFileName)); out.putNextEntry(new ZipEntry(identifier...
6
@Override public T pop() { if (firstElement == null) { return null; } T value = firstElement.value; firstElement = firstElement.getNext(); return value; }
1
public void addToNode(int key, ValueType value) { for (int i = 0; i < this.keyAmount; i++) { } }
1
public String resolveJvmClassName(String jvmName) throws CompileError { if (jvmName == null) return null; else return javaToJvmName(lookupClassByJvmName(jvmName).getName()); }
1
public static ArrayList<Quiz> getPopularQuiz() { ArrayList<QuizCreatedRecord> records = QuizCreatedRecord.getRecentQuizCreatedRecord(); ArrayList<Quiz> quizList = new ArrayList<Quiz>(); for (int i = 0; i < records.size(); i++) { quizList.add(records.get(i).quiz); } Collections.sort(quizList, new QuizSortBy...
1
protected void onQuit(String sourceNick, String sourceLogin, String sourceHostname, String reason) {}
0
public Norm containsNormBeliefDiferent(Belief blf, NormType nt) { for ( Norm norm: getAllRestrictNorms().values() ) { Belief b = norm.getNormResource().getBelief(); if ( b!=null && !b.getName().equalsIgnoreCase(blf.getName()) && norm.getNormType() == nt && norm.isActive() ) { return norm; } } ...
5
private void setStatus(String status) { int index = 0; int indexStatus = -1; System.out.print(this.getClass()); System.out.print(".setStatus: "); System.out.println(status); //evitar item duplicado while(index < cmbStatusDisciplina.getItemCount()...
5
Ray[] getCameraRays(int resX,int resY){ Ray[] rays=new Ray[resX*resY]; float vectors[][]=new float[resX*resY][3];//first vector index, second the components of the vector float[] vect2=rotateYVector(dir); vect2[1]=0; vect2=normalize(vect2); float[] vect3=normalize(vectorP...
9
public void setExportOnlyColumns(final String[] exportOnlyColumns) { if (exportOnlyColumns != null) { this.exportOnlyColumns = exportOnlyColumns.clone(); } else { this.exportOnlyColumns = null; } }
1
void readCdsFileTxt() { // Load file String cdsData = Gpr.readFile(cdsFile); String cdsLines[] = cdsData.split("\n"); // Parse each line int lineNum = 1; for (String cdsLine : cdsLines) { // Split tab separated fields String field[] = cdsLine.split("\\s+"); // Parse fields if (field.length >= ...
4
public static final String firstSegment(String segment) { segment = clean(segment); Matcher segmentEndsInArrayMatcher = ARRAY_SYNTAX.matcher(segment); Matcher isArrayIndexMatcher = ARRAY_SYNTAX_PATTERN.matcher(segment); if(segmentEndsInArrayMatcher.matches()){ //my[0].dotted ...
3
public static void main(String[] args) { // ---------------------------------------------------------------------- // initialize TF hardware // ---------------------------------------------------------------------- while(true) { try { // try to connect ipcon.con...
8
protected int getFoodLevel() { return foodLevel; }
0
public final String parseToString() { String str = "Systemtelegramm Datenverteileranmeldelisten Aktuallisierung:\n"; str += "Lieferant Datenverteiler-Id: " + transmitterId + "\n"; str += "Änderungen Flage: " + delta + "\n"; if(objectsToAdd != null) { str += "Hinzugekommende Objekte: [ "; for(int i = 0; i ...
8
public double factorial(double n){ double result=0; if(n==0 || n==1) return 1; else return n * factorial(n-1); }
2
public void save() { try { sql.Query.save(this); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } }
2
public boolean teleport() { if (Players.getLocal().getAnimation() == -1) { Timer wait = new Timer(1); final WidgetChild TELEPORT_TAB = Widgets.get(275, 46); if (Tabs.ABILITY_BOOK.open() && !TELEPORT_TAB.visible()) { WidgetChild magicTabButton = Widgets.get(275...
8
private void buildGameArrays(){ byte[] allGames = GameFactory.getAllGameIds(); byte[] stanGames = GameFactory.getAllBuiltInGameIds(); // Get the active games activeGames = GameFactory.getActiveGameIds(); // Build the built in games array builtInGames = ...
8
public static boolean isValid(String string) { // remove non-parentheses String temp = ""; for (int i = 0; i < string.length(); i++) { if (string.charAt(i) == '(' || string.charAt(i) == ')' ) { temp += string.charAt(i); } } string = temp; int count = 0; int index = 0; char[] array = string....
9
private static void allianceTest(ArrayList<Kill> kills, String name) { ArrayList<Kill> commonList = killStats.Stats.compairEntityKill(kills, name); Kill latestLoss = new Kill(); latestLoss.setKillTime(new GregorianCalendar(0, 0, 0, 0, 0, 0)); for (Kill k : commonList) { if (k.getVictim().getPilot().getC...
3
public void setProvincia(String provincia) { this.provincia = provincia; }
0
@Override public void search(Board board, Writer out) { open = Queues.newPriorityQueue(); open.add(board); while (!open.isEmpty()) { Board top = open.remove(); if (top.isComplete()) { write(out, top.getMoves().toString()); return; } closed.add(top...
8
private static int partition(Comparable[] array, int low, int high) { int i = low; int j = high + 1; Comparable element = array[low]; while(true) { while(array[++i].compareTo(element) < 0) { if(i == high) break; } while(element.compar...
6
private void handleSpellChecking(){ this.controller.onMenuItemPressed(new MenuPressedEventArgs(this.spellCheckMenuItem)); if (this.spellCheckMenuItem.getText() == Constants.SpellCheckOffText){ this.spellCheckMenuItem.setText(Constants.SpellCheckOnText); } else{ this.spellCheckMenuItem.setText(Constants.Sp...
1
public void actionEditFile() { // use the environment? if (!Joculus.settings.editor_use_env) { // use the user-specified editor (if it was specified). File f = new File(Joculus.settings.editor_path); if (!f.exists() || !f.canExecute()) { Joculus.showE...
8
public Square(Type type) { this.type = type; this.setTypeNumber(); this.setColors(); }
0
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; TestClass2 other = (TestClass2) obj; if (mapOfJustice == null) { if (other.mapOfJustice != null) return false; } else if (!mapOfJustice....
9
private void shrink(int extra, int[] values, int[] min) { int count = 1 + (values.length - 1) / 2; int[] tv = new int[count]; int[] tm = new int[count]; for (int i = 0; i < count; i++) { tv[i] = values[i * 2]; tm[i] = min[i * 2]; } extra = distribute(-extra, tv, tm); for (int i = 0; i < count; i++) ...
9
public boolean firesBullet() { if (firingBullet == true) { firingBullet = false; return true; } return false; }
1
public static void main(String[] args) { Registry registry = null; try { registry = LocateRegistry.createRegistry(Registry.REGISTRY_PORT); //registry = LocateRegistry.getRegistry(); } catch (RemoteException rex) { System.err.println("RemoteException occ...
4
@Override public int compare(Genotipo o1, Genotipo o2) { int m = 1; if(mode==ComparasionMode.Maximize) { m = -1; } double r1 = Double.NaN; double r2 = Double.NaN; switch(compMode) { case ByValue: r1 = o1.getFitnessV...
3
@Override public void draw() { glPushMatrix(); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); if(alpha>0) { if(mouseOver&&!clicked) { int os = 3; glColor4f(cRed, cGreen, cBlue, alpha); //Bottom glBegin(GL_QUADS); glVertex2f(xpos, ypos); glVertex2f(xpo...
4
private int transfereTo( ByteBuffer from, ByteBuffer to ) { int fremain = from.remaining(); int toremain = to.remaining(); if( fremain > toremain ) { // FIXME there should be a more efficient transfer method int limit = Math.min( fremain, toremain ); for( int i = 0 ; i < limit ; i++ ) { to.put( from....
2
public int getTotalBlocksBroken(String playerName) { int totalBlocksBroken = 0; try { ResultSet rs = _sqLite.query("SELECT total(blocks_broken) " + "AS total_blocks_broken " + "FROM player, login " + "WHERE player.playername = '" + playerName + "' " + "AND player.i...
3
public static void printSum(long[][] ins){ for (int i = 0; i < ins.length; i++) { if (ins[i][0] > 0 && ins[i][1] > 0 && ins[i][0] > Integer.MAX_VALUE - ins[i][1]){ System.out.printf("Case #%d: %s\n",i, true); } if (ins[i][0] < 0 && ins[i][1] < 0 && ins[i][0] <...
8
public void draw(Graphics2D g, Color color) { drawHandle(g); if (ndFrom == null || ndTo == null || ndTo.getFrom() == null) { drawLine(g, from.getXY(), from.getDirectP()); drawLine(g, to.getDirectP(), to.getXY()); drawLine(g, from.getDirectP(), to.getDirectP()); return; } drawLine(g, from.getXY(), fr...
7
public Flight[] generateFlights() { Flight[] flightList = new Flight[fecthFlightsList().length]; for (int i = 0; i < fecthFlightsList().length; i++) { flightList[i] = new Flight(fecthFlightsList()[i]); } return flightList; }
1
public void changeAnimation(StateActor state){ this.reset(); switch (state){ case UP : nbSprites=7; currentSprite = up; break; case DOWN : nbSprites=7; currentSprite = down; break; case LEFT : nbSprites=7; currentSprite = left; break; case RIGHT : nbSprites=7; currentS...
8
public void add(Item item) { if (item == null) throw new IllegalArgumentException("Item can't be null!"); if (items.size() >= maxItems) throw new IllegalArgumentException("The inventory is already full!"); if (items.contains(item)) throw new IllegalArgumentException("The item is already in the inventory!...
3
public void setDestinationEnd(int value) { this._destinationEnd = value; }
0
@SuppressWarnings("unused") @Override public void run() { URL url = null; String data = null; long startTime = 0; HttpURLConnection conn = null; //String urlParameters = "key=" + Minetrends.publicKey + "&data=" + Minetrends.getData(); String urlParameters = "APIVersion=" + Minetrends.apiVersion + "&act...
8
@Test public void shouldReverseString() { assertEquals("esreveR", Reverser.reverse("Reverse")); }
0
private boolean searchUpForPrevIntersectionNode( Node node, K key, Object[] ret ) { if( node.mLeft != null && mComp.compareMinToMax( key, node.mLeft.mMaxStop.mKey ) < 0 ) { // Request download search on left node. ret[0] = node.mLeft; return false; } while( n...
8
public void sortBU(T[] a, T[] aux, int left, int right) { // Do lg N passes for (int n = 1; n < right - left + 1; n = n + n) {// n is the subarray size // i < N - n. The number of elements from position lo must be // greater than the subarray size so that a split can occur...
2
@Override public void windowClosing(WindowEvent arg0) { programExit = true; int option = saveConfirmation(); if (option == JOptionPane.CANCEL_OPTION) programExit =false; else if (option == JOptionPane.YES_OPTION) ; else if (option == JOptionPane.NO_OPTION) System.exit(0); }
3
public static boolean isValidReservationLine(String aCsvColumnHeaderLine, String aCsvReservationLine) { List<String> headerDescriptionList; List<String> reservationLineList; // 1) place reservation line in an object that we can traverse through headerDescriptionList = Arrays.asList(aCsvColumnHeaderLine.sp...
9
public CommandContext(CommandSender sender, Command cmd, String alias, String[] theargs, ACommand annot_) { this.sender = sender; this.command = cmd; this.alias = alias; this.originalArgs = theargs; this.annot = annot_; this.flags = new HashSet<String>(); ArrayList<String> argv = new ArrayList<String>(...
7
private static double calculateCoefficient(int[] dist, int userID) { // /////////////////////////////////////////////////////////////////////// // Dead ratings // double deadCount = 0; // for (int i = 0; i < dist.length; i++) { // if(dist[i] == 0){ // deadCount++; // } // // } // return deadCount;...
7
@Override public boolean isOver() { // TODO: Think of a better way to do this. return Math.abs(unit.getIntX() - destination.x) <= tol && Math.abs(unit.getIntY() - destination.y) <= tol; }
1
public static List<PlageHoraire> lireLivraison(String fichierEntree, ZoneGeographique zone) throws ParseurException{ List<PlageHoraire> plageList = new ArrayList<PlageHoraire>(); SAXBuilder builder = new SAXBuilder(); FileInputStream inputStream; try { inputStream = new FileI...
8
public static void main(String[] args) { File f = new File("."); File[] files = f.listFiles(); for (File file : files) { if(file.isDirectory()){ System.out.print("Directory : "); } else if(file.isFile()) { System.out.pri...
3
@Override int trimIndex(Fastq fastq) { int qual[] = FastqTools.qualtityArray(fastq); int i; for( i = 0; i < qual.length - runningMedianLength; i += 2 ) { // Sorted list of qualities LinkedList<Integer> list = new LinkedList<Integer>(); for( int k = 1; k <= runningMedianLength; k++ ) list.add(qual[...
5
public void awaitsLISTanswer() { try { int buffersize = 0; // If data are available if ((buffersize = dSocket.getDataSocketInput().available()) != 0) { int counter; byte buffer[] = new byte[buffersize]; // while data are available -> read into buffer System.out.println("< Data from Se...
3
public static void main(String[] args) throws Exception { List<Classifier> classifiers = new ArrayList<Classifier>(); //classifiers.add(new J48()); //classifiers.add(new NaiveBayes()); LibSVM svm = new LibSVM(); svm.setOptions(new String[] { "-B" }); //classifiers.add(svm); BayesNet bayesnet = new BayesNe...
7
public static int getIndexOf(Container parent, Component child) { if (parent != null) { int count = parent.getComponentCount(); for (int i = 0; i < count; i++) { if (child == parent.getComponent(i)) { return i; } } } return -1; }
3
private boolean matchHeadChild(PhraseStructureNode child, PrioSetMember member) throws MaltChainedException { if (child instanceof NonTerminalNode && member.getTable().getName().equals("CAT") && member.getSymbolCode() == child.getLabelCode(member.getTable())) { return true; } else if (member.getTable().getName()...
8
private void diffOffering(ArrayList<Change> list, OffRec rec, HashMap<String, Object> map) { OffRec inc = makeOffering(map); if (inc.getStart() != null) { if (!inc.getStart().equals(rec.getStart())) list.add(OfferingChange.setStart(rec, inc.getStart())); } if (inc.getDuration() != rec.getDuration()) ...
3
public boolean isCompleteMatch(List<Character> currentMatching) { if(currentMatching.isEmpty()) return false; if(currentMatching.get(0) != KeyMappingProfile.ESC_CODE) return false; String asString = ""; for(int i = 1; i < currentMatching.size(); i++) ...
4
public PColorSpace getColorSpace(Object o) { if (o == null) { return null; } Object tmp; // every resource has a color space entry and o can be tmp in it. if (colorspaces != null && colorspaces.get(o) != null) { tmp = colorspaces.get(o); PCol...
8
public void paint(Graphics2D g) { Color oldColor = g.getColor(); Stroke oldStroke = g.getStroke(); if (rotation != 0) { g.rotate(rotation, x, y); } g.setColor(color); float x1 = x - length * 0.5f; float x2 = x + length * 0.5f; if (line == null) line = new Line2D.Float(); if (drawAxis) { g...
8
private ArrayList<AbstractPlay> getBestPlays(){ ArrayList<AbstractPlay> result = new ArrayList<AbstractPlay>(); int bestEvaluation=-100; for(AbstractPlay play:everyPlay){ int evaluation = play.eatNumber(); if(evaluation>=bestEvaluation){ if (evaluation != bestEvaluation) result.clear(); ...
3
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; HotelInfo other = (HotelInfo) obj; if (hotelID == null) { if (other.hotelID != null) return false; } else if (!hotelID.equals(other.hotelID)) re...
6
public void run() { if(this.command.equals(GET_MOVIES)) { getMovies(); } else if(this.command.equals(PLAY_MOVIE)) { this.player.setVisible(true); playMovie(); } else if(this.command.equals(PAUSE_MEDIA)) { pauseMovie(); } else if(this.command.equals(NEXT_CHAPTER)) { nextChapter(); ...
8
public void recevoir (Information <Float> information) { informationRecue = information; if (information.iemeElement(0) instanceof Float) { int nbElements = information.nbElements(); float [] table = new float[nbElements]; for (int i = 0; i < nbElements; i++) { ...
5
private static int R_Q_P01_check( int p, boolean log_p ) { if( (log_p && (p > 0)) || (!log_p && ((p < 0) || (p > 1))) ) { return 0; } return 1; }
5
@EventHandler public void onCommandPreprocess(PlayerCommandPreprocessEvent event) { if (event.getMessage().equalsIgnoreCase("/chat reload") && CatChat.hasPerms(event.getPlayer(), "catchat.admin")) { plugin.reloadConfig(); plugin.loadConfig(); System.out.println("Chat Reloaded"); event.getPlayer().sendMes...
2
public static void main(String[] args) throws Exception { new HelloWorldSoftware().loop(); }
0
private void setMofNQuest(ChoiceQuest quest, ArrayList<String> answerList, ArrayList<Boolean> answerListBool) { quest.setQuestAnswer(answerList, answerListBool); }
0
public void update(Observable obs, Object o) { if(o instanceof String){ prepareNextTextMessage(((String)o));//looks weird ack_buffer.addAll(members.subList(0, members.size()));//add expected acknowledgements from all the users of members. timer.start(); sender.wakeUp(); } if(o instanceof WindowEven...
8
public void setUnit(int x, int y, Unit u) { grid[x][y].setUnit(u); }
0
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof XYShapeRenderer)) { return false; } XYShapeRenderer that = (XYShapeRenderer) obj; if (!this.paintScale.equals(that.paintScale)) { r...
9
@Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Object result = null; try { result = method.invoke(target, args); logger.info(method.getName()); } catch (IllegalAccessException ex) { String output = ""; for (int i = 0; i ...
4
public boolean VerificarUsuarioESenha(String usuario, String senha){ List<Usuario> ListaDeUsuario = new LinkedList<Usuario>(); ListaDeUsuario = controller.findUsuarioEntities(); for (Usuario user : ListaDeUsuario){ if(user.getUsuario().equals(usuario) && user.getSe...
3
public void addSmses(String smes) { if (this.smses == null) { this.smses = new ArrayList<String>(); this.smses.add(smes); } else this.smses.add(smes); }
1
public static void back(int size, int used, String path) { if (size == 0 && used != 2) { if (primes[1 + ring[sizeRing - 1]]) out.append(path.substring(1) + "\n"); return; } for (int i = 2; i <= sizeRing; i++) if ((used & (1 << i)) == 0 && primes[ring[size - 1] + i]) { ring[size] = i; back((si...
6