text
stringlengths
14
410k
label
int32
0
9
@Override public void visitInsn(final int opcode) { // adds the instruction to the bytecode of the method code.putByte(opcode); // update currentBlock // Label currentBlock = this.currentBlock; if (currentBlock != null) { if (compute == FRAMES) { c...
6
private boolean invalidT(int t, int delta) { return t > 255 || t < 0 || delta > 255 || delta < 1; }
3
public boolean operate(T t1, T t2) { boolean isValid = true; try { ValidationHelper.validateValue(t1).against(t2) .usingValidator(ValidationHelper.isGreaterThan()); } catch (IllegalStateException iSE) { isValid = false; } return isValid; }
1
private static void collapseToParent(OutlinerDocument doc) { try { if (doc.tree.getComponentFocus() == OutlineLayoutManager.TEXT) { TextKeyListener.collapseToParent(doc.tree.getEditingNode()); } else if (doc.tree.getComponentFocus() == OutlineLayoutManager.ICON) { IconKeyListener.collapseToParent(doc.tr...
3
public Board(Player pl1, Player pl2, boolean show) { p1 = pl1; p2 = pl2; int dum = 0; if(p1.isDum()) { dum++; } if(p2.isDum()) { dum++; } moveMax = 100 + 200 * dum; showStuff = show; }
2
public static void main(String[] args) throws IOException { // TODO Auto-generated method stub ServerSocket ss = new ServerSocket(1337); while (true) { Socket client = ss.accept(); System.out.println(client.getInetAddress()); while (true) { String input = new String(); char ch; do { ch ...
4
private int recruitPay(Player player, UnitType unit) { float gold = player.getResource(core.ResourceType.GOLD)/(float)unit.cost.gold; float wood = player.getResource(core.ResourceType.WOOD)/(float)unit.cost.wood; float ore = player.getResource(core.ResourceType.ORE)/(float)unit.cost.ore; float min = getAvailab...
3
public BoardCanvas(Shell shell, AbstractGame game) { super(shell, SWT.NONE); this.game = game; int boardWidth = game.getBoardWidth(); int boardHeight = game.getBoardHeight(); cellSize = new CellSizeCalculator(shell).getPixelSize(boardWidth, boardHeight); if (cellSize > 0)...
1
public static void publicationsDbImportWithCon() throws ClassNotFoundException, SQLException { Class.forName("org.postgresql.Driver"); Connection c = DriverManager.getConnection("jdbc:postgresql://localhost:5432/postgres", "postgres", "qqkfq0513"); Statement stmt = c.createStatement(); S...
5
public Widget addEventWidget(){ VerticalPanel vp = new VerticalPanel(); Label title = new HTML("<h3>Ajouter un événement</h3>"); HorizontalPanel hp1 = new HorizontalPanel(); Label nameEventLabel = new Label("Nom et lieu :"); final TextBox nameEventTextBox = new TextBox(); hp1.add(nameEventLabel); hp1.add...
1
public boolean exits(String filename) { Iterator<String> it = filetable.keySet().iterator(); while (it.hasNext()) { Object me = it.next(); if (filename.equals(me)) { return true; } } return false; }
2
public void optimaze(List<Point> set) { Random random = new Random(); for (int i = 0; i < set.size(); i++) { List<Point> emergInCircle = getEmergInCircle(set.get(i)); if (circleEmpty(set.get(i))) { int rand = random.nextInt(incidents.size()); ...
8
public void stopAnimation() { if(interval < 0) {return;} if(animation == null) {return;} if(animation.isRunning()) {animation.stop();} }
3
private Vector3f[] calculatefacetNorms(GeometryInfo gi) { Point3f coordinates[] = gi.getCoordinates(); Vector3f[] facetNorms = new Vector3f[coordInds.length / 3]; Vector3f a = new Vector3f(); Vector3f b = new Vector3f(); if ((DEBUG & 1) != 0) System.out.println("Facet normals:"); if (gi.getOl...
8
public static void gastkartenmischen() { for(int j=0;j<2;j++){ for(Land land : Land.values()) { int anzahl = 2; if (land == Land.JOKER) { anzahl = 1; } for(int i = 0; i < anzahl; i++) { for(Geschlecht geschlecht : Gesc...
8
public void visitMethodInsn(final int opcode, final String owner, final String name, final String desc) { switch (opcode) { case Opcodes.INVOKESPECIAL: invokespecial(owner, name, desc); break; case Opcodes.INVOKEVIRTUAL: invokevirtual(owner, name, desc); break; case Opcodes.INVOKESTATIC: invok...
4
private void write() throws IOException { // port if(auxport){ ServerSocket foo=new ServerSocket(0); String snum=(new Integer(foo.getLocalPort())).toString(); byte[] array=snum.getBytes(); out.write(array, 0, array.length); out.write(0); out.flush(); auxsocket=foo.acc...
8
private static int[] greedyTour(UndirectedGraph ug){ int N= ug.vertices; int[] tour = new int[N]; boolean[] used = new boolean[N]; tour[0]=0; used[0]=true; for(int i=1;i<N;i++){ int best= -1; for(int j=0; j<N;j++){ if(!used[j]&&(best==-1 || ug.dist(tour[i-1], j) < ug.dist(tour[i-1],best))){ b...
5
public void allocatePERanges(PERangeList selected, double startTime, double finishTime) { // If the time of the last entry is equals to finish time than another // entry is not required. In this case we just increase the number of // gridlets that rely on that entry to mark either its completion // time ...
5
protected void displayAddonFailureIfIsSet(Exception e) { if (e != null) System.err.println( e.getMessage() ); }
1
private void drawInventory(Graphics g){ int count = 0; Font itemfont = new Font("SansSerif", Font.BOLD, height/20); g.setColor(Color.BLACK); g.setFont(itemfont); for(int i = 0; i < game.player.inventory.getSize(); i++){ if(count < game.player.inventory.getSize()/2){ if(game.player.inventory.whatsHere(c...
4
@Override public void render(Graphics g) { if (type == 0) { if (direction == 0) { g.drawImage(tex.enemy[0], (int) x, (int) y, (int) width, (int) height + 12, null); } if (direction == 1) { g.drawImage(tex.enemy[1], (int) x, (int) y, (int) w...
9
private void copyToClipboardWithHead() { StringBuffer sb = new StringBuffer(); int[] rows = getSelectedRows(); int[] columns = getSelectedColumns(); //复制标题 for(int i = 0; i < columns.length; i++) { String columnName = getColumnName(columns[i]); sb.append(columnName); if (i < columns.length - 1){ ...
5
private void findClosestDoor(final int target) { final int doorLoc = Math.max(boardBuffer-1, 0); final int doorLoc2 = boardSize + boardBuffer; int possibleDoors[][] = { { board[boardCenter][doorLoc2], boardCenter, doorLoc2 }, { board[doorLoc][boardCenter], doorLoc, boardCenter }, { board[bo...
7
public void renderProjectile(int xp, int yp, Projectile p) { xp -= xOffset; yp -= yOffset; for (int y = 0; y < p.getSpriteSize(); y++) { int ya = y + yp; for (int x = 0; x < p.getSpriteSize(); x++) { int xa = x + xp; if (xa < -p.getSpriteSize() || xa >= width || ya < 0 || ya >= height) break; if...
8
public String toString() { String indent = " "; StringBuffer buf = new StringBuffer(); buf.append(" \"").append(mName).append("\" {\n"); buf.append(indent).append("lastModified = ").append( mDateFmt.format(new Date(mLastModified))).append("\n"); ...
9
public void carregaGrafo() throws Exception { BufferedReader br = null; try { String linha; br = new BufferedReader(new FileReader("arquivo.txt")); String[] value = new String[3]; int v1 = 0; int v2 = 0; int peso = 0; while ((linha = br.readLine()) != null) { value = linha.spli...
5
public int getX() { return loc.x; }
0
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (commandLabel.equalsIgnoreCase("checkban")) { if (sender.hasPermission(SeruBans.CHECKBANPERM) || sender.isOp() || (!(sender instanceof Player))) { Str...
5
public boolean equals(Object object) { if (this == object) return true; if (!(object instanceof AccessRuleSet)) return false; AccessRuleSet otherRuleSet = (AccessRuleSet) object; if (this.messageTemplates.length != MESSAGE_TEMPLATES_LENGTH || otherRuleSet.messageTemplates.length != MESSAGE_TEMPLATES_L...
9
@Override public void run() { while(true){ beforeTime = System.nanoTime(); gameUpdate(); gameRender(); paintScreen(); afterTime = System.nanoTime(); diff = afterTime - beforeTime; sleepTime = (period - diff) - overSleepTime; if(sleepTime < period && sleepTime > 0){ tr...
6
public void firstBreakCommit() { QueryWarehouse bank = new QueryWarehouse(); String query = ""; this.connect(); Statement stmt = null; try { stmt = conn.createStatement(); } catch(Exception e...
6
@Override public void initialize(URL url, ResourceBundle rb) { listViewHelp.getSelectionModel().selectedItemProperty().addListener( new ChangeListener<String>() { @Override public void changed(ObservableValue<? extends String> ov, String t, String t1) ...
7
public T next() { if(!hco) throw(new NoSuchElementException()); T ret = co; f(); return(ret); }
1
private Map<String, String> parseQuery(String uri) { Map<String, String> params = new HashMap<String, String>(); try { for (String pair : uri.split("[?]")[1].split("&")) { String[] keyval = pair.split("[=]", 2); if (keyval.length == 1) { params.put(keyval[0], null); } else { try { pa...
4
public float getMaxSpeed() { return 0.5f; }
0
@Override public void update(long deltaMs) { if(targetX < 0 || targetY < 0 || timeForNewTarget) { getTarget(); } if(targetX >= 0 && targetY >= 0) { move(); } }
5
public String getSelectedPagesNumbersText() { int[] nums = getSelPgsNumbers(); StringBuilder sb = new StringBuilder(); int num = Integer.MAX_VALUE; int pnum = Integer.MAX_VALUE; int s = Integer.MAX_VALUE; int dif; for (int i = 0; i < nums.length; i++) { num = nums[i]; dif = num - pnum; if (dif > ...
8
public String getName() { return name; }
0
protected synchronized void success() { if (debug) { System.out.println(name + " success"); } if (abort) return; count++; Thread.yield(); boolean better = updateBest(); if (isOption(BETTER)) { if (monitor != null) { // monitor.addData(this, bestValue); int value = solution.getObjectiveInt...
9
@Override public void print(String str) { }
0
public void insert(String table, Map<String, Object> content) { builder.append("INSERT INTO ").append(table); values = new StringBuilder(32); values.append(" VALUES("); columns = new StringBuilder(128); columns.append('('); for (Map.Entry<String, Object> pair: content.entrySet()) { columns.app...
1
@Override public int hashCode() { int hash = 0; hash += (id != null ? id.hashCode() : 0); return hash; }
1
public static Mob create(int unitClass, Player player) { Mob unit = null; if (unitClass == UNIT_POLAND) unit = new Poland(player); if (unitClass == UNIT_GERMANY) unit = new Germany(player); if (unitClass == UNIT_NETHERLANDS) unit = new Netherlands(player); if (unitClass == UNIT_FRANCE) unit = new France(playe...
9
private void declaration() { if (first(f_var_decl)) { var_decl(); } else if (first(f_const_decl)) { const_decl(); } else parse_error("oops -- declaration bad first"); }
2
public void testPresent8() { try { TreeNode result = contains(new TreeNode(new String("node")), mkChain(new String[]{ new String("node") })); assertTrue(null, "Failed to locate the only node of a leaf!", result != null && result.getData() != null ...
7
public int search(int[] A, int target) { int left = 0, right = A.length - 1; while (left <= right) { int mid = left + (right - left) / 2; if (A[mid] == target) { return mid; } else { if (A[mid] >= A[left]) { if (target >= A[left] && target < A[mid]) { right = mid - 1; } else { ...
7
public static void reset(String TableNum) //resets button when table is freed up { for(int x=0; x<9; x++) //loops until finds table# { if(((AbstractButton) panel.getComponent(x)).getText().equals(TableNum)) { ((AbstractButton) panel.getComponent(x)).setIcon(free); //changes icon back ...
2
public void parseCoach(Document doc, String url, Connection conexion) throws SQLException, ParseException{ String[] coachInfo = new String[7]; Integer id = Integer.valueOf(url.replaceAll("\\D+", "")); //get the nickname coachInfo[2] = doc.select("title").text().split(",")[0]; ...
8
@Override public File nextOutputFolder() { if (!basedir.exists()) { basedir.mkdirs(); } File[] files = basedir.listFiles(new FF()); int no = 0; if (files != null && files.length > 0) { Arrays.sort(files, new Comparator<File>() { @Overr...
3
public static void main(String[] args) { Funcion rectaNormal = new Funcion() { @Override public double f(double x) { return x; } @Override public double f(double x, double y) { return 0; } @Over...
3
public int[][] parseHCP() { boolean success = false; // Keep trying if file not found while (!success) { System.out.print("Enter filename (or 000 to exit): "); this.file = in.nextLine(); if (file.trim().equals("000")) { System.out.println("Program Terminated"); System.exit(0); } try { ...
9
public void start() { if (applet != null) { applet.start(); return; } if (gameUpdaterStarted) return; Thread t = new Thread() { public void run() { gameUpdater.run(); try { if (!gameUpdater.fatalError) replace(gameUpdater.createApplet()); ...
8
public PlayerInfo(Player p) { if (p == null) throw new IllegalArgumentException("The given Player is invalid!"); this.player = p; }
1
public String dbgPrintBytesBefore() { int l = 20; int r = 20; if (this.pos+r > this.length) r = this.length - this.pos; if (this.pos-l < 0) l = this.pos; int len = r + l; byte[] chunk = new byte[len]; System.arraycopy(src, pos - l, chunk...
6
public static String concatPath(String base, String file) { if (base == null || file.startsWith("/") || file.startsWith("\\") || (file.length() >= 2 && file.charAt(1) == ':') || isUrl(file)) return file; int cut = Math.max(base.lastIndexOf('/'...
6
public int getHeight() { return height; }
0
private void deleteBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteBtnActionPerformed // TODO add your handling code here: int index = paymentList.getSelectedIndex(); try { String stuID = payingStudent.getStudentID(); String payID = listPay.get...
5
@Override public int attack(NPC npc, Entity target) { final NPCCombatDefinitions defs = npc.getCombatDefinitions(); TormentedDemon torm = (TormentedDemon) npc; int hit = 0; int attackStyle = torm.getFixedAmount() == 0 ? Utils.getRandom(2) : torm.getFixedCombatType(); if (torm.getFixedAmount() == 0) to...
6
public void treeNodesChanged(TreeModelEvent e) { invalidate(); }
0
private void checkAll() { if( jText == null ) { //the needed objects does not exists return; } if( dictionary == null ) { removeHighlights( jText ); return; } if( jText.getDocument().getLength() == 0 ){ // no text, no hi...
5
boolean setTabGroupFocus(boolean next) { if (isTabItem()) return setTabItemFocus(next); boolean takeFocus = (style & SWT.NO_FOCUS) == 0; if ((state & CANVAS) != 0) takeFocus = hooksKeys(); if (socketHandle != 0) takeFocus = true; if (takeFocus && setTabItemFocus(next)) return true; Control[] chi...
8
private PlayerInfo[] getPlayerInfoArray() { List<Player> players = new ArrayList<Player>(presenter.getClientModel().getServerModel().getPlayers()); players.removeAll(Collections.singleton(null)); PlayerInfo[] playerInfoArray = new PlayerInfo[players.size()]; for (int i = 0; i < players.size(); i++) { P...
2
public void test() { int N = 1000; // Test N times // - Create a random gene transcript, exons // - Change each base in the exon // - Calculate effect for (int i = 0; i < N; i++) { initSnpEffPredictorRand(); if (debug) System.out.println("MNP Test iteration: " + i + "\nChromo:\t" + chromoSequence + ...
7
public String longestCommonPrefix(String[] strs) { if (strs == null || strs.length == 0) return ""; int minL = Integer.MAX_VALUE; for (String str : strs) { minL = Math.min(minL, str.length()); } StringBuilder result = new StringBuilder(); for (int i = 0; i < minL; i++) { char c...
6
public static final void skipFully(InputStream in, long length) throws IOException { long total = 0; long skipped = 0; while (total < length && (skipped = in.skip(length - total)) > 0) { total += skipped; } }
2
public static boolean isConsistent(int[] result, int N) { for (int i=0; i<N; i++) { if(result[N] == result[i]) return false; if(result[N] - result[i] == N - i) return false; if(result[N] - result[i] == i - N) return false; } return true; }
4
private List<SequenceAnnotation> getORFsForFrame(Sequence seq, int startSite) { List<SequenceAnnotation> orfs = new ArrayList<SequenceAnnotation>(); StringBuilder codon = new StringBuilder(); boolean inORF = false; int currentStart = 0; //System.out.println("Starting at site: " + startSite + " base is : " ...
8
private void cppCreateClientStubHeader() throws ClassNotFoundException { out.println("/* Generated with cppToJavaRpcStubGenerator by github.com/danfickle */"); out.println("#ifndef " + classNameWithUnderscores.toUpperCase()); out.println("#define " + classNameWithUnderscores.toUpperCase()); o...
8
@Override public boolean okMessage(final Environmental myHost, final CMMsg msg) { if((affected==null)||(!(affected instanceof MOB))||(target==null)) return super.okMessage(myHost,msg); final MOB mob=(MOB)affected; if(msg.amISource(mob) &&(msg.amITarget(target)) &&(msg.targetMinor()==CMMsg.TYP_DAMAGE)) ...
7
@Override public Object execute(TransitionSystem ts, Unifier un, Term[] terms) throws Exception { WorldModel model = ((MartianArch) ts.getUserAgArch()).getModel(); Vertex myPosition = model.getMyVertex(); List<Entity> opponents = model.getActiveOpponentsOnVertex(myPosition.getId()); if (!opponents.isEmpty()...
9
public Clock getTimeStamp(){ return this.timeStamp; }
0
public void addClientBehavior(String eventName, ClientBehavior behavior) { assertClientBehaviorHolder(); // First, make sure that the event is supported. We don't want // to bother attaching behaviors for unsupported events. Collection<String> eventNames = getEventNames(); // ...
9
public static byte[] decodeLines (String s) { char[] buf = new char[s.length()]; int p = 0; for (int ip = 0; ip < s.length(); ip++) { char c = s.charAt(ip); if (c != ' ' && c != '\r' && c != '\n' && c != '\t') buf[p++] = c; } return decode(buf, 0, p); }
5
public static String[] splitByNonNestedChars(String s, char... c){ //get setup int parDepth = 0; String chars = new String(c); ArrayList<String> parts = new ArrayList<String>(); //search for matches for(int i = 0; i < s.length(); i++){ if(s.charAt(i) == '(') parDepth++; else if(s.charAt(i) == ')') par...
6
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if(enabled){ if(command.getName().equals("tpall")){ if(sender instanceof Player){ Player p = (Player) sender; if(p.hasPermission("tcl.tp.all")){ Location loc = p.getLocation(); for(Player pl ...
6
@Override public int hashCode() { int hash = 5; hash = 59 * hash + (int) (this.id ^ (this.id >>> 32)); hash = 59 * hash + (this.datum != null ? this.datum.hashCode() : 0); hash = 59 * hash + this.bewertung; hash = 59 * hash + (this.titel != null ? this.titel.hashCode() : 0); ...
6
public TransformRawDataTest() { }
0
public void serviceChanged(ServiceEvent event) { synchronized (m_refList) { // Add the new dictionary service to the service list. if (event.getType() == ServiceEvent.REGISTERED) { // Get the service object. Object service = m_context.getService(event.getServiceReference()); // Make that the servic...
8
public static ArrayList<Innlegg> hentInnOrd(){ //Oppretter variabler av type String som senere blir tildelt verdi String norskOrd, engelskOrd; //Lager en Arraylist som sender til tilleggsklassen "Innlegg" ArrayList<Innlegg> Innleggsliste = new ArrayList<Innlegg>(); //Oppretter variabler av type int som sen...
3
@Override public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if (cmd.getName().equalsIgnoreCase("giveleash") && args.length == 1) { if (!(sender instanceof Player)) { sender.sendMessage("This command can only be run by a player."); } else { @SuppressWarnings("dep...
7
public void setFilter(weka.filters.Filter c) { boolean loadImages = true; if (c.getClass().getName(). compareTo(m_Filter.getClass().getName()) == 0) { loadImages = false; } m_Filter = c; String filterName = c.getClass().toString(); filterName = filterName.substring(filterName. i...
9
static final void method2062(byte i) { if (Message.aClass338Array2034 != null) { for (int i_3_ = 0; (Class239_Sub26.anInt6115 ^ 0xffffffff) < (i_3_ ^ 0xffffffff); i_3_++) Message.aClass338Array2034[i_3_] = null; Message.aClass338Array2034 = null; } anInt3480++; if (Class318_Sub1_Sub3_Sub4.aClass33...
6
@EventHandler public void GiantFireResistance(EntityDamageByEntityEvent event) { Entity e = event.getEntity(); Entity damager = event.getDamager(); String world = e.getWorld().getName(); boolean dodged = false; Random random = new Random(); double randomChance = plugin.getGiantConfig().getDouble("Giant.Fir...
6
public ProjectileManager(World world) { bullets=new Bullet[MAX_BULLETS]; decals=new Decal[MAX_DECALS]; for (int i=0; i<MAX_BULLETS; i++) { bullets[i]=new Bullet(); bullets[i].addToWorld(world); } for (int i=0; i<MAX_DECALS; i++) { decals[i]=new Decal(); ...
2
public String selectBothParameter(String objectName,String parameter,String parameter2) { StringBuilder sb = new StringBuilder(); Object o= list.get(objectName); if(o!=null){ if(o.getName()[0].equals(parameter)&&o.getName()[1].equals(parameter2)) { sb.append("...
9
private void popup (MouseEvent e) { if (!e.isPopupTrigger()) { return; } { int r = rowAtPoint(e.getPoint()); int c = columnAtPoint(e.getPoint()); if (!(r >= 0 && c >= 0)) { return; } if (!isCellSelected(r, c)) { clearSelection(); addRowSelectionInterval(r, r); addColumnSel...
9
public boolean stem() { int v_1; int v_2; int v_3; int v_4; // (, line 72 // do, line 74 v_1 = cursor; lab0: do { // call mark_regions, line 74 ...
8
public VariableStack mapStackToLocal(VariableStack stack) { VariableStack newStack; int params = instr.getFreeOperandCount(); if (params > 0) this.stack = stack.peek(params); if (instr.getType() != Type.tVoid) { pushedLocal = new LocalInfo(); pushedLocal.setType(instr.getType()); newStack = stack.p...
3
dxVertexLayout(DirectxToolkit class378, Class58[] class58s) { VertexElementCollection vertexelementcollection = new VertexElementCollection(((DirectxToolkit) class378).aHb9788); int i = 0; for (int i_0_ = 0; (class58s.length ^ 0xffffffff) < (i_0_ ^ 0xffffffff); i_0_++) { int i_1_ = 0; Class58 cl...
9
public void interact(ThePlayer p) { if (given == false) { p.getFFCharacter().giveItem(containedItem); System.out.println("Thou hast obtained ye " + containedItem.toString()); given = true; if (containedItem instanceof Weapon) { ...
7
public void getauthors(int layer,List<String>list) { if(layer>2) { return; }else{ for(String id:list){ if(!totalpaper.contains(id)){ List<String>tmp=getAuthorList.getAuthors(Integer.parseInt(id)); for(String au:tmp){ if(!authors.contains(au)) authors.add(au); } List<Str...
6
public NbrCostPair(Neighbor nbr, int cost) { this.nbr = nbr; this.cost = cost; }
0
protected void splitSon(Object node){ int location= 0; boolean found= false; while (!found){ //locates the son that needs to be split if (this.pointers.elementAt(location) == node) found= true; else location++; } if (this.pointers.elementAt(location) instanceof Leaf) //calls for a help method to...
3
public void solve() { ArrayList<int[]> prePSemiFlows = getPSemiFlows(); ArrayList<int[]> finalPSemiFlows = new ArrayList<int[]>(); for (int i = 1; i < prePSemiFlows.size(); i++) { Set<Set<int[]>> subSetSemiFlows = getCombinationsFor(prePSemiFlows, i); for (Set<int[]> set ...
6
public static void main(String[] args) { new Thread(new Runnable() { @Override public void run() { while (!Thread.currentThread().isInterrupted()) { shared(); } } }).start(); new Thread(new Runnable() { @Override public void run() { while (!Thread.currentThread().isInterrup...
2
public void applyGravity() { floorDistance = 0; }
0
public List<UserDTO> getDataToTable() { try { splashWindow = new SplashWindow(this, "359.gif"); List<UserDTO> usersList = requests.getAllUsers(); requests.crossPoint(splashWindow); return usersList; } catch (Exception except) { JOptionPane.showMessageDialog(null, "Sprawdz polaczenie z internete...
1
private void buildFinalFieldList() { // set field values foreach ship which was placed for (Ship s : ships) { // Just call it once ArrayList<Coordinates> coordinates = s.getCoordinates(); for (Coordinates c : coordinates) { getFields()[c.getY()][c.ge...
2
public void setCountry(String country) { this.country = country; }
0