Package java.util

Examples of java.util.Vector.lastElement()


                        instanceProbs[ currentSegment[ currentTestIndex ] ][ pred ]++;
                        currentTestIndex++;
                    }
                   
                    if( i == 1 && j == 1){
                        int[] segmentElast = (int[])segmentList.lastElement();
                        for( currentIndex = 0; currentIndex < segmentElast.length; currentIndex++){
                            Instance testInst = data.instance( segmentElast[currentIndex] );
                            int pred = (int)current.classifyInstance( testInst );
                            if(pred != testInst.classValue()) {
                                m_Error++; // add 1 to mis-classifications.
View Full Code Here


        String pToShow = Integer.toString(x + 1);
        pageToShow.addElement(pToShow);
        if (x + 1 < totPage) {
          continue;
        }
        if (numPage == totPage && !((String) pageToShow.lastElement()).equals(Integer.toString(numPage))) {
          pageToShow.addElement(Integer.toString(numPage));
        }
        break;
      }
View Full Code Here

        }
        Vector v = phrase.getNoteList();
        for (int i = 0; i < numSteps; i++) {

            //rotate
            v.insertElementAt(v.lastElement(), 0);
            v.removeElementAt(v.size() - 1);
        }
    }

    /**
 
View Full Code Here

    /**
     * Deletes the last phrase added to the part
     */
    public void removeLastPhrase() {
        Vector vct = (Vector) this.phraseList;
        vct.removeElement(vct.lastElement());
    }

    /**
     * Deletes all the phrases previously added to the part
     */
 
View Full Code Here

                    rpmCommandArray[3] = "%{RELEASE}\\n";                   
                }

                Vector releaseVector = new Vector();
                returnValue = ExecuteProcess.executeProcessReturnVector(rpmCommandArray, releaseVector, returnErrorVector);
                String release = (String) releaseVector.lastElement();

                log = rpmCommand + "<br><b>Returns: " + release + "</b><br>";
                LogManager.addCommandsLogfileComment(log);

                isOlder = helper.compareVersionAndRelease(version, release, packageData, checkIfInstalledIsOlder);
View Full Code Here

      { te_hdr = Util.parseHeader((String) Headers.get("Transfer-Encoding")); }
  catch (ParseException pe)
      { }
  if (te_hdr != null)
  {
      te_chunked = ((HttpHeaderElement) te_hdr.lastElement()).getName().
       equalsIgnoreCase("chunked");
      for (int idx=0; idx<te_hdr.size(); idx++)
    if (((HttpHeaderElement) te_hdr.elementAt(idx)).getName().
        equalsIgnoreCase("identity"))
        te_hdr.removeElementAt(idx--);
View Full Code Here

  catch (ParseException pe)
      { throw new ModuleException(pe.toString()); }

  while (pte.size() > 0)
  {
      String encoding = ((HttpHeaderElement) pte.lastElement()).getName();
      if (encoding.equalsIgnoreCase("gzip"))
      {
    Log.write(Log.MODS, "TEM:   pushing gzip-input-stream");

    resp.inp_stream = new GZIPInputStream(resp.inp_stream);
View Full Code Here

            switch (b) {
               
              case TokenConstants.TAREA3D:
                Debug.log(Debug.TRACE, "Decoded 3D Area Cell Reference: ");                                                                      
                        v.add(read3DCellAreaRefToken(bis));
                Debug.log(Debug.TRACE, "Decoded 3D Area Cell Reference: " + v.lastElement());                                                                      
                                break;
              case TokenConstants.TREF3D:
                Debug.log(Debug.TRACE, "Decoded 3D Cell Reference: ");                                                                      
                        v.add(read3DCellRefToken(bis));
                Debug.log(Debug.TRACE, "Decoded 3D Cell Reference: " + v.lastElement());                                                                      
View Full Code Here

                Debug.log(Debug.TRACE, "Decoded 3D Area Cell Reference: " + v.lastElement());                                                                      
                                break;
              case TokenConstants.TREF3D:
                Debug.log(Debug.TRACE, "Decoded 3D Cell Reference: ");                                                                      
                        v.add(read3DCellRefToken(bis));
                Debug.log(Debug.TRACE, "Decoded 3D Cell Reference: " + v.lastElement());                                                                      
                                break;
              case TokenConstants.TREF :
                        v.add(readCellRefToken(bis));
                Debug.log(Debug.TRACE, "Decoded Cell Reference: " + v.lastElement());                                                                      
                                break;
View Full Code Here

                        v.add(read3DCellRefToken(bis));
                Debug.log(Debug.TRACE, "Decoded 3D Cell Reference: " + v.lastElement());                                                                      
                                break;
              case TokenConstants.TREF :
                        v.add(readCellRefToken(bis));
                Debug.log(Debug.TRACE, "Decoded Cell Reference: " + v.lastElement());                                                                      
                                break;
                case TokenConstants.TAREA :
                                v.add(readCellAreaRefToken(bis));
                Debug.log(Debug.TRACE, "Decoded Cell Area Reference: " + v.lastElement());                                                                      
                                break;                               
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.