text
stringlengths
14
410k
label
int32
0
9
public double getY(){ return y; }
0
@Override public String buscarDocumentoPorFechaEmision(String fechaemi1, String fechaemi2) { ArrayList<Venta> geResult= new ArrayList<Venta>(); ArrayList<Venta> dbVentas = tablaVentas(); String result=""; Date xfechaemi1; Date xfechaemi2; Date f1; ...
8
public BitSet diversify(List<Subset> neighborhood){ if(neighborhood == null) return m_Sbest.subset; BitSet result = new BitSet(m_numAttribs); double [] counts = new double[m_numAttribs]; int numNeighborhood = neighborhood.size (); for (int i = 0; i < m_numAttribs; i++) { if(i == m_...
7
public static void testSingleFile() throws Exception { long stime; long ltime; stime = System.currentTimeMillis(); InputStream fstream; BufferedReader reader; // String fname = "/home/nlp/Documents/bnc/bnc/A/A0/A05"; // DJK F //HGBC // String fname = "/home/nlp/Documents/bnc/bnc/A/A0/A05"; // Strin...
1
public void setNewspaper(Newspaper newspaper) { this.newspaper = newspaper; }
0
private void doSave() { myFile = doRead(); if (myFile == null){ return; } String name = myFile.getName(); showMessage("compressing "+name); String newName = JOptionPane.showInputDialog(this, "Name of compressed file", name + HUFF_SUFFIX...
9
public void notifyObserver(String str) { /* * if(str.matches("^0[0-9]+")) str = str.substring(1, str.length()); * * for(Observer obs : listObserver) obs.update(str); */ }
0
private void send(OutputStream outputStream) { String mime = mimeType; SimpleDateFormat gmtFrmt = new SimpleDateFormat("E, d MMM yyyy HH:mm:ss 'GMT'", Locale.US); gmtFrmt.setTimeZone(TimeZone.getTimeZone("GMT")); try { if (status == null) { ...
9
@Override public final void keyPressed(KeyEvent e) { int code = e.getKeyCode(); if (code > 0 && code < keys.length) keys[code] = true; if (TCode.DEBUG) // quick finding out of keycodes if (e.isAltDown() && e.getKeyCode() != KeyEvent.VK_ALT) System.out.println(e.getKeyChar() + " = " + e...
9
@Override public void setCell(int x, int y, boolean live) { if (y<0 || y>=getHeight()) return; if (x<0 || x>=getWidth()) return; if (live) world[y][x] = 0; }
5
public void update() { // update position getNextPosition(); checkTileMapCollision(); setPosition(xtemp, ytemp); // check flinching if (flinching) { long elapsed = (System.nanoTime() - flinchTimer) / 100000; if (elapsed > 400) { flinching = false; } } // if we hit a wall, go the other way!...
6
@Test public void testPertenece1() { boolean expected = true; boolean actual = arbolito.pertenece(8) && arbolito.pertenece(3) && arbolito.pertenece(6) && arbolito.pertenece(1) && arbolito.pertenece(10) && arbolito.pertenece(4) && arbolito.pertenece(7) && arbolito.pertenece(14) && arbolito.pertenece...
8
public float getEXP() { return exp / 100.0f; }
0
protected DaoFactory(IUserDao userDao, IMessageDao messageDao) { super(); this.userDao = userDao; this.messageDao = messageDao; }
0
public static Node inorderPred(Node root,int val) { if(root==null) return null; if(root.data==val) { if(root.left!=null) return maxValue(root.left); else return predecessor; } if(root.data>val) return inorderPred(root.left, val); else { predecessor=root; return inorderPred(root....
4
final public Token getToken(int index) { Token t = token; for (int i = 0; i < index; i++) { if (t.next != null) t = t.next; else t = t.next = token_source.getNextToken(); } return t; }
2
public static Mat findContours(Mat frame) { Mat contoursMat = preproc(frame); Mat result = new Mat(contoursMat.size(), CvType.CV_8U, new Scalar(255)); List<MatOfPoint> contours = new ArrayList<>(); List<MatOfPoint> contoursGeneral = new ArrayList<>(); Imgproc.findContours(conto...
7
public Frame() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setBounds(100, 100, 631, 366); contentPane = new JPanel(); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); contentPane.setLayout(new BorderLayout(0, 0)); setContentPane(contentPane); JPanel panel = new JPanel(); contentPane.add(pane...
4
@Override public String toString() { StringBuilder sb = new StringBuilder(); for (int i = 0; i < Combination.SIZE; i++) { sb.append(tokens.get(i).getColor().name()); } return sb.toString(); }
1
public ChannelBuffer decode(ChannelBuffer channelBuffer) throws Exception { dataSink.writeBytes(channelBuffer); int actualLengthFieldOffset = dataSink.readerIndex(); long frameLength; switch (headLength) { case 1: frameLength = dataSink.getUnsignedByte(actualLengthFieldOf...
7
public static boolean canMove(int x, int y) { for(Player p : players) { if(p.getX() == x && p.getY() == y) return false; } return !(x < 0 || y < 0 || x >= map.length || y >= map[0].length) && map[x][y] == 0; }
7
public static void printList(ListNode list) { while (list != null) { System.out.print(list.val + " "); list = list.next; } }
1
public void addUserPointsResult(int points) { if(points<0) this.user_point_lost -= points; else this.user_point_win += points; }
1
public double[] getRowCopy(int i){ if(i>=this.numberOfRows)throw new IllegalArgumentException("Row index, " + i + ", must be less than the number of rows, " + this.numberOfRows); if(i<0)throw new IllegalArgumentException("Row index, " + i + ", must be zero or positive"); return Conv.copy(this...
2
public T getItemById(final long id) { for (final T item : rows) { if (item.getId() == id) return item; } throw new NoSuchElementException(); }
2
public void addFileChangeListener(FileChangeListener listener) { fileListeners.add(listener); }
0
public static List<Unit> UnitParser (String filePath, String delimiter) { List<Unit> units = new ArrayList<Unit>(); try { FileReader fr = new FileReader(filePath); BufferedReader br = new BufferedReader(fr); String currentRecord; while((currentRecord = br.readLine()) != null) { String[]...
9
public void fill(File gdbFile) { int countNoFile = 0; String fileNofoundName = ""; String gdbFileName = gdbFile.getName(); String[] fields = {"RaceLaps", "TrackName", "GrandPrixName", "VenueName"}; gdbName = gdbFileName.substring(0, gdbFileName.length() - 4); String[] tr...
2
public int getCliente() { return cliente; }
0
public void patternText(){ this.text.insert(0, CrawlResultFormat.webPageHead(this)); this.text.append(CrawlResultFormat.webPageTail()); }
0
public boolean isGameOver() throws Exception { if ((this.numEmptySquares == 0) || isWin()) { return true; } else { return false; } }
2
public RBNode search(int i) { if (isNil()) { return null; } else if (getKey() == i) { comparisonsDel++; return this; } else { if (i < getKey() && hasLeftChild()) { comparisonsDel++; ...
5
private void generateProfileFromText() { if (arglist.size() != 1) { System.err.println("Need to specify text file path"); return; } File file = new File(arglist.get(0)); if (!file.exists()) { System.err.println("Need to specify existing text file path"...
7
public static String webPageHead(WebPage wp){ return "<page_html_code url=\"" + wp.getUrl() // + "\" depth=\"" + wp.getDepth() // + "\" father=\"" + wp.getFatherUrl() // + "\" charset=\"" + wp.getCharSet() // + "\">" + ln; }
0
public static boolean isCartLockedDown(EntityMinecart cart) { int x = MathHelper.floor_double(cart.posX); int y = MathHelper.floor_double(cart.posY); int z = MathHelper.floor_double(cart.posZ); if (BlockRailBase.func_150049_b_(cart.worldObj, x, y - 1, z)) y--; TileE...
4
private static void addBlocksToRootUsedInEditingScreen(RootUsedInEditingScreen rootUsedInEditingScreen, Root root) { List<BlockUsedInEditingScreen> blocksUsedInEditingScreen = new ArrayList<BlockUsedInEditingScreen>(); for ( Node node : root.getChildren()) { if ( node instanceof Block && !(...
4
public void terminate(Object[] arguments) throws MaltChainedException { // if (getAlgorithm() instanceof Trainer) { // ((Trainer)getAlgorithm()).terminate(); // } getAlgorithm().terminate(); if (getGuide() != null) { getGuide().terminate(); } if (mode == LEARN) { endTime = System.currentTimeMillis(); ...
7
@Override public String getColumnName(int column) { String name = ""; switch (column) { case 0: name = "Name"; break; case 1: name = "Picture"; break; case 2: name = "ID"; br...
5
public void loadStats(String name) { PoolConnection pcon = ConnectionPool.getConnection(); PreparedStatement ps = null; try { Connection con = pcon.connect(); ps = con.prepareStatement("SELECT * FROM `accounts` WHERE `name` = ?"); ps.setString(1, name); ResultSet rs = ps.executeQuery(); if (rs.ne...
9
void floyd(int rows) { for (int i = 0; i < rows; i++) { for (int j = 0; j < rows; j++) { distancias[i][j] = grafo[i][j]; padres[i][j] = i; if (grafo[i][j] == INF || i == j) { padres[i][j] = -1; } } } // print(padres); for (int k = 0; k < rows; k++) { // print(distanci...
8
@SuppressWarnings("resource") public void CrearBaseDeDatos() throws SQLException, FileNotFoundException, IOException { File dir = new File("/jpox.properties"); System.out.println("dire path " + dir.getAbsolutePath()); FileReader fr = new FileReader(dir.getAbsolutePath()); BufferedReader bf = new BufferedRea...
6
public int setVertical (int v) { if (TopLine == null) return 0; int NewTop = LineCount * v / 1000; if (NewTop > TopLineCount) { for (int i = TopLineCount; i < NewTop; i++) { if (TopLine.next() == null) break; TopLine = TopLine.next(); TopLineCount++; } repaint(); } else if (NewTop <...
7
@Override public boolean equals(Object obj) { if (obj == null) return false; if (obj == this) return true; if (obj.getClass() != getClass()) return false; ExtendedAttribute attr = (ExtendedAttribute)obj; return attr.getName().equal...
4
public void setVenue(String venue) { this.venue = venue; }
0
public static void main(String[] args) { int result = 0; for(int i = 3; i < 1000; i+=3) { result += i; } for(int i = 5; i < 1000; i+=5) { if(i % 3 != 0) result += i; } System.out.println(result); }
3
public boolean saveDialogBox () { if (theApp.getLogging()==true) return false; String file_name; // Bring up a dialog box that allows the user to select the name // of the saved file JFileChooser fc=new JFileChooser(); // The dialog box title // fc.setDialogTitle("Select the log file name"); // Start in...
6
public static ArrayList<Integer> inorderTraversalIterative(TreeNode root) { ArrayList<Integer> inorder = new ArrayList<Integer>(); Stack<TreeNode> stack = new Stack<TreeNode>(); if(root == null) { return inorder; } while(!stack.isEmpty() || root != null) {...
4
public void changebonus(String[] split, String command) { if (split.length != 3) { PrintMessage("Syntax:!bonus [game] [#]"); return; } TournyGame m = (TournyGame) games.get(split[1]); if (m == null) { PrintMessage(split[1] + " is not an existing game"); return; } try { int b = new Inte...
4
public static double calculatePIdent(Hit h) { if(h==null){ return 0; } if(h.getHitHsps()==null){ return 0; } for(Hsp hsp:h.getHitHsps().getHsp()){ if(hsp.getHspIdentity()==null){ return 0; } if(hsp.getHsp...
7
public void move(long delta) { // if we're moving left and have reached the left hand side // of the screen, don't move if ((dx < 0) && (x < 10)) { return; } // if we're moving right and have reached the right hand side // of the screen, don't move if ((dx > 0) && (x > 750)) { return; } super...
4
private void endVideo(String to) { if (to.equals("slide")) slide.addEntity(video); else if (to.equals("quizslide")) quizSlide.addEntity(video); else if (to.equals("scrollpane")) scrollPane.addEntity(video); else if (to.equals("feedback")) quizSlide.addFeedback(video); }
4
public void setMap(Carte map) { this.map = map; if (map != null){ this.add(map.getCartePanel()); this.setVisible(true); } }
1
public void actionPerformed(ActionEvent e) { if (e.getSource() == backButton) { this.f.getPanelJudgeMenu().setVisible(true); this.setVisible(false); this.remove(roundCombo); this.remove(typeCombo); /***************************************************/ // this.weightField.setText(""); // this.deadli...
7
public Component getTableCellRendererComponent (JTable table, Object value, boolean selected, boolean focused, int row, int column) { setEnabled(table == null || table.isEnabled()); if(column==0 || column==1) { setHorizontalAlignment(SwingConstants.CENTER); ...
6
public LinkedList<String> path() { LinkedList<String> out = new LinkedList<String>(); State s = prev; int oldOrientation = orientation; while (s != null) { if (oldOrientation != s.orientation) { if (oldOrientation == World.NORTH && s.orientation == World.WEST) { out.add("r"); } else if (...
7
private boolean check() { if (!isBST()) StdOut.println("Not in symmetric order"); if (!isSizeConsistent()) StdOut.println("Subtree counts not consistent"); if (!isRankConsistent()) StdOut.println("Ranks not consistent"); if (!is23()) StdOut.println("Not a 2-3 tree"...
9
public void addAttri(GeneratorAttri attri) { if (attri != null && this.attrislist != null) { if (Contains(attri) == -1) this.attrislist.add(attri); } }
3
public boolean processCommand(Command command) { boolean wantToQuit = false; if(command.isUnknown()) { System.out.println("I don't know what you mean..."); return false; } // Given one of these commands, do the following String commandWord = command.getCom...
7
private ArrayList<Task> getTodayTasks(ArrayList<Task> taskList) { String day = String.valueOf(Calendar.getInstance().get(Calendar.DAY_OF_MONTH)); String month = String.valueOf(Calendar.getInstance().get(Calendar.MONTH)+1); String year = String.valueOf(Calendar.getInstance().get(Calendar.YEAR)); ArrayList<Task> ...
6
private void getNewOffscreen() { log.logln(LogL.GUI_SEQ, "GraphPanel.getNewOffscreen: Allocating a new offscreen image."); imageSizeX = getWidth(); imageSizeY = getHeight(); offscreen = null; if(imageSizeX > 0 && imageSizeY > 0) { // update the transformation object pt.setWidth(imageSizeX); pt.setHe...
2
public boolean dropon(Widget w, Coord c) { for (Widget wdg = w.lchild; wdg != null; wdg = wdg.prev) { if (wdg == this) continue; Coord cc = w.xlate(wdg.c, true); if (c.isect(cc, (wdg.hsz == null) ? wdg.sz : wdg.hsz)) { if (dropon(wdg, c.add(cc....
9
public void update() { for (int j = 22; j > 5; j--) { for (int i = 2; i < 12; i++) { if (!form.field[i][j]) { int l = -1; int type; sequence(); do { l++; if...
8
public static JSONObject toJSONObject(String string) throws JSONException { JSONObject jo = new JSONObject(); XMLTokener x = new XMLTokener(string); while (x.more() && x.skipPast("<")) { parse(x, jo, null); } return jo; }
2
public GridFrame(){ frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE); frame.setLayout(new BorderLayout()); JButton exp = new JButton("Export"); exp.setFocusable(false); exp.addActionListener(new ActionListener() { @Override public void actionP...
2
public void draw(Graphics g, PositionTransformation pt) { Position p1 = startNode.getPosition(); pt.translateToGUIPosition(p1); int fromX = pt.guiX, fromY = pt.guiY; // temporarily store Position p2 = endNode.getPosition(); pt.translateToGUIPosition(p2); if((this.numberOfMessagesOnThisEdge == 0)&& (t...
3
@Override public void execute(CommandExecutor player, String[] args) { short w = 0; if (args.length == 1) { w = 64; } else if(args.length == 4) { LevelHandler handler = player.getServer().getLevelHandler(); handler.loadLevels(); if(handler.findLevel(args[0]) == null) { if (w != 0) handler...
4
private static int findInternalSubsetStartCharWildcard( final char[] text, final int offset, final int maxi, final int[] locator) { boolean inQuotes = false; boolean inApos = false; for (int i = offset; i < maxi; i++) { final char c = text[i]; ...
8
public static String constructString(StringBuilder sb) { String midStep = sb.toString(); Map<String,String> jsonData = parser.parseJson(midStep); return jsonData.get("amount"); }
0
public void successor(Integer[] T){ Integer[] S = new Integer[k+2]; S[0] = 0; // t_0 for(int i = 1; i < k+1; i++) { S[i] = T[i-1]; } S[k+1] = n+1; // t_{k+1} int j = 1; while(j <= k && S[j] == j) { j++; } if(k % 2 != j % 2)...
7
private ConfigurationManager() {}
0
public double getNormalDistribution(double lowerLimit, double upperLimit, double standardDeviationSpread) { if (standardDeviationSpread < 1.0 || standardDeviationSpread > 5.0) // if standardDeviationSpread is < 1.0 there is a risk of excessive iterations of the range-checking do-while() loop throw new Illegal...
4
@RequestMapping(value = "/", method = RequestMethod.GET) public String home(Locale locale, Model model) { logger.info("Welcome home! The client locale is {}.", locale); Date date = new Date(); DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale); String formatt...
0
public DiagramComponent connectLines(){ CompositeDiagramShape result = new CompositeDiagramShape(); //find all lines ArrayList<DiagramShape> lines = new ArrayList<DiagramShape>(); Iterator it = shapes.iterator(); while(it.hasNext()){ DiagramShape shape = (DiagramShape) it.next(); if(shape.getPoints().s...
9
public static String[] verifyDateArguments(String[] args) throws Exception { if (null == args || args.length != 3) throw new IncorrectNoOfArgumentsException(3); int year = Integer.parseInt(args[0]); if (year < 0) throw new IllegalArgumentException("month value [" + year + "] exceed range"); int month = Integer....
7
protected Entity getEntityCollidingWithParticle() { if(!collidable) return null; if(game.localEntity.intersects(this)) return game.localEntity; for(int i = 0; i < game.globalEntity.length; i++){ if(game.globalEntity[i] != null) if(game.globalEntity[i].intersects(this)) return game.globalEntity[i...
7
public boolean ingresoCorrecto(int a, int b, String v) { obtenerLimites(obtenerCuadrante(a, b)); int valor=Integer.parseInt(v); for(int x=pvCuadrante; x<=(pvCuadrante+2); x++) { for(int y=phCuadrante; y<=(phCuadrante+2); y++) { if(txtTablaHered...
9
public static void main(String[] args){ WikiaXMLHandler xmlHandler = new WikiaXMLHandler(); SongFinder songFinder = new SongFinder(); try { String[] urlAndLyrics = xmlHandler.getUriAndLyricsSnippet("Adele", "Rolling in the deep"); String lyrics = songFinder.findAndExtractSong(urlAndLyrics[0]...
1
public boolean onkoShakkiMatti(String vari) { for (int i = 0; i <= 7; i++) { for (int t = 0; t <= 7; t++) { if (getNappula(i, t) != null && getNappula(i, t).getVari().equals(vari) && !getNappula(i, t).mahdollisetSiirrot(i, t, ruudukko).isEmpty()) { ...
5
@FXML private void handleBtnBackAction(ActionEvent event) { btnBack.setDisable(true); final Region root; try { root = FXMLLoader.load(PosApplication.class.getResource("pos.fxml")); } catch (IOException e) { throw new RuntimeException(e); } Mai...
1
public void drawMap(Graphics g) { for (int r = 0; r < map.length; r++) { for (int k = 0; k < map[0].length; k++) { int x = k * GameObject.tileSize; int y = r * GameObject.tileSize; if (camera.intersects(x + GameObject.tileSize, y, 1, 1) || camera.inter...
9
private static boolean[] primeBoolArray(int limit) { boolean[] nums = new boolean[limit]; for (int i = 2; i < nums.length; i++) nums[i] = true; int nextPrime = 2; while (nextPrime < nums.length / 2) { int i = nextPrime; for (; i < nums.length; i += nextPrime) nums[i] = false; nums[nextPrime] = t...
5
public Serializable decode(File file, Map parameters) { if (file.getName().endsWith(GRAMMAR_SUFFIX)) return readGrammar(file); if (file.getName().endsWith(REGULAR_EXPRESSION_SUFFIX)) return readRE(file); return readAutomaton(file); }
2
public int run(String[] args) throws Exception { // Parameter checking if (args.length < 2) { // Not enough parameters System.out.println("Error - Not enough parameters"); System.exit(0); } else if (args.length > 2) { // Too many parameters System.out.println("Error - Too many parameters"); Sys...
2
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onPlayerJoin(PlayerJoinEvent event){ Player player = event.getPlayer(); //Keep track of all the players that have logged in if(!(plugin.getPlayersLoggedInSinceBoot().contains(player.getName()))) plugin.getPlayer...
4
private void heapifyDown(int index) { int leftChildIndex = index * 2 + 1; int rightChildIndex = index * 2 + 2; int swapIndex = index; // if left child exists and lesser than current node if (leftChildIndex < currentIndex) { if (heap.get(leftChildIndex).compareTo(heap.get(swapIndex)) < 0) swapIndex = l...
5
public static void main(String[] args) throws FileNotFoundException, IOException, InvalidKeyException, IllegalBlockSizeException, InvalidAlgorithmParameterException, BadPaddingException, Exception { //1. Initialization int ctr = 1; int sizeBytes = 0; int l= 128; int k = ...
4
public int getCurrentMap(){ return this.currentMap; }
0
public void paintComponent(Graphics g) { super.paintComponent(g); if(gameStage == GameStage.START_MENU){ g.drawImage(Dialogue.getStartMenu(), 0,0,null); } else if(gameStage == GameStage.IN_GAME){ Graphics2D g2 = (Graphics2D) g; for(int i = 0; i < 5; i++){ for(int j = 0; j < 5; j++){ g2.drawIma...
4
private boolean versionCheck(String title) { if (this.type != UpdateType.NO_VERSION_CHECK) { final String version = this.plugin.getDescription().getVersion(); if (title.split(" v").length == 2) { final String remoteVersion = title.split(" v")[1].split(" ")[0]; // Get the ...
5
private static String next(Queue<String> parts) { if (parts.isEmpty()) return null; String ret = parts.poll(); if (ret.equals("#")) { parts.clear(); return null; } if (ret.equals("-") || ret.equals(",")) return null; return ret; }
4
public String toStringSummary() { int resultsetLength; String result; String titles; int i; int j; if (m_NonSigWins == null) return "-summary data not set-"; resultsetLength = 1 + Math.max((int)(Math.log(getColCount())/Math.log(10)), ...
9
private URL getResourceURL() { return resource_url; }
0
public ArrayList<Rectangle2D> getFlatRects(Rectangle2D rectangle) { if(noChildren()) { ArrayList<Rectangle2D> tempRects = new ArrayList<Rectangle2D>(); for(int x = 0; x<flatRects.size(); x++) { tempRects.add(flatRects.get(x)); } return tempRects; } else { ArrayList<Rectangle2D> tempRects = new Ar...
4
private void checkElements( int offset, int length ) { int end = offset + length; Document document = jText.getDocument(); Element element; do{ try { // We need to use a ParagraphElement because a CharacterElement produce problems with formating in a word ...
4
public static Border getDefaultEmptyEtchedBorder() { return defaultEmptyEtchedBorder; }
0
public boolean overlaps(Interval<T> interval) { if (interval == null) throw new NullPointerException("interval is null"); return (this.contains(interval.min) && interval.contains(this.max)) || (this.contains(interval.max) && interval.contains(this.min)) || (interval.contains(this.min) && interval.contai...
9
public Object[][] getQueryResultAsObjectArray(String query){ List<List<Object>> queryResult = getQueryResult(query); if(queryResult==null||queryResult.size()<1) return null; Object[][] result = new Object[queryResult.size()][queryResult.get(0).size()]; for (int i = 0; i < result.length; i++) { for (int j = 0...
4
private void postPlugin(final boolean isPing) throws IOException { // The plugin's description file containg all of the plugin data such as name, version, author, etc final PluginDescriptionFile description = plugin.getDescription(); // Construct the post data final StringBuilder data =...
9
void updateUIText() { // borders br1.setTitle(UIText[0][curLang]); br2.setTitle(UIText[1][curLang]); br3.setTitle(UIText[2][curLang]); br4.setTitle(UIText[3][curLang]); // buttons addFileButton.setText(UIText[4][curLang]); changeFileButton.setText(UIText[...
8
@SuppressWarnings({ "unchecked", "rawtypes" }) public LevelCreator() { addWindowListener(new WindowAdapter() { @Override public void windowClosed(WindowEvent e) { Game.get().display.getFrame().setVisible(true); } }); setResizable(false); setTitle("Create Maze"); setDefaultCloseOperation(JFrame.D...
7