text
stringlengths
14
410k
label
int32
0
9
public boolean levelUp() { if(this.experience >= this.cap) { this.setCap(this.cap * 2); this.setLevel(this.level++); addStats(); return true; } return false; }
1
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { BookService bookService = (BookService) getServletContext().getAttribute("bookService");//呼叫service int booksCount = bookService.getBooksCount();//...
2
public void update(long deltaMs) { if(Application.get().getLogic().getActor(weaponID) == null) { weaponID = NO_WEAPON; } }
1
@Test public void testCalculateRewardPoints() { this.card2.makePurchase(100); this.card2.makePurchase(100); this.card2.makePurchase(100); this.card2.makePurchase(100); assertEquals(400, this.card2.calculateRewardPoints()); }
0
public String getMimeType() { return mimeType; }
0
public static String[] searchEmployee(Integer ID) { Database db = dbconnect(); String [] Array = null; try { String query = ("SELECT * FROM employee WHERE EID = ? AND bDeleted = 0"); db.prepare(query); db.bind_param(1, ID.toString()); ResultSet rs = db.execut...
2
public void render(boolean[] displaySegments){ GL11.glTranslatef(pos.x(), pos.y(), 0); texture.bind(); if(displaySegments[0]){ GL11.glTranslatef(0, -height/2, 0); renderSegment(width*0.6f, height*0.125f); GL11.glTranslatef(0, height/2, 0); } if(displaySegments[1]){ GL11.glTranslatef(width/2, -heig...
7
public static void run(Bot bot, String res, String sender, String s) { if (!sender.matches("(.*)[bB][oO][tT](.*)|(.*)Satoshi[DV]ICE(.*)")) { int now = (int) System.currentTimeMillis(); int threshold = now - intTime; intTime = now; if (threshold < 1200) { Logger.warn("Flood WARNING!"); //Sys...
7
@Override public void initialize(InputSplit arg0, TaskAttemptContext arg1) throws IOException, InterruptedException { try { reader = new PartitionReader(new OptimusConfiguration(((TRANSInputSplit)arg0).getConfDir())); } catch (WrongArgumentException e) { // TODO Auto-generated catch block e.printStackT...
5
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed modificarFrame.setVisible(false); }//GEN-LAST:event_jButton2ActionPerformed
0
public static void main(String[] args) { // 从控制台输入数字 System.out.println("请输入你要处理的数字:"); Scanner input = new Scanner(System.in); Long testObject = input.nextLong(); Handler handler = new HandlerImplOne(); String info = handler.dealWith(testObject); System.out.println(info); }
0
public void cancelEdit() { super.cancelEdit(); setTimeSpinners(); }
0
public Tag getTag(Component component) { return (Tag) componentTags.get(component); }
0
@Override public void run() { try { System.out.println("run it!"); input = getBufferedReader(client.getInputStream()); output = getPrintStream(client.getOutputStream()); System.out.println("Stream it!"); hello(user.getUsername(), Server.GLOBAL_SUPPORTS, "0.1"); System.out.println("Hands...
4
public void initCodeRedSchedule() { codeRedSchedule.clear(); for (Match match : matches){ if(match.searchFor(2771)){ codeRedSchedule.add(match); } } }
2
public RandomSkipIterator(IRandomAccessor2<T> accessor, int count) { this._accessor = accessor; this._pos = count; }
0
private static HashSet<Class<?>> getSupportedTypes() { HashSet<Class<?>> set = new HashSet<>(); set.add(String.class); set.add(Boolean.class); set.add(Integer.class); set.add(Double.class); set.add(Byte.class); set.add(Short.class); set.add(Long.class...
2
public static void square(double x, double y, double r) { if (r < 0) { throw new IllegalArgumentException("square side length must be nonnegative"); } double xs = scaleX(x); double ys = scaleY(y); double ws = factorX(2 * r); double hs = factorY(2 * r); ...
3
private static void bilinear(float p) { ImageData imageData = original.getImageData(); int[][] two1 = new int[imageData.height][imageData.width]; for (int i = 0; i < imageData.height; i++) { for (int j = 0; j < imageData.width; j++) { two1[i][j] = imageData.getPixel(j, i); } } int[] one1 = ImageUt...
4
@Override public RegisterUserResponse registerUser(String username, String password) { ArrayList<Pair<String,String>> requestHeaders = new ArrayList<Pair<String,String>>(); requestHeaders.add(new Pair<String,String>(CONTENT_TYPE_STR, APP_JSON_STR)); UserRequest loginRequest = new UserRequest(username, password);...
2
private void removeIcon(String icon) { for (Pair<String, Integer> pair : icons) { if (pair.getLeft().equals(icon)) { icons.remove(pair); break; } } for (Channel channel : getChannels()) { String remove = PacketCreator.removeIcon(channel.getName(), name, icon); for (Client target : chann...
4
private boolean createTable() { Connection conn = null; Statement s = null; ResultSet rs = null; try { conn = getConnection(); s = conn.createStatement(); s.executeUpdate(sqlMakeTable); try { // make sure `uuid` column exists, otherwise table is outdated and needs ...
8
private boolean purchase(ShopItem item, int amount) throws InterruptedException { final int oldID = item.getID(); validate(item.getSlot()); if (oldID != item.getID()) throw new RuntimeException("Inconsistent item! Required: " + oldID + ", but found: " + item.getID()); else if (item.getAmount() <= 0) re...
5
public static synchronized String[] getTwitchStreamList() { //TODO ensure these streams are loaded up via text file twitchStream.areStreamsUp(); ArrayList<String> streamList = TwitchStream.getStreamList(); //ids for stream ArrayList<String> streamName = TwitchStream.getStreamName(); //n...
8
private static void typeCheckCodeGenerator( SemanticAction node, String leftOrRight ) { switch ( node.getType() ) { case DEFINITION: if( !node.getName().equals("main") ){ } break; case PRINT: break; case INTEGER: break; } ...
4
public String getColumnName() { return name; }
0
public void RSAEncrypt(int length) throws RdesktopException { byte[] inr = new byte[length]; // int outlength = 0; BigInteger mod = null; BigInteger exp = null; BigInteger x = null; this.reverse(this.exponent); this.reverse(this.modulus); System.arraycopy(this.client_random, 0, inr, 0, length); this....
7
public void setSecond(T newValue) { second = newValue; }
0
static final synchronized void method1142(byte i) { anInt1913++; if (Class168.anObject2256 == null) { try { Class var_class = Class.forName("java.lang.management.ManagementFactory"); Method method = var_class.getDeclaredMethod("getPlatformMBeanServer", null); Object object = method.invo...
5
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (! (obj instanceof MessageContainer)) { return false; } MessageContainer other = (MessageContainer) obj; if (messageID != other.messageID) { return false; } return...
4
private static int decodeConnectionId(byte connectionId) { return (int) (connectionId < 0 ? connectionId - 2*Byte.MIN_VALUE : connectionId); }
1
public char charAt(int index) throws IndexOutOfBoundsException, NullPointerException { if(index < 0 || index > this.length() - 1) { throw new IndexOutOfBoundsException(); } if(this.head == null) { throw new NullPointerException(); } this.current = this.head; for(int i = 1; i <= index; i++)...
6
@Override public void run() { MailUtil.sendMailSynchron(subject, content, email, force); }
0
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed // TODO add your handling code here: try { String empleado = JOptionPane.showInputDialog("Confirmar"); String sql = "INSERT INTO ventas(Empleados_idEmplead...
4
public void usingEntrySet(Map<Integer, String> map){ for(Map.Entry<Integer, String> entry: map.entrySet()){ System.out.println("Key: "+entry.getKey()+" Value: "+entry.getValue()); } }
1
public void addTile(int tileX, int tileY, int tileType) { Tile tile = null; if(tileType == TileTypes.BASIC_WALL) { tile = new TileWall(tileX * Tile.TILE_SIZE, tileY * Tile.TILE_SIZE, true); } else if(tileType == TileTypes.PATH) { tile = new TilePath(tileX * Tile.TILE_SIZE, tileY * Tile.TILE_SIZE, fal...
3
public String getMethodrefClassName(int index) { MethodrefInfo minfo = (MethodrefInfo)getItem(index); if (minfo == null) return null; else return getClassInfo(minfo.classIndex); }
1
public Image getImageBytesAndContentTypeById(String id) { return imageTemplateRepository.getImageBytesAndContentTypeById(id); }
0
public static World GetWorld(String name) { if (Core.getPlugin().getServer().getWorld(name) == null) { LoadWorld(name); } return Core.getPlugin().getServer().getWorld(name); }
1
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true) public void onSignChange(SignChangeEvent event){ Player player = event.getPlayer(); if(isSignLine(event.getLine(0))) for(String s : signLines) if(event.getLine(0).equalsIgnoreCase(s)) { if(player.hasPermission("bank.sign.place")) { ...
4
private void calculateDimensions( int cWidth, int cHeight ) { // Calculate chart dimensions chartWidth = ( cWidth == 0 ? DEFAULT_WIDTH : cWidth ); chartHeight = ( cHeight == 0 ? DEFAULT_HEIGHT : cHeight ); if ( cWidth > 0 ) numPoints = cWidth; // Padding depends on grid visibility chart_lpadding = ...
8
public int getDiggingDepth(Item item) { if(item==null) return 1; switch(item.material()&RawMaterial.MATERIAL_MASK) { case RawMaterial.MATERIAL_METAL: case RawMaterial.MATERIAL_MITHRIL: case RawMaterial.MATERIAL_WOODEN: if(item.Name().toLowerCase().indexOf("shovel")>=0) return 5+item.phyStats().we...
9
public boolean setField(int maxField, int nodeID, int eventType, int startTime, int endTime) { // need to subtract by 1 since array starts at 0. if (nodeID > 0) { NODE_ID = nodeID - 1; } else throw new IllegalArgumentException("Invalid node id fi...
5
public UserDao getUserDao(){ if(userDao == null) userDao = new UserDaoImpl(); return userDao; }
1
public void goTop() { nNode = top; sRecno = 0; found = false; for(;;) { goNode(); readPage(); if(left_page>0) nNode=left_page; else { for(;;) { if(key_cnt>0 || right_page<0) break; nNode = right_page; goNode(); readPage(); } nKey = 0; if(LEAF) ...
6
@Override protected void resolveCollision(GameContext g, Collidable c, float percent) { // if (isDead) { // return; // } if (c instanceof DynamicPolygon) { DynamicPolygon d = (DynamicPolygon)c; // if (d.isDead) { // return; // } setCollisionPosition(percent); if (d.vertices != vertices) r...
3
public String toString() { try { return this.toJSON().toString(4); } catch (JSONException e) { return "Error"; } }
1
private static void point_search(finger_print fp) { // TODO Auto-generated method stub ArrayList<Integer> lst = new ArrayList<Integer>(); for (Integer fid : fp.feature_map.keySet()) { if (finger_print.invert_index.containsKey(fid)) { for (Integer potent : finger_print.invert_index.get(fid) .keySet()...
8
private void addHouse(Tile temp, Point position) { MapObject obj = new Building(temp, sfap.objSize, this.TILE_SIZE, position, 0); if (Collision.noCollision(grid, obj.getStartPos(), obj.getEndPos())) { if (!Collision.intersects(obj.getPlace(), gridBoundary)) { for (int k = position.x; k < position.x...
4
public boolean contains(Vector vector) { if(vector.x > max.x || vector.x < min.x || vector.y > max.y || vector.y < min.y) { return false; } Edge ray = new Edge(vector, new Vector(min.x - 1, min.y - 1)); int intersections = 0; for(Edge edge : edges) { if(ray.intersects(edge, true)) { intersections++;...
6
@Override public int matches( char[] sequenceA, int indexA, char[] sequenceB, int indexB, int count ) { for (int i = 0; i < count; i++) { char a = sequenceA[indexA + i]; char b = sequenceB[indexB + i]; if (Character.toLowerCase( a ) != Character.toLowerCase( b )) {...
2
public static ArrayList<IStudent> sort(ArrayList<IStudent> students) throws IllegalArgumentException { ArrayList<IStudent> temp1 = new ArrayList<>(); ArrayList<IStudent> temp2 = new ArrayList<>(); ArrayList<IStudent> temp3 = new ArrayList<>(); ArrayList<IStudent> temp4 = new ArrayList<>(...
6
public static String writeKarnaughMap(KarnaughTable kmap, int nbrVars) { int width = nbrVars * 50; String s = ""; s += "<div id=\"cent\" align=\"center\">"; s += "<h3 class =\"subsubTitle2\">" + Tools.getLocalizedString("KARNAUGH_MAP.Name") + ":" + "</h3>"; s += "<table width=\"" + width + "\"><tr>"; ...
5
private Mob(Map<String, Object> cfg) { super.setMapCfg(cfg); spawnChance = getAndSet("SpawnChance", 1); int maxAlive = getAndSet("MaxAlive", 0); int mobCooldown = getAndSet("MobCooldown", 60) * 1000; boolean enforceAllRemovalConditions = getAndSet("EnforceAllCooldownConditions", false); if (maxAlive ...
9
public int exprHashCode() { int v = 5 + kind ^ receiver.exprHashCode(); for (int i = 0; i < params.length; i++) { v ^= params[i].exprHashCode(); } return v; }
1
public DirtBasedAgentState(MovementAction action, Sensor sensor) { super(action); dist = new int [Direction.values().length]; type = new int [Direction.values().length]; for (String s : sensor.getSenseKeys()){ String tag[] = s.split("-"); Direction d = Direction.valueOf(tag[0]); if (s.contains(DirtB...
3
public static ArtNetObject decodeArtNetPacket(final byte[] packet, final InetAddress ip) { // The ArtNetPacket. final ArtNetObject artNetObject = null; // Set generals infos final String hexaBrut = byteArrayToHex(packet); final String id = new String(packet, 0, 7); // Extract OpCode int opCode = ((pa...
8
public static int[][] generateSpiralMatrix(int n) { if(n < 1) { return null; } int[][] input = new int[n][n]; int count = 1; int rowStart = 0; int rowEnd = n-1; int columnStart = 0; int columnEnd = n-1; while(rowStart<= rowEnd && col...
9
public void setSecurity(Security value) { security = value; String userName = security.getUserName(); String passwordText = security.getPassword(); String account = security.getAccount(); if (userName != null && userName.trim().length() != 0) { // If no pa...
8
public static void loadFromFile() throws Exception{ String filename = "Girl.bin"; File file = new File(filename); FileInputStream fis = new FileInputStream(file); ObjectInputStream ois = new ObjectInputStream(fis); try{ Object temp = ois.readObject(); if(temp.getClass().getName().equals("Girl")){ he...
2
public void pintarTableroVirtual() { int aleatorio; Random pitopitogorgorito=new Random(); for (int i = matrizVirtual.length-1; i >= 0; i--) { System.out.println(" _______________________________________"); System.out.print(i + " |"); for (int j = 0; j < matrizVirtual[0].length; j++) { switch (matr...
6
private String chooseFile(String mode) { JFileChooser chooser = getFileChooser(mode); if (chooser.showDialog(org.analyse.main.Main.analyseFrame, null) == JFileChooser.APPROVE_OPTION) { return chooser.getSelectedFile().getAbsolutePath(); } return null; }
1
public boolean contains(final Location location) { return world.equalsIgnoreCase(location.getWorld().getName()) && location.getX() <= xMax && location.getZ() <= zMax && location.getX() >= xMin && location.getZ() >= zMin; }
4
protected void layout(Composite composite, boolean flushCache) { Rectangle rect = composite.getClientArea(); Control[] children = composite.getChildren(); int count = children.length; if (count == 0) return; int width = rect.width - marginWidth * 2; int height = rect.height - marginHeight * 2; if (type...
8
public final Hashtable<Integer,Integer> distributionOnl() { final Hashtable<Integer,Integer> onld = new Hashtable<Integer,Integer>(); for (int m=0; m<this.m; m++) { final Integer key = onl[m].size(); Integer value = onld.get(key); if (value==null) onld.put(key, value); else value++; } return onld; ...
2
public void pixel_frontiere_proche(int i, int j, Image image){ //Si le pixel n'est pas en haut if(i != 0){ if(image.getPixel(i - 1, j).getColor().equals(Color.BLACK)){ image.getPixel(i, j).setFrontiereProche(true); } } //Si le pixel n'est pas en ba...
8
private void cancelKeys() { if (cancelQueue.isEmpty()) return; Selector selector = this.selector; for (;;) { CancellationRequest request = cancelQueue.poll(); if (request == null) { break; } DatagramChannel ch = chann...
6
void dfs(String[] board, int i, int j, int color){ int[] x = {-1,-1,0,1,1,0}; int[] y = {0,1,1,0,-1,-1}; int n = board.length; colors[i][j] = color; for(int e=0; e<6; e++){ int u = i+x[e]; int v = j+y[e]; if(u>=0 && u<n && v>=0 && v<n && board...
9
public void write(Writer writer) throws IOException { if (this.name == null) { this.writeEncoded(writer, this.contents); return; } writer.write('<'); writer.write(this.name); if (! this.attributes.isEmpty()) { Iterator iter = this.a...
7
private String getRemainingTime(long seconds) { // This is only an approximation - it doesn't count actual calendar months long minutes = seconds / 60; long hours = minutes / 60; long days = hours / 24; long months = days / 30; long years = days / 365; boolean oneDayLeft = days == 0; boolean oneHourL...
6
public CommandWords() { commands = new HashMap<String, String>(); captureGroups = new HashMap<String, int[]>(); HashMap<String, String> commandFile = KvReader.readFile("help.kv"); for(Entry<String, String> e : commandFile.entrySet()){ String eKey = e.getKey(); if(...
2
public boolean formExists(int formId) { try { String q = "select count(*) from form where formid = ?;"; PreparedStatement st = conn.prepareStatement(q); st.setInt(1, formId); ResultSet rs = st.executeQuery(); conn.commit(); rs.next(); ...
2
public void payInstallment(Payment payment) throws Exception { if (payment == null) { throw new Exception("Payment tidak boleh null."); } if (payment.getPaymentStatus() == null) { throw new Exception("Payment status tidak boleh null."); } if (!payment.getPaymentStatus().equals('N')) { throw new Exc...
9
final public void Additive_operator() throws ParseException { /*@bgen(jjtree) Additive_operator */ SimpleNode jjtn000 = new SimpleNode(JJTADDITIVE_OPERATOR); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); jjtn000.jjtSetFirstToken(getToken(1)); try { if (jj_2_60(3)) { ...
3
public ArrowNontransitionTool(AutomatonPane view, AutomatonDrawer drawer) { super(view, drawer); }
0
public final void drawArrow(Graphics g) { int center = getWidth() >> 1; g.setColor(Color.black); g.drawLine(center, 0, center, ARROW_LENGTH); g.drawLine(center, ARROW_LENGTH, center - 10, ARROW_LENGTH - 10); g.drawLine(center, ARROW_LENGTH, center + 10, ARROW_LENGTH - 10); g.translate(0, ARROW_LENGTH)...
0
public String getTelefon() { return telefon; }
0
@Override public V opposite(V vertex, E edge) { // Check that both the edge and vertex are in our graph. if (vertex == null || edge == null || !vertices.contains(vertex) || !edges.contains(edge)) { return null; } // Get the vertices for the edge. Set<V> vertices = edgesToVertices.get(edge); if (v...
7
public void save() { try { if (getSize() == 0) { if ((file.exists()) && (!file.delete())) { throw new DataBaseException("Cannot delete a file!"); } deletePath(); } else { createPath(); if ...
8
public static DateConverter getInstance() { DateConverter dateConverter = SHARED_INSTANCE; if (dateConverter == null) { dateConverter = new DateConverter(); } return dateConverter; }
1
public static Stella_Object accessXmlExpressionIteratorSlotValue(XmlExpressionIterator self, Symbol slotname, Stella_Object value, boolean setvalueP) { if (slotname == Stella.SYM_STELLA_REGION_TAG) { if (setvalueP) { self.regionTag = ((Cons)(value)); } else { value = self.regionTag...
9
private Object getKey(Object key) { if(key instanceof CaseInsensitiveString) { return caseMap.get(((CaseInsensitiveString)key).lcString()); } return key; }
1
public static void main(String[] args) throws Exception { ApplicationContext ctx = new ClassPathXmlApplicationContext( "context/jdbcContext.xml"); // dataSourceはSpringで作成。 DataSource source = (DataSource) ctx.getBean("dataSource"); Connection con = source.getConnection(); Statement stat = con.createState...
1
public boolean isPolymorphic(int site) { if (sg.size()==0) return false; char base = sg.get(0).at(site); int seqNum = 0; while (seqNum < sg.size() && charIsGap(base) ) { base = sg.get(seqNum).at(site); seqNum++; } //Every base is a gap in this column, I guess we return false here if (seqNum...
8
private boolean RevisarDatosEmpleado(Empleado entrada_Empleado){ boolean DatosFormularioEmpleadoCorrectos = true; boolean DatosFormularioEmpleadoIncorrectos = false; if( EsNombreCompletoCorrecto(entrada_Empleado.ObtenerNombreCompleto()) && EsUsuarioCorrecto(entrada_Empleado.Obtener...
7
private Mesh loadMesh(String fileName) { String[] splitArray = fileName.split("\\."); String ext = splitArray[splitArray.length - 1]; if (!ext.equals("obj")) { System.err.println("Error: File format not supported for mesh data: " + ext); new Exception().printStackTrace()...
2
public static boolean check(Point[] a) { double k; double z; if (a.length < 1) return true; k = ((double)a[0].x - (double)a[1].x) / ((double)a[0].y - (double)a[1].y); for (int i = 1; i < a.length; i++) { z = ((double)a[0].x - (double)a[i].y) / ((double)a[0].y - (d...
3
private void setupRandPartA() throws IOException { if (this.su_i2 <= this.last) { this.su_chPrev = this.su_ch2; int su_ch2Shadow = this.data.ll8[this.su_tPos] & 0xff; this.su_tPos = this.data.tt[this.su_tPos]; if (this.su_rNToGo == 0) { this.su_rNT...
4
public static ItemObject getItemObjectByName( String itemName ) { ItemObject result = null; Iterator<ItemObject> iterItems; ItemObject itemObject; iterItems = _itemList.iterator(); while ( iterItems.hasNext() ) { itemObject = (ItemObject) iterItems.next(); if ( itemObject != null ) {...
3
public void paint(Graphics g){ this.setDoubleBuffered(true); Insets in = getInsets(); g.translate(in.left, in.top); //int[][] gameboard = logic.getGameBoard(); int cols = gameBoard.length; int rows = gameBoard[0].length; for (int c = 0; c < cols; c++){ for (int r = 0; r < r...
8
@Basic @Column(name = "comment") public String getComment() { return comment; }
0
public StringPot(int channelNum) { _channel = new AnalogChannel(channelNum); }
0
public static Set<Integer> findSetIntersection(int[] array1, int[] array2) { Set<Integer> set1 = new HashSet<Integer>(); Set<Integer> intersectionSet = new HashSet<Integer>(); for (int i : array1) { set1.add(i); } for (int i : array2) { if (set1.contains...
4
private void setMessage(WizardStatus level, String message) { messageLabel.setText("<html>" + message + "</html>"); //$NON-NLS-1$ //$NON-NLS-2$ Icon icon = null; switch (level) { case OK: icon = ResourcesLoader.getIcon("balloon", 24); //$NON-NLS-1$ content.setBorderColor(Color.BLACK); break; case INF...
4
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Cashflow other = (Cashflow) obj; return Math.abs(amount - other.amount) <= ACCURACY && date == other.date; }
4
public void run( boolean outputContent ) throws Exception { Configuration conf = new Configuration(); String output = Constants.WORD_OUTPUT_DIR; FileSystem fileSystem = FileSystem.get(conf); String input = Constants.POST_OUTPUT_DIR; Path inputPath = new Path(input); /*Path inputPath = new Path(input); fil...
1
public int compareTo(Object o) { Handler second = (Handler) o; /* First sort by start offsets, highest address first... */ if (start.getAddr() != second.start.getAddr()) /* this subtraction is save since addresses are only 16 bit */ return second.start.getAddr() - start.getAddr(); /* * ...Seco...
6
private static void randomQueueOp( Random rand, Queue<Integer> a, int range ) { int op = rand.nextInt( 6 ); switch( op ) { case 0: case 1: case 5: { Integer val = rand.nextInt( range ); a.offer( val ); break; } ...
7
public static boolean isItemInList(int var0, int var1, String var2) { if (var2.trim().length() != 0) { String[] var3 = var2.split(";"); String[] var4 = var3; int var5 = var3.length; for (int var6 = 0; var6 < var5; ++var6) { ...
6
protected void onEntering() { }
0