text
stringlengths
14
410k
label
int32
0
9
public List<String> getValues() { List<String> valuesList = new ArrayList<String>(); for(int i = 0; i < size; i++) { valuesList.addAll(map[i].getValues()); } return valuesList; }
1
public static Staff getStaffByID(String staffID){ try { if(conn == null || conn.isClosed()){ conn = DatabaseConnection.getConnection(); } } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } try { Statement stmnt = conn.createStatem...
5
public void render() { if(isMoving()) { if(hspeed < 0){ prevDir = LEFT; anim_left.play(); drawImage(anim_left.getImage(), (int)x, (int)y, 0); anim_left.update(); } else if(hspeed > 0) { prevDir = RIGHT; anim_right.play(); drawImage(anim_right.getImage(), (int)x, (int)y, 0); ...
6
private Venda finazilarVenda(double desconto, String formaPagamento, String cliente, String dependente) throws ExceptionGerenteVendas { if(atual != null){ atual.addDesconto(desconto); atual.setFormaPagamento(formaPagamento); atual.setCliente(cliente); atual.setDepend...
1
private boolean yesOrNo() { String yesOrNo = scanYesOrNo(); switch (yesOrNo) { case "YES": case "Y": return true; case "NO": case "N": return false; default: return false; } }
4
public void onKeyPressed(KeyEvent e) { switch (e.getKeyCode()) { case VK_UP: case VK_W: // Arrow up key: move direction = forward (infinitely) moveDirection = 1; moveAmount = Double.POSITIVE_INFINITY; break; case VK_DOWN: case VK_S: // Arrow down key: move direction = backward (infinitely) ...
8
public boolean addSentence(String word, final Sentence sentence) throws IOException { final boolean[] added = new boolean[] { true }; final int[] count = new int[] { 0 }; File file = getWordFile(word); if (file.exists()) { if (file.length() > 40000) return false; scan(file, new SentenceParserCall...
5
public static Sistema getInstance() { if (instance == null) { instance = new Sistema(); } return instance; }
1
public Object nextValue() throws JSONException { char c = this.nextClean(); String string; switch (c) { case '"': case '\'': return this.nextString(c); case '{': this.back(); return new JSONObject(this); ...
7
private void saveConfig(){ String str = new String(); for(int i=0; i<config.length; i++) str = new String(str+properties[i]+";"+config[i]+"\r\n"); BufferedWriter writer = null; try{ writer = new BufferedWriter( new FileWriter(file)); writer.write(str); } catch ( IOException e){} finally{ ...
4
public void loadConfigFiles() { try { loadBoardConfigFile(); loadLegendConfigFile(); } catch (FileNotFoundException e) { System.out.println(e.getMessage()); } catch (BadConfigFormatException e) { System.out.println(e.getMessage()); } }
2
public static void main(String[] args) { if (args.length > 1) { System.err.println("Usage: java HackAssembler [.asm name]"); System.exit(-1); } @SuppressWarnings("unused") HackTranslator assembler; //If a file is passed as an argument assemble ...
5
public int calculate(int a, int b) { return a / b; }
0
final private boolean jj_3R_23() { Token xsp; xsp = jj_scanpos; if (jj_3R_28()) { jj_scanpos = xsp; if (jj_3R_29()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = (getToken(1).kind == INDENTIFIER1 || getToken(1).kind == INDENTIFIER2) && jep.funTab.c...
9
public static String getStackTrace(Throwable t) { String stackTrace = null; try { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); t.printStackTrace(pw); pw.close(); sw.close(); stackTrace = sw.getBuffer()...
1
public Metadata(Object obj) { primitiveValues = new HashSet<String>(); collectionsValues = new HashSet<String>(); associatedValues = new HashSet<String>(); this.obj = obj; if (obj == null) { classMetadata = null; return; } classMetadata = g...
5
@Override public Result select(String[] conditions, String[] arguments) { //Check for parameter errors if(arguments.length>1){ return new Result(102); }else if(conditions.length!=arguments.length){ return new Result(103); }else { String[] temp = ne...
9
final public Number number(boolean requireEOF) throws ParseException { Number val = null; Token t = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case INTEGER: t = jj_consume_token(INTEGER); val = new Long((t.image.startsWith("+")) ? t.image.substring(1) : t.image); bre...
5
public <T> T requestService(Class<T> service) { T result = null; ServiceLoader<T> impl = ServiceLoader.load(service); for (T loadedImpl : impl) { result = loadedImpl; if (result != null && DEFAULT_SERVICES.containsKey(service.getName())) { if (DEFAULT_SER...
6
public void save(String fileName, String outputFormat) throws IOException { BufferedImage output = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); int[] data = ((DataBufferInt) output.getRaster().getDataBuffer()) .getData(); for (int i = 0; i < data.length; i++) { data[i] = pixels[i]; ...
1
public FrameGeneralWindow getMainWindow(){ return mainWindow; }
0
@Override public double getArea() { return Math.PI * _radius * _radius; }
0
@Override public String getDesc() { return "EarthQuake"; }
0
public double winPossibility(ActionList history, GameInfo gameInfo, int playerHandStrength) { // find number of raise actions in history int numRaises = history.numberOfRaises(); // find histogram and adjusted hand strength int[] histogram = historyToHandStrength.get(numRaises); int aphs = adjust...
3
public static void main(String[] args) { (new InterfaceDeUsuario()).menu() ; }
0
@Override public List<User> getAll() throws SQLException { List<User>users = null; Session session=null; try{ session=HibernateUtil.getSessionFactory().openSession(); session.beginTransaction(); users = session.createCriteria(User.class).list(); session.getTransaction().commit(); }catch(Exceptio...
3
public boolean insert(final Block block) { final Def def = operandAt(block); if (def == null) { return true; } if (!def.downSafe()) { return true; } if ((def instanceof Phi) && !((Phi) def).willBeAvail()) { return true; } return false; }
4
public void writeToSimpleAdjacencyList(ArrayList<Node> network, String file){ try { BufferedWriter out = new BufferedWriter(new FileWriter(file)); Set<String> links = new HashSet<String>(); for(Node N : network) { if(N.id % 1000 == 0) ...
5
@Override public UsuarioBean set(UsuarioBean oUsuarioBean) throws Exception { try { oMysql.conexion(enumTipoConexion); oMysql.initTrans(); if (oUsuarioBean.getId() == 0) { oUsuarioBean.setId(oMysql.insertOne("usuario")); } oMysql.up...
2
private int getNearestPeriodStartToAndBefore(LocalDateTime start) { // compute periods count difference from referenceStart to given start int periods = 0; switch(repeatingPeriod.getClass().getName()) { case "org.joda.time.Months": periods = Months.monthsBetween(refer...
4
public int largestRectangleArea(int[] height) { // Start typing your Java solution below // DO NOT write main() function Stack<Integer> s = new Stack<Integer>(); int i = 0; int max = 0; int counter = 0; while (i <= height.length - 1) { if (s.isEmpty() || height[i] >= s.peek()) { s.push(height[i]);...
7
public ANN(Agent owner, Genotype g) throws WeigthNumberNotMatchException { layers = new Vector<Layer>(g.getHiddenLayerCount()); this.owner = owner; // Input layer Layer inp = new Layer(); // Input neurons inp.insertNeuron(new ConstantOneInputNeuron()); inp.insertNeuron(new HungerInputNeuron(this.owner)); ...
5
public static void main(String[] args) throws ClassNotFoundException, JsonParseException, JsonMappingException, IOException, SQLException { TwitterModel twitterModel = null; HbaseConfModel hbaseConfModel; MediaConfModel mediaConfModel; // TODO 設定ファイルでMariaDBなどに切り替える ...
5
public void matchesAnnotatedWithType() { assert annotatedWithType( Test.class ).matches( this.getClass() ); assert !annotatedWithType( Parameters.class ).matches( this.getClass() ); }
0
private void distinto() throws Exception{ op2 = pila.pop(); if (op2.getValor().equals("null")) throw new Exception("Una de las variables esta sin inicializar!"); op1 = pila.pop(); if (op1.getValor().equals("null")) throw new Exception("Una de las variables esta sin inicializar!"); Elem resultado = new ...
8
private static boolean checkAuto(String s, String t){ int sindex = 0; for(int i=0;i<t.length();i++, sindex++){ while(sindex<s.length() && s.charAt(sindex)!=t.charAt(i)) sindex++; if(sindex >= s.length()) return false; } return true; }
4
public int getDestination(String input) { if (destinations.containsKey(input)) return destinations.get(input); else if (isOtherPunctuation(input)) return otherPunctuationDestination; else if (isSpace(input)) return spaceDestination; else if (isNum(input)) return numDestination; else return defaultDe...
4
public int characterAt(int at) throws JSONException { int c = get(at); if ((c & 0x80) == 0) { return c; } int character; int c1 = get(at + 1); if ((c1 & 0x80) == 0) { character = ((c & 0x7F) << 7) | c1; if (character > 0x7F) { ...
8
public static IContextBuilder getBuilder(String str) { if (str.equals("text")) return new TextBuilder(); else if (str.equals("image")) return new ImageBuilder(); else if (str.equals("list")) return new ListBuilder(); else if (str.equals("barcode")) return new BarCodeBuilder(); else return new...
4
@Override public int print(Graphics g, PageFormat pageFormat, int pageIndex) throws PrinterException { if (pageIndex >= tripsOfDay.size()) return NO_SUCH_PAGE; Font oldFont = g.getFont(); Graphics2D g2d = (Graphics2D) g; double scaleX = g2d.getDeviceConfiguration().getDefaultTr...
9
public OutputStream getOutputStream(){ try { return socket.getOutputStream(); } catch (IOException e){} return null; }
1
public Relojito() { initComponents(); //aqui dentro del constructor programaremos. Thread t1=new Thread(new Runnable() { @Override public void run() { while(true){ try { Calendar cal=Calendar.getInstance(); ...
3
public void start() throws IOException { Set<SelectionKey> keys; Iterator<SelectionKey> keyIterator; this.keepGoing = true; while (keepGoing) { int readyChannels = this.selector.select(); if (readyChannels == 0) continue; keys ...
9
public boolean isOptOut() { synchronized(optOutLock) { try { // Reload the metrics file configuration.load(getConfigFile()); } catch (IOException ex) { if (debug) { Bukkit.getLogger().log(Level.INFO, "[Metrics] " + ex.ge...
4
@AfterMethod(alwaysRun = true) public void tearDown() throws Exception { // Killing existing instances if (driver != null) { driver.quit(); } }
1
public void disconnect(){ if(MFServer.DEBUG_CONNECTIONS){ System.out.print("==> [CONNECTION] '"+name+"' disconnected, trying to close socket..."); } try { socket.close(); if(MFServer.DEBUG_CONNECTIONS){ System.out.println("[DONE]"); ...
8
private void saveTarget(final ExprInfo exprInfo, final VarExpr tmp, final Expr real, final SSAConstructionInfo consInfo) { if (SSAPRE.DEBUG) { System.out.println("SAVE TARGET: " + real + " to " + tmp + "--------------------------------"); } Assert.isTrue(real instanceof MemRefExpr); // Replace //...
3
public void action() { ACLMessage message = null; switch (state) { case SENDING: message = new ACLMessage(ACLMessage.REQUEST); message.addReceiver(aid); try { message.setContentObject(agentDataContainer); }...
5
public void paint(Graphics g2) { if (applet != null) return; int w = getWidth() / 2; int h = getHeight() / 2; if ((img == null) || (img.getWidth() != w) || (img.getHeight() != h)) { img = createVolatileImage(w, h); } Graphics g = img.getGraphics(); g.drawImage(bgImage, 0, 0, null); ...
9
public AboutAction() { super("About...", null); }
0
public static String factions(MOB E, HTTPRequest httpReq, java.util.Map<String,String> parms) { for(final Enumeration e=E.factions();e.hasMoreElements();) { final String strip=(String)e.nextElement(); E.removeFaction(strip); } if(httpReq.isUrlParameter("FACTION1")) { int num=1; String whichFactio...
8
public void testGetShortName_berlin() { DateTimeZone berlin = DateTimeZone.forID("Europe/Berlin"); assertEquals("CET", berlin.getShortName(TEST_TIME_WINTER, Locale.ENGLISH)); assertEquals("CEST", berlin.getShortName(TEST_TIME_SUMMER, Locale.ENGLISH)); if (JDK6) { assertEquals("...
1
private void initGameBoard(Piece[][] contents) { _gameboard = new JPanel(); _gameboard.setLayout(new GridLayout(8, 8)); _gameboard.setPreferredSize(BOARDSIZE); _gameboard.setBounds(0, 0, BOARDSIZE.width, BOARDSIZE.height); for (int i = 0; i < 8 * 8; i++) { JPanel squa...
7
@Override public void map( LongWritable key, Text text, OutputCollector<Text, IntWritable> textIntWritableOutputCollector, Reporter reporter) throws IOException { try { Row row = (Row) unmarshaller.unmarshal(new StringReader(text.toStri...
1
@Override public Message toMessage(Session session) throws JMSException { BlobMessage message = ((ActiveMQSession) session) .createBlobMessage(image); setMessageProperties(message); message.setJMSType(TYPE); return message; }
0
public String nextToken() throws JSONException { char c; char q; StringBuilder sb = new StringBuilder(); do { c = next(); } while (Character.isWhitespace(c)); if (c == '"' || c == '\'') { q = c; for (;;) { c = next(); ...
9
public static void chargerFichierDonnees() { // Lecture des donnees des etudiants try { FileInputStream fstream = new FileInputStream("etudiants.txt"); DataInputStream in = new DataInputStream(fstream); BufferedReader br = new BufferedReader(new InputStreamReader(in)); String ligne; while ((li...
6
public static void updateBankVowelPurchase() { PlayerTurn playerTurn = new PlayerTurn(); playerTurn.updatePlayersTurn(); try { if (getBankPlayerUp() >= 250) { setHasEnough(true); long bank = 0; long updateBank; int contr...
8
private boolean isOver() { int end = tracksize -1; return (posFido >= end || posSpot >= end || posRover >= end); }
2
public boolean inArea(int x, int z, String worldname) { boolean isInArea = false; if(world.equalsIgnoreCase(worldname)) { if(minX <= x && x <= maxX) { if(minZ <= z && z <= maxZ) { isInArea = true; } } } return isInArea; }
5
private String toByteString(byte b) { String s = "" + Integer.toBinaryString(b & 0xFF); while(s.length() < 8) s = "0" + s; return s; }
1
public String getNickname(){ switch(this){ case LAWFUL_GOOD: return "Crusader"; case NEUTRAL_GOOD: return "Benefactor"; case CHAOTIC_GOOD: return "Rebel"; case LAWFUL_NEUTRAL: return "Judge"; case TRUE_NEUTRAL: return "Undecided"; case CHAOTIC_NEUTRAL: return "Free Spirit"; case LAWFUL_EVIL: return "Dom...
9
public void visit_invokespecial(final Instruction inst) { final MemberRef method = (MemberRef) inst.operand(); final Type type = method.nameAndType().type(); stackHeight -= type.stackHeight() + 1; if (stackHeight < minStackHeight) { minStackHeight = stackHeight; } stackHeight += type.returnType().stack...
1
public static final Class<?> getClass(final Type type) { final Class<?> result; if (type instanceof Class<?>) { result = (Class<?>) type; } else if (type instanceof ParameterizedType) { final Type rawType = ((ParameterizedType) type).getRawType(); result = getClass(rawType); } else if (type instanceof...
9
public void cargarArchivoTXT(String ruta) { File archivoAutomata = null; FileReader fr = null; BufferedReader br = null; JFileChooser selector = null; try { if (ruta == null) { // si no se pasa una ruta, hay que selecionar el archivo JOptionPane.show...
6
@Override public void actionPerformed(ActionEvent arg0) { String s = (String) categories.getSelectedItem(); DetailsPanelController pc = DetailsPanelController.getInstance(); if (s.equals("")) { //If the "no category" category is chosen, create a new dummy category and set //that as the currentTasks() categ...
5
public void createIndexes() { personIndex = new HashMap<String, Person>(); for (Person person : getPeople()) { personIndex.put(person.getId(), person); } familyIndex = new HashMap<String, Family>(); for (Family family : getFamilies()) { familyIndex.put(family.getId(), fam...
6
private static String readIntegerString() { // read chars from input following syntax of integers skipWhitespace(); if (lookChar() == EOF) return null; if (integerMatcher == null) integerMatcher = integerRegex.matcher(buffer); integerMatcher.region(pos,buffer.length()); ...
3
public final synchronized long readLong(){ this.inputType = true; String word=""; long ll=0L; if(!this.testFullLineT) this.enterLine(); word = nextWord(); if(!eof)ll = Long.parseLong(word.trim()); return ll...
2
public int getColor(String part) { if(part.equals("head")) { return handsColor; } if(part.equals("hands")) { return handsColor; } if(part.equals("body")) { return bodyColor; } if(part.equals("legs")) ...
5
public String getAlfrescoTicket(String username, String password) { String url = "http://phaedrus.scss.tcd.ie/CS3BC2/group6/tomcat/alfresco" + "/service/api/login?u=" + username + "&pw=" + password; HttpClient client = new HttpClient(); GetMethod method = new GetMethod(url); String respo...
3
@Override public void setIdleTimeout(long idleTimeout) { this.idleTimeout = idleTimeout; }
0
public void info(){ try{ if( file.exists() ){ System.out.println("Nombre: " + file.getName()); System.out.println("Path: " + file.getPath()); System.out.println("Absoluto: " + file.getAbsolutePath()); System.out.println("PAPA: " + file....
7
private MaskValue findFlag() { for (MaskValue mask : mMasks) if (mask.isFlag() && !mask.isOpen()) return mask; Log.exception("No Flag Mask Defined!"); Sweeper.forceStop(); return null; }
3
@Override public void executeMsg(Environmental host, CMMsg msg) { if((invoker()!=null) &&(!unInvoked) &&(affected==invoker()) &&(msg.amISource(invoker())) &&(msg.target() instanceof Armor) &&(msg.targetMinor()==CMMsg.TYP_WEAR)) { if(msg.source().location()!=null) msg.source().location().show(msg....
7
public void generaCentros() { Iterator listaElementos = listaElementos(); Nodo n; while(listaElementos.hasNext()) { Elemento next = (Elemento) ((Map.Entry)listaElementos.next()).getValue(); n = new Nodo(new double[]{0,0,0}); for(int nodo : next.ve...
3
public void eval(EvalContext context) { int stmtId = context.newStmtId(); context.logEntering("Evaluating If@"+stmtId + " ctx@" + context.id); predicate.eval(context); boolean value = context.popBoolean(); context.log("If@"+stmtId + " - Predicate: " + value); if(value) { ...
1
public static void parseNaturals(String str, int[] numbers){ int len = str.length(); int numberIndex = 0; int maxIndex = numbers.length; int currentNumber = 0; boolean numberStarted = false; for(int i = 0; i < len; i++){ char c = str.charAt(i); if(c >= '0' && c <= '9') { numberStarted = true;...
5
private Object decodeValue(){ JsonLexer.Token token = lexer.next(); switch (token.type){ case NULL : return null; case TRUE : case FALSE : return token.asBoolean(); case STRING : return token.asString(); case NUMBER : return token.asNumber(); case OBJEC...
7
public DefExpr def() { if (isDef()) { return this; } return super.def(); }
1
public void undisguise(Player player) { if(this.players.containsKey(player.getName())) { DisguisedPlayer dp = this.players.remove(player.getName()); if(dp != null && dp.lastBlock != null) { for(Player p : player.getWorld().getPlayers()) ...
6
public Object next() { if (next == null) { throw new NoSuchElementException(); } AbstractInsnNode result = next; prev = result; next = result.next; return result; }
1
public static Stella_Object clTranslateSqlTypeSpecifier(Stella_Object stellatype) { { Stella_Object result = null; if ((stellatype == null) || (stellatype == Sdbc.SYM_STELLA_NULL)) { } else { { GeneralizedSymbol testValue000 = ((GeneralizedSymbol)(stellatype)); if (te...
7
public String inputs( String type, String [] attr, String name ) { if ( name != null ) { type += " name='"+name+"'"; } boolean hasValue = false; if ( attr != null ) for( int i=0 ; i<attr.length ; i+=2 ) if ( attr[i] != null && attr[i+1] != null ) { if ( "value".equals( attr[i] ) ) hasValue = ...
9
protected void fireServerStart(ServerStartEvent evt) { sync.clear(); conns.clear(); prevCallId = Long.MIN_VALUE; }
0
public static void main(String[] ops) { int n = Integer.parseInt(ops[0]); if(n<=0) n=10; long seed = Long.parseLong(ops[1]); if(seed <= 0) seed = 45; RandomVariates var = new RandomVariates(seed); double varb[] = new double[n]; try { System.out.println("Generate "+n+" val...
8
public CardCheckResult check() { CardCheckResult result = CardCheckResult.OK; if(super.check() != CardCheckResult.OK) { result = super.check(); } else { Calendar calendar = Calendar.getInstance(); int today = calendar.get(Calendar.DAY_OF_WEEK); if ...
4
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub //vastaanotetaan palaute String-muodossa String palauteIDStr = request.getParameter("palauteID"); int palauteID; try { //luodaan olio busine...
2
public static void main(String[] args) { //DoubleLetters dl = new DoubleLetters(); //dl.DoDoubling(); UpByN ubn = new UpByN(); ubn.upByThrees(4); }
0
public int compare(String o1, String o2) { String s1 = (String)o1; String s2 = (String)o2; int thisMarker = 0; int thatMarker = 0; int s1Length = s1.length(); int s2Length = s2.length(); while (thisMarker < s1Length && thatMarker < s2Length) { ...
8
@Override protected byte[] load_from_current_position(String frameId, int dataLength, RandomAccessFile openFile) throws IOException { byte[] frameData=super.load_from_current_position(frameId, dataLength, openFile); if(frameData==null) return null; if(frameData.leng...
7
public static String getStreamID(String streamerName) { for (int i = 0 ; i < streamName.size(); i++) { if (streamName.get(i).equalsIgnoreCase(streamerName)) { return streamList.get(i); } } return null; }
2
public List<List<Integer>> helper(int[] c, int start, int end, int target) { List<List<Integer>> result = new ArrayList<List<Integer>>(); if (start < end) { if (target > c[start]) { int pick = c[start]; List<List<Integer>> r = helper(c, start + 1, end, target - pick); for (List<Integer> l : r) { ...
6
@Override public boolean onCommand(CommandSender sender, Command command, String lable, String[] args) { if (master.getConfig().getBoolean("enable-adventure", false)) { sender.sendMessage("This feature is not fully implemented! " + "If you want to try this feature out, set 'enable-adventure' in the conf...
8
public updater(Plugin plugin, int id, File file, UpdateType type, boolean announce) { this.plugin = plugin; this.type = type; this.announce = announce; this.file = file; this.id = id; this.updateFolder = plugin.getServer().getUpdateFolder(); final File pluginFile...
9
@Override public boolean mayICraft(final Item I) { if(I==null) return false; if(!super.mayBeCrafted(I)) return false; if(((I.material()&RawMaterial.MATERIAL_MASK)!=RawMaterial.MATERIAL_METAL) &&((I.material()&RawMaterial.MATERIAL_MASK)!=RawMaterial.MATERIAL_MITHRIL)) return false; if(CMLib.flags()....
9
public void removeListener(IoFutureListener listener) { if (listener == null) { throw new NullPointerException("listener"); } synchronized (lock) { if (!ready) { if (listener == firstListener) { if (otherListeners != null && !otherList...
6
@Override public void paint(Graphics g) { super.paint(g); Node travelNode; for (int i = 0; i < GameConstants.HEIGHT; i++) { for (int j = 0; j < GameConstants.WIDTH; j++) { travelNode = ship.nodeMap.get(new Coordinates(i, j)); drawLines(travelNode, g); } } drawControlRoom(Engine.controlNode, g);...
3
private boolean isFourOfKnd(){ int cnt=0,rID=0,sID=0; boolean first=true; for (int i = 0; i < crds.size()-1; i++) { rID=crds.get(i).getRankID(); if(crds.get(i).getRankID()==crds.get(i+1).getRankID()){ System.out.println("matched "+crds.get(i+1).getRankID() ); if(sID!=crds.get(i).getRankID()){ f...
7
private void loadMesh( String filename ) { String[] splitArray = filename.split( "\\." ); String ext = splitArray[ splitArray.length - 1 ]; if( !ext.equals( "obj" ) ) { System.err.println( "Error: File formate not supported for mesh data: " + ext ); new Exception( ).printStackTrace( ); System.exit( 1 );...
8