text
stringlengths
14
410k
label
int32
0
9
@Override public void publishInterruptibly(final long sequence, final Sequence cursor) throws InterruptedException { int counter = RETRIES; while (sequence - cursor.get() > pendingPublication.length()) { if (--counter == 0) { if(yieldAndCheckInterrupt()) throw new InterruptedExc...
7
private void combinationSum2Helper(int idx, int[] num, int target, ArrayList<ArrayList<Integer>> result, int[] times) { if (target < 0 || (idx == num.length && target != 0)) return; if (target == 0) { ArrayList<Integer> ret = new ArrayList<Integer>(); for (int i = 0; i < idx; i++) { ...
9
private boolean interfaceIsSelected(RSInterface class9) { if(class9.anIntArray245 == null) return false; for(int i = 0; i < class9.anIntArray245.length; i++) { int j = extractInterfaceValues(class9, i); int k = class9.anIntArray212[i]; if(class9.anIntArray245[i] == 2) { if(j >= k) return ...
9
public boolean gridHasUserCar(){ if(vehicleMap.containsKey('A')){ return true; } else { return false; } }
1
private void setResult() { if(stressDistribution.size() < 100) this.result += "Stress distribution = " + stressDistribution + "\n"; else { for(Integer value : stressDistribution.values()) { int i = 10; Integer key = 1; while(!(value >= key && value < key * i)) key *= i; Integer...
7
@Override public String[][] loadCells(Settings settings) throws Exception { SpreadsheetService service = new SpreadsheetService(APP_NAME); String login = settings.googleLogin; String password = settings.googlePassword; if (login == null || login.length() == 0) { if (Sys...
6
public Tape[] getTapes() { return myTapes; }
0
private void createAndCompare(){ //Grab each chromosome file. Sequence_DNA seq; StringBuffer sb; //Iterate through each chromosome file, and create all of the transcripts possible from each one //Code is performed in this order to minize HDD reads. for(int k = 0; k < 25; k++){ //Ignore the mitochon...
8
public static void main(String[] args) { if(args.length<2){ System.out.println("Please specify train and test file arguments"); System.exit(1); } else{ readFile(args[0]); } int threshold=50; if(args.length==3){ threshold=Integer.parseInt(args[2]); if(threshold%2!=0){ System.out.println("p...
9
public static TreeMap<Integer, Integer> getShiptypesIDOccurrence( ArrayList<Kill> killBoard, String attribute) { TreeMap<Integer, Integer> result = new TreeMap<Integer, Integer>(); if (killBoard.isEmpty()) { return null; } for (Kill K : killBoard) { if (K.getVictim().findAttribute(attribute)) { ...
5
public static Constructor<?> getConstructor(String inClass, boolean touch) { // Create a class object from the class matching the table name Class<?> clazz = null; Constructor<?> cons = null; try { clazz = Class.forName(inClass); } catch (ClassNotFoundException ex) { // Logger.getLogger(GTFSParser.class...
7
public String doIt(String arg){ System.out.println("called .. demo.service.Service1.doIt(String)"); return arg; }
0
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 actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("editor_undo")) { textComponent.undo(); } else if (e.getActionCommand().equals("editor_redo")) { textComponent.redo(); } else if (e.getActionCommand().equals("editor_cut")) { textComponent.cut(); } else if (e.getActionCommand(...
8
private void insertImmediately(TransObj obj) { Connection conn = null; try { conn = DBManager.getConnection(); /*PreparedStatement prepStatement = conn.prepareStatement(P_INSERT_STRING); prepStatement.setInt(1, obj.getSeq()); prepStatement.setLong(2, obj.getInitTime()); prepState...
3
private void performSwap(LeftistTreeNode root) { if (root != null) { LeftistTreeNode right, left, toBeSwapped; if (root.parent != null) { toBeSwapped = root.parent; right = toBeSwapped.right; left = toBeSwapped.left; } else { ...
9
public void atualizar(PalavraChave palavrachave) throws Exception { String sql = "UPDATE palavrachave SET palavra = ? WHERE id = ?"; try { PreparedStatement stmt = ConnectionFactory.getConnection().prepareStatement(sql); stmt.setString(1, palavrachave.getPalavra()); stmt.setLong(2, palavrachave.getId()...
1
public static void awardBonusExternal() { class AwardBonus extends RecursiveAction { public AwardBonus(ArrayList<BankAccount> accounts, int start, int end) { this.accounts = accounts; this.start = start; this.end = end; } priv...
1
public FieldVisitor visitField(final int access, final String name, final String desc, final String signature, final Object value) { StringBuffer sb = new StringBuffer(); appendAccess(access | ACCESS_FIELD, sb); AttributesImpl att = new AttributesImpl(); att.addAttribute("", "access", "access", "", sb.toStr...
2
private void clearNetsAfterGoalSet() { Enumeration eNum = CANT23.nets.elements(); while (eNum.hasMoreElements()) { CANTNet net = (CANTNet)eNum.nextElement(); if ((net.getName().compareTo("VerbInstanceNet") == 0) || (net.getName().compareTo("NounAccessNet") == 0) || (net.getName()...
8
static int KMP(char[] p, char[] t, int start, int end) { int i = start, j = 0, m = p.length, n = end, max = 0; while (i < n) { while (j >= 0 && p[j] != t[i]) j = b[j]; i++; j++; if (i == n) max = Math.max(max, j); if (j == m) j = b[j]; } return max; }
5
private void computeShortestPath() { Cell goalCell = map.getGoalCell(); updateKey(goalCell); // Cell peekedCell = expandedList.peek() == null ? new Cell() { // { // key = new Key(Integer.MAX_VALUE, Integer.MAX_VALUE); // } // } : expandedList.peek(); while (expandedList.peek() != null && cC.compare(expa...
9
public java.awt.Component getTableCellRendererComponent(JTable aTable, Object value, boolean isSelected, boolean hasFocus, int row, int column) { JComponent c = (JComponent) super.getTableCellRendererComponent( aTable, value, isSelected, hasFocus, row, column); c.setToolTipText(table.getContentDescri...
0
public void setHost(String host) { this.host = host; }
0
private String cleanText( String text ) { StringBuilder sb = new StringBuilder(); for ( int i=0;i<text.length();i++ ) { char token = text.charAt(i); if ( token == '\n' ) sb.append(" "); else if ( token == '\t' ) sb.append(" ...
4
public Ast compile_text(String text, String type) { switch (type) { case "rb": this._parser = null;//TODO this._visitor = null; break; case "py": this._parser = null;//TODO this._visitor = null; break; case "c": this._parser = null;//TODO this._visitor = null; break; case "ob": this._parser = ...
5
public QueueSubscriberThread(BlockingQueue<Integer> queue) { this.queue = queue; }
0
public TileEncoderImpl(String formatName, OutputStream output, TileCodecParameterList param) { // Cause a IllegalArgumentException to be thrown if formatName, output // is null if (formatName == null) { throw new IllegalArgumentException( JaiI18N.getString("TileCodecDescriptorImpl0")); } if ...
9
public static boolean updateKayttajatunnus(Kayttajatunnus kayttaja) { Connection con = connect(); try { con.setAutoCommit(false); PreparedStatement updateKayttajatunnus = con.prepareStatement("UPDATE kayttajatunnus SET kayttajanimi = ?, salasana = ?, oikeudet = ? WHERE kayttajatunnusID = ?"); updateKaytta...
3
public SoundPoolEntry addSound(String var1, File var2) { try { String var3 = var1; var1 = var1.substring(0, var1.indexOf(".")); if(this.field_1657_b) { while(Character.isDigit(var1.charAt(var1.length() - 1))) { var1 = var1.substring(0, var1.length() - 1); ...
4
public boolean hasPotentialAvailableSpace(int fileSize) { if (fileSize <= 0) { return false; } // check if enough space left if (getAvailableSpace() > fileSize) { return true; } Iterator it = fileList_.iterator(); File file = null; ...
5
public int calculateScore(DiceManager diceManager, int roundNumber) { Dice dice1 = diceManager.getFirstDice(); diceManager.nextDice(); Dice dice2 = diceManager.nextDice(); Dice dice3 = diceManager.nextDice(); int score = 0; nextToPlay = true; if(dice1.compareTo...
9
private void mainLoop(String user_name) throws IOException { for (;;) { Command cmd = this._in.readCommand(); char op = cmd.getOperator(); CommandArgsIterator args_it = (CommandArgsIterator) cmd.iterator(); if (op == 'J') this.joinCha...
9
private void horizontalCompactionRight(Digraph<BrandesKoepfNode,Boolean> graph) { for (BrandesKoepfNode v : graph.vertices()) { v.sink = v; v.sink2 = v; v.shift = Integer.MAX_VALUE; v.x = Integer.MIN_VALUE; // undefined } for (BrandesKoepfNode v : graph.vertices()) { if (v.root == v) { placeBlo...
8
@SuppressWarnings("unchecked") public void onAuditEvent(AuditEvent evt){ log.info("Audit Event Arrived:" + evt.getEventId() + ":" ); String ruleID = ""; String severity = ""; String tags = ""; String source = ""; String line = ""; String file = ""; String msgStr = ""; JSONObject json = new ...
7
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 setGaussianKernelRadius(float gaussianKernelRadius) { if (gaussianKernelRadius < 0.1f) throw new IllegalArgumentException(); this.gaussianKernelRadius = gaussianKernelRadius; }
1
@Override public void fire() { if(timeSinceLastShot >= timeBetweenShots) { GameActor a = Application.get().getLogic().getActor(actor); //WeaponsComponent wc1 = (WeaponsComponent)a.getComponent("WeaponsComponent"); PhysicsComponent pc1 = (PhysicsComponent)a.getComponent("P...
1
private ArrayList<Integer> generateActions(int[][] state) { ArrayList<Integer> result = new ArrayList<Integer>(); int middle = x/2; //TODO choose random when x is even if (state[middle][0] == 0) { result.add(middle); } for (int i=1; i <= x/2; i++){ if(midd...
6
@Override public void documentAdded(DocumentRepositoryEvent e) {}
0
public static void main(String[] args) { /** Variablen */ FileInputStream fstream; String line; Guitar guitar; Scanner sc; final int takt = 22050; // keys to pluck a string char[] pluckKeys = { 'm', 'k', 'o', ',', 'l', 'p' }; // keys to press a fret down, only the lower str...
9
* @param off offset for array * @param len max number of bytes to read into array * @since 1.3 */ @Override public void write( byte[] theBytes, int off, int len ) throws java.io.IOException { // Encoding suspended? if( suspendEncoding ) { ...
8
public float getPrice() { return price; }
0
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof UnitPlayer)) return false; UnitPlayer other = (UnitPlayer) obj; if (curLocation == null) { if (other.curLocation != null) return false; } else if (!curLocation.equ...
9
public ProcessedCell(String name, ImageProcessor origImg, ImageProcessor segmented, int num, BoundaryBox bb, int area, double mean, Point centroid){ imgName = name; this.id = num; this.bb = bb; this.area = area; this.mean = mean; this.centroid = centroid; origImg.setRoi(this.bb.getX(), this.bb.getY...
3
public static void printBoard(int table[][]){ int rows=table.length; int cols=table[0].length; msg.print(" "); for(int i=0;i<cols;i++){ if(i==0){ msg.print("0 "); } else{ if(i<10){ msg.print(gen[0].charAt(i-1)+" "); } else{ msg.print(gen[0].charAt(i-1)+" ...
9
public Route(final String name, final int local_port, final String remote_address,final File log_dir, final Properties[] filterConfigs) throws IOException { this.name = name; if (remote_address.indexOf(":") == -1) { throw new Error("port missing in remote a...
1
public void checkBanks() { try { File dir = new File("characters"); if(dir.exists()) { String read; File files[] = dir.listFiles(); for (int j = 0; j < files.length; j++) { File loaded = files[j]; if (loaded.getName().endsWith(".txt")) { Scanner s = new Scanner (loaded); int c...
9
private static List<String> canonize(String aPath) throws CommandException { final String[] lPieces = aPath.split("/"); final List<String> lResult= new ArrayList<String>(lPieces.length); for(String lPiece : lPieces) { if(".".equals(lPiece)) // ...
9
public static int runToAddressL(int limit, Gameboy gbL, Gameboy gbR, int... addresses) { if (!gbL.onFrameBoundaries) { int add = dualStepUntilL(gbL, gbR, 0, 0, addresses); if (add != 0) return add; } int steps = 0; while (steps < limit) { int add = dualStepUntilL(gbL, gbR, 0, 0...
4
@Override public void update(Graphics g) { if (image == null) { image = createImage(this.getWidth(), this.getHeight()); second = image.getGraphics(); } second.setColor(getBackground()); second.fillRect(0, 0, getWidth(), getHeight()); second.setColor(getForeground()); paint(second); g.drawImage(im...
1
public void tryRotate(Block[][] tank) { int nextRotation = currentRotation < getRotations().length - 1 ? currentRotation + 1 : 0; Block[][] nextLayout = getRotations()[nextRotation].getLayout(); for (int x = 0; x < nextLayout.length; x++) { for (int y = 0; y < nextLayout[0].length; ...
7
public void sendReply_cgibin_latency_cgi(MyHTTPServer socket, List<HTTPRequestData> getData, String cookie) throws Exception { try { int width = 920; HTTPRequestData widthData = MyHTTPServer.findRecord(getData, "width"); if (widthData != null && widthData.getData() != null) width = Integer.valueOf(wid...
8
static int countLinkageEdges(List<Node> positiveNodeList, List<Node> negativeNodeList, int[] positivePartition, int[] negativePartition) { int k = 0; for (int i : positivePartition) { k = Math...
7
public void getEnabled(boolean isEnabled) { if (isEnabled == true) { btn_editor.setEnabled(true); btn_add.setEnabled(true); btn_remove.setEnabled(true); btn_save.setEnabled(true); } }
1
public boolean canRobotMove(Direction direction) { boolean result = true; /* Each case checks for 2 things: if the robot will move outside of the bounds * and if there is a rock in the robot's path. */ switch(direction) { case UP: result &= robot.getLocation().y > 0; break; case DOWN: result &=...
4
public void addFromFile(String fichier) { try{ Scanner input= new Scanner (new File(fichier)); int numberOfEntries= Integer.parseInt(input.next()); System.out.println(numberOfEntries); NoeudRN found= null; while (input.hasNext() && numberOfEntries >= 0) { int a= Integer.parseInt(input.next()),...
4
@Override public void trigger(Value v) { super.trigger(v); if (parent_ != null && parent_.getMode() == EditorMode.DEBUG) { for (OVLine l : lines_) { if (v.getType() == ValueType.VOID || v.getType() == ValueType.NONE) { l.debugD...
5
public ComputStdMethodLong(long []v){ if (null == v || 0 == v.length){ mean = median = stddev = 0; min = max = 0; }else if (1 == v.length){ mean = median = stddev = v[0]; min = max = v[0]; }else{ long sum = v[0],sqSum=0; min = v[0]; max = v[0]; for (int i=1;i<v.length;i++) { //Mini...
8
public Ast.AstPredicate parse_restrrPredicate1(Ast.AstPredicate inode, SpecObject specObject, String property) { int at = m_current; if (!ok()) { return null; } if (next(TozeTokenizer.TOKEN_LAND)) { Ast.AstAndP anode = m_ast.new As...
9
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 setYahooAuctionModel(YahooAuctionModel yahooAuctionModel) { this.yahooAuctionModel = yahooAuctionModel; }
0
public static String sortByValue(Map<String, ArtistInfo> map) { List<Map.Entry<String, ArtistInfo>> list = new LinkedList<Map.Entry<String, ArtistInfo>>( map.entrySet()); Collections.sort(list, new Comparator<Map.Entry<String, ArtistInfo>>() { public int compare(Map.Entry<String, ArtistInfo> o1, Map.Ent...
4
public void exec() { if (WindowStack.getLastInstance() != null) { setParent(WindowStack.getLastInstance()); } move(400, 300); show(); wait = true; while (wait) { QApplication.processEvents(); try { Thread.sleep(100); } catch (InterruptedException e) { e.printStackTrace(); } } }
3
private boolean define(VirtualMachine virtualMachine) throws Exception { String memory = virtualMachine .getProperty(VirtualMachineConstants.MEMORY); String diskType = virtualMachine .getProperty(VirtualMachineConstants.DISK_TYPE); String networkType = virtualMachine .getProperty(VirtualMachineConsta...
6
public static void main(String[] args) { /* System.setProperty("sun.java2d.opengl", "true"); System.setProperty("sun.java2d.translaccel", "true"); System.setProperty("sun.java2d.ddforcevram", "true"); */ Wuuii wuuii = new Wuuii(); wuuii.init(); //TcpBroadcast tcp =...
1
boolean checkSyntax(){ boolean result = true; //save the current line to set it to this point at the end again int initialCurrentLine = this.currentLine; this.currentLine = 0; String output = ""; String lastOutput = ""; if(this.lines.length > 0){ lastOutput = this.computeLine(); output = lastOutput;...
5
public JFreeChart MakeChart() { DefaultPieDataset chartDataSet = new DefaultPieDataset(); Object[] column1Data = super.getDataset().GetColumnData(super.getAttribute1()); Object[] column2Data = super.getDataset().GetColumnData(super.getAttribute2()); boolean addDataset = true; String err...
9
public final INIToken read() throws IOException { while (true) { final int symbol = this._reader_.read(); switch (symbol) { case -1: return null; case '[': final String section = this._readSection_(); return INIToken.fromSection(section); case ';': final String comment = this._re...
6
public static void noGui(Settings settings, boolean showNotifications) { Graph graf = new Graph(); try { graf.loadFromFile(settings.graphFileName); } catch (FileNotFoundException ex) { System.err.println("Błąd pliku grafu!"); System.exit(-1); } ...
4
private static void collectItemData(String itemPath, String split_Sign) throws IOException { File file = new File(itemPath); BufferedReader buffRead = new BufferedReader(new InputStreamReader(new FileInputStream(file))); boolean flag = true; int tmp = 0 , count = 0; int[] itemIndex = new int[DataInfo...
9
public static ScatterLocation getLocation(Player p) { for (ScatterLocation sl : locations) { if (sl.p == p || ScatterManager.score.getPlayerTeam(p) == sl.t) { return sl; } } return null; }
3
public String toJSON() { Map<String,Object> parameters = new LinkedHashMap<String,Object>(); parameters.put("grant_type",getGrantType()); if (GoCoin.hasValue(getCode())) { parameters.put("code",getCode()); } if (GoCoin.hasValue(getClientId())) { parameters.put("client_id",getCl...
4
public final TMState createTMStateWithID(Point p, int i){ TMState state = new TMState(i, p, this); addState(state); return state; }
0
public void printList() { Occurrence temp = head; while (head != null) { head.printOcc(); head = head.next; } head = temp; }
1
protected void cancelPurchaseButtonClicked() { log.info("Purchase cancelled"); try { domainController.cancelCurrentPurchase(); endSale(); model.getCurrentPurchaseTableModel().clear(); } catch (VerificationFailedException e1) { log.error(e1.getMessage()); } }
1
private String getCommand() { String command = ""; if (historyIndex>=0 && historyIndex < history.size()) { command = history.get(historyIndex); return command; } // Get last command from the text area command = textArea.getText(); int length = command.length(); if (length< lastCom...
3
public void WorkingElevatorEntHist() { if(WorkingElevator_lastState == RiJNonState) { EmergencyStopped_entDef(); } else { WorkingElevator_subState = WorkingElevator_lastState; switch (Work...
8
public User getProfileUser(String email) { initConnection(); //Check password matches for given email String preparedString = null; PreparedStatement preparedQuery = null; try { //Prepare Statement preparedString = "SELECT email, firstname, lastname FROM users WHERE email = ?;"; preparedQu...
3
public boolean createIndex(String tableName, int atributeIdx, String attributeName) { for(Record rec: indexesTable) { if(!tableName.equals((String) rec.getAttributes().get(TABLE_NAME))) { continue; } Integer atrIdx = (Integer) rec.getAttributes().get(ATR_IDX); if(atrIdx == atributeId...
6
public String GetImage() { if (bufpos >= tokenBegin) return new String(buffer, tokenBegin, bufpos - tokenBegin + 1); else return new String(buffer, tokenBegin, bufsize - tokenBegin) + new String(buffer, 0, bufpos + 1); }
1
@SuppressWarnings("deprecation") public Client(String playerName, String url, int port) throws RemoteException { UnicastRemoteObject.exportObject(this, 0); this.players = new ConcurrentHashMap<>(); this.playerName = playerName; if (System.getSecurityManager() == null) { System.setSecurityManager(new R...
6
public JTable createBookTable() { // Datenbankverbindung BookDB myBookDB = new BookDB(); // Bei der erstmaligen Initialisierung des Fensters gibt es noch keine // Darstellungsprobleme mit der Tabelle. Es werden alle Datensätze // angezeigt if (getSearchText().getText().matches("Bitte Suchbegriff eingeben"...
1
public void readString() throws ParseException { StringBuffer val = new StringBuffer(); while (column < line.length()) { char c = line.charAt(column++); if (c == '"') { value = val.toString(); return; } if (c == '\\') { c = line.charAt(column++); switch (c) { case 'n': ...
9
@Override public void setValue(Object o) { throw new UnsupportedOperationException("cannot yet set virtual "+this.getNodeProperty().getName()); }
0
@Override public String toString() { StringBuilder builder = new StringBuilder(m_having ? " HAVING " : " WHERE "); int fieldCnt = 0; for (WhereInfo whereInfo : m_whereInfo) { if (whereInfo.m_startBracket) { builder.append('('); continue; } if (whereInfo.m_endBracket) { builde...
9
public void update(Ship ship, int delta) { Iterator<Invader> it = invaders.iterator(); ArrayList<Invader> invaders_to_remove = new ArrayList<Invader>(); while (it.hasNext()) { Invader invader = it.next(); if (invader.is_alive()) { invader.update(delta); } else { invaders_t...
4
public synchronized void makeCustomRequest (AnalyticsRequestData argData) { if (!enabled) { Logger.logInfo("Ignoring tracking request, enabled is false"); return; } if (argData == null) { throw new NullPointerException("Data cannot be null"); } ...
6
private void initTextField(){ JLabel labelName = new JLabel("Name"); labelName.setBounds(10 , scrollTable.getY()+scrollTable.getHeight()+10, 95, 25 ); textFieldName = new JTextField(); textFieldName.setBounds(labelName.getX()+labelName.getWidth()+10, scrollTable.getY()+sc...
0
public Class getTypeClass() throws ClassNotFoundException { switch (typecode) { case TC_LONG: return Long.TYPE; case TC_FLOAT: return Float.TYPE; case TC_DOUBLE: return Double.TYPE; default: throw new AssertError("getTypeClass() called on illegal type"); } }
3
public void saveFile(String filename) { try { List<String> sections_list = new ArrayList<String>(); for (String key : map.keySet()) { String section = key.split("\\.")[0]; if (!sections_list.contains(section)) sections_list.add(section); } PrintWriter writer = new PrintWriter(new OutputStreamWr...
6
public Texture getTexture() { if(animation != null) { return animation.getTexture(); } return tex; }
1
@Override /** * makes the given little man perform the next action in the sequence of * little man actions. If the little man completes the final action in the * list, this action sequence is reset so that the next action to be * completed is the first action in the sequence. * * @para...
2
public boolean deleteClaim(Claim c, String actionType) { Element claimE; Claim claim; boolean flag = false; System.out.println(fileName + "Claim delete: " + actionType); for (Iterator i = root.elementIterator(actionType); i.hasNext();) { claimE = (Element)i.next(); System.out.println(fileName + "Claim d...
3
public void sort(Object array[]) { if (array != null && array.length > 1) { int maxLength; maxLength = array.length; swapSpace = new Object[maxLength]; toSort = array; this.mergeSort(0, maxLength - 1); swapSpace = null; toSort = null; } }
2
private void initObjs(){ //Object Packaging... jLabelsActvArr = initMyActvJLabelsArray(ACTV_ROW_NUM_MAX); jTextFieldsArr = initMyJTextFieldsArray(ACTV_ROW_NUM_MAX, DAYS_TO_ROLL_NONE); //Central Activity Rows jCheckBoxesCol1 = initMyJCheckBoxesArray(ACTV_ROW_NUM_MAX, ROLL_1_DAY_B...
7
private PrintWriter fluxSortant() { if (connecteur != null) { try { return new PrintWriter(connecteur.getOutputStream()); } catch (IOException e) { System.out.println("Problème de récupération du flux sortant du serveur"); } } return null; }
2
public Accounting() { accountTypes = new AccountTypes(); accounts = new Accounts(accountTypes); journalTypes = new JournalTypes(); journalTypes.addDefaultType(accountTypes); journals = new Journals(accounts, journalTypes); balances = new Balances(accounts, accountTypes...
2
private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); stream.writeObject(b); }
0
public void draw(Graphics g){ Color c = g.getColor(); g.setColor(Color.MAGENTA); g.fillRect(x,y,w,h); g.setColor(c); move(); }
0