A java List that implements the Stream interface?

Hello,
I just took some time to start looking into the java-8 buzz about streams and lambdas.
And have a couple of questions...
The first thing that surprised me is that you cannot apply the streams operations,
like .map(), .filter() directly on a java.util.List.
First question:
Is there a technical reason why the java.util.List interface was not extended with
default-implementations of these streams operations? (I guess there is...?)
Googling a bit, I see lots of examples of people coding along the pattern of:
    List<String> list = someExpression;
    List<String> anotherList = list.stream().map(x -> f(x)).collect(Collectors.toList());
which becomes very clumsy, if you have a lot of these stream-operations in your code.
Since .stream() and .collect() are completely irrelevant to what you want to express,
you would rather like to say:
    List<String> list = someExpression;
    List<String> anotherList = list.map(x -> f(x));
What I first did as a workaround, was to implement (see code below)
a utility interface FList, and a utility class FArrayList (extending ArrayList with .map() and .filter()).
(The "F" prefixes stand for "functional")
Using these utilities, you now have two options to create less clumsy code:
    List<String> list = someExpression;
    List<String> anotherList = FList.map(list, x -> f(x));
    List<String> thirdList = FList.filter(list, somePredicate);
or better:
    FList<String> list = new FArrayList<String>(someExpression);
    FList<String> anotherList = list.map(x -> someFunction(x));
    FList<String> thirdList = list.filter(somePredicate);
My second question:
What I would really like to do is to have FArrayList implement the
  java.util.stream.Stream interface, to fully support the java-8 functional model.
Since that involves implementing some 40 different methods, I would just like to know,
if you know somebody has already done this kind of work, and the code is
available somewhere as a public jar-file or open-source?
    public interface FList<T> extends List<T> {
        public static <A, B> List<B> map(List<A> list, Function<A, B> f) {
            return list.stream().map(f).collect(Collectors.toList());
        public static <A> List<A> filter(List<A> list, Predicate<A> f) {
            return list.stream().filter(f).collect(Collectors.toList());
        default <R> FList<R> map(Function<T, R> f) {
            FList<R> result = new FArrayList<R>();
            for (T item : this) {
                result.add(f.apply(item));
            return result;
        default FList<T> filter(Predicate<T> p) {
            FList<T> result = new FArrayList<T>();
            for (T item : this) {
                if (p.test(item)) {
                    result.add(item);
            return result;
    public class FArrayList<T> extends ArrayList<T> implements List<T>, FList<T> {
        private static final long serialVersionUID = 1L;
        public FArrayList() {
            super();
        public FArrayList(List<T> list) {
            super();
            this.addAll(list);

I believe SSH and telnet are used for interactive command line sessions, don't know how you want to use them in a program.

Similar Messages

  • Java API that implements the SSH, SFTP and Telnet protocols

    Hi,
    I'm looking for a Java API that implements the SSH, SFTP and Telnet protocols. Does anyone have a suggestion?
    Any Suggestions are really appreciated ?
    Thanks,
    Avin

    I believe SSH and telnet are used for interactive command line sessions, don't know how you want to use them in a program.

  • Where 2 find java file that implements the subscription email notification?

    Hello KMC Gurus,
    I saw a reply of Patricio linking to an article relating to "How to customize mail notifications?".
    In that article I was able to see how to change the XML & XSL files and their locations.
    Can anybody tell me where to find this java/class file relating to this mail notifications?
    FYI, the link to the article is as below
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/90626697-0901-0010-2ca7-86e2a50ce70d
    Author is Darin Krasle.
    best regds,
    Vedu

    I've just installed JAVA into my computer.
    Then I found a folder called "Java 1.4.2 SDK" or
    something like that. but in the folder there wasn't
    any .exe file to run JAVA, os i would like to know how
    do i run JAVA after i installed it?
    Also i am runnung Java in Windows XP with SP1
    I think those information might help.Follow this link and do what it says. Generally, you do not need an IDE to run java, just a text editor and a DOS prompt :)
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
    Alpha

  • Java program that create a graphic interface of the WGET program

    Hello,
    How can I make a Java program that create a graphic interface of the WGET program.
    Please post something already developed.
    No Applet.
    Thank you.

    You can use java.lang.Runtime.exec or java.lang.ProcessBuilder to execute external programs like wget. Generally you pass one of those methods an array of Strings; the first String is the name of the executable, and the rest are arguments. You get a Process object that represents the running process that you've started; you can get standard input and output streams from that Process to read output. This is probably stuff your teacher already told you...but if not, hope it helps.
    You should read this article about pitfalls around Runtime.exec:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    Much of the information there also applies to ProcessBuilder.
    Good luck on your homework.

  • The XElement class explicitly implements the IXmlISerializable interface?

    I see a sentence on a training book.
    "The XElement class explicitly implements the IXmlSerializable
    interface, which contains the GetSchema, ReadXml, and
    WriteXml methods so this object can be serialized."
    I don't understand it. From
    the example, explicitly implements the IXmlSerializable interface is from a custom class rather than XElement class. Is
    MSDN wrong?

    I mean in the stackoverflow example,the class is a customized one "MyCalendar:IXmlSerializable"
    public class MyCalendar : IXmlSerializable
    private string _name;
    private bool _enabled;
    private Color _color;
    private List<MyEvent> _events = new List<MyEvent>();
    public XmlSchema GetSchema() { return null; }
    public void ReadXml(XmlReader reader)
    If XElement is a class that implements IXmlSerializable, what is the detail then?
    public class XElement : IXmlSerializable
    public XmlSchema GetSchema() { *detail*?; }
    public void ReadXml(XmlReader reader){*detail*?}
    Any source code of XElement class?

  • Does not implement the NamespaceHandler interface

    I depoly a war file and get following errors. This project does not contain jar files related with spring.
    BUILD FAILED
    weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Task 0 failed: [Deployer:149026]deploy application smap.war on AdminServer.
    Target state: deploy failed on Server AdminServer
    java.lang.IllegalArgumentException: Class [org.springframework.scripting.config.LangNamespaceHandler] does not implement the NamespaceHandler interface
         at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:119)
         at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:96)
         at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:83)
         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:498)
         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:487)
         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:468)
         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:363)

    Hi,
    I am not sure - given the information you provide - that you posted to the right forum
    Frank

  • Implementing the Serializable interface

    Hi guys,
    I have a conceptual question about implementing the Serializable interface - since it's only a marker interface (i.e. - it doesn't have any abstract methods) why does Java demand an object to implement this interface in order to be written into a file? What I'm asking is why wouldn't they make the writeObject method's signature
    public void writeObject(*Object* o)
    so any object can get in? What is the point of forcing a class to implement an interface in order to enable it to be written to a file?

    So that serialization requires the explicit consent of the class or superclass/superinterface.

  • Serializing a class that implements the Singleton pattern

    Hello,
    I am relatively new to Java and especially to serialization so the answer to this question might be obvious, but I could not make it work event though I have read the documentation and the article "Using XML Encoder" that was linked from the documentation.
    I have a class that implements the singleton pattern. It's definition is as follows:
    public class JCOption implements Serializable {
      private int x = 1;
      private static JCOption option = new JCOption();
      private JCOption() {}
      public static JCOption getOption() { return option; }
      public int getX() { return x; }
      public void setX(int x) { this.x = x; }
      public static void main(String args[]) throws IOException {
        JCOption opt = JCOption.getOption();
        opt.setX(10);
        XMLEncoder encoder = new XMLEncoder(new BufferedOutputStream(new FileOutputStream("Test.xml")));
        encoder.setPersistenceDelegate(opt.getClass(),  new JCOptionPersistenceDelegate());
        encoder.writeObject(opt);
        encoder.close();
    }Since this class does not fully comply to the JavaBeans conventions by not having a public no-argument constructor, I have create a class JCOptionPersistenceDelegate that extends the PersistenceDelegate. The implementation of the instantiate method is as follows:
      protected Expression instantiate(Object oldInstance, Encoder out) {
           Expression expression = new Expression(oldInstance, oldInstance.getClass(), "getOption", new Object[]{});
            return expression;
      }The problem is that the resulting XML file only contains the following lines:
        <java version="1.5.0_06" class="java.beans.XMLDecoder">
            <object class="JCOption" property="option"/>
        </java> so there is no trace of the property x.
    Thank you in advance for your answers.

    How about this:
    import java.beans.DefaultPersistenceDelegate;
    import java.beans.Encoder;
    import java.beans.Expression;
    import java.beans.Statement;
    import java.beans.XMLEncoder;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    public class JCOption {
        private int x = 1;
        private static JCOption option = new JCOption();
        private JCOption() {}
        public static JCOption getOption() { return option; }
        public int getX() { return x; }
        public void setX(int x) { this.x = x; }
        public static void main(String args[]) throws IOException {
          JCOption opt = JCOption.getOption();
          opt.setX(10);
          ByteArrayOutputStream os = new ByteArrayOutputStream();
          XMLEncoder encoder = new XMLEncoder( os );
          encoder.setPersistenceDelegate( opt.getClass(), new JCOptionPersistenceDelegate() );
          encoder.writeObject(opt);
          encoder.close();
          System.out.println( os.toString() );
    class JCOptionPersistenceDelegate extends DefaultPersistenceDelegate {
        protected Expression instantiate(Object oldInstance, Encoder out) {
            return new Expression(
                    oldInstance,
                    oldInstance.getClass(),
                    "getOption",
                    new Object[]{} );
        protected void initialize( Class<?> type, Object oldInstance, Object newInstance, Encoder out ) {
            super.initialize( type, oldInstance, newInstance, out );
            JCOption q = (JCOption)oldInstance;
            out.writeStatement( new Statement( oldInstance, "setX", new Object[] { q.getX() } ) );
    }   Output:
    <?xml version="1.0" encoding="UTF-8"?>
    <java version="1.5.0_06" class="java.beans.XMLDecoder">
    <object class="JCOption" property="option">
      <void property="x">
       <int>10</int>
      </void>
    </object>
    </java>

  • Why the HashMap implements the Map interface twice

    See the type hierarchy below:
    HashMap<K,V>
    &#9475;
    &#9507;AbstractMap<K,V>
    &#9475;&#9475;
    &#9475;&#9495;Map<K,V>
    &#9495;Map<K,V>
    The HashMap extends AbstractMap, which implements Map. So the HashMap has already implements Map, and has the Map type. But the HashMap's declaration still contains "implements Map".
    So why the HashMap implements the Map interface twice?
    Thanks in advance.

    georgemc wrote:
    Maybe the guy who wrote HashMap wanted to make it clear that HashMap implemented Map, rather than rely on you looking further up the hierarchy to find outYes, it does make the Javadoc clearer. If they hadn't done that then there would have been legions of newbies who couldn't tell that HashMap implemented Map and thousands of "I have a doubt, does HashMap implement Map" questions here.

  • Where do I find the list that loads the programs at start-up so that I can disable some.

    Where do I find the list that controls the program loading at start-up. Also how do I know which ones I can disable. I am trying to speed up the start-up process.

    See http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx Autotruns

  • Problem : Implementing the TreeModel interface

    I'm trying to implement MYTreeModel interface.
    It's to convert my DOM to a treemodel.
    (i have readed the tutorial about that but i don't use an adapter class. I have ONE class that implements javax.swing.tree.TreeModel and i have implemented the methods)
    All work exept the toString method.
    I suppose that a process is calling the toString method to display the string into the JTree.
    who is calling the toString Method ?
    Where can (must) i overload this method ?
    For the moment, my overloading of the toString method
    don't work !! (-> my tree is correct exept the string)
    Any idea or help is welcome.
    Thanks in advance.
    Here is a part of my code :
    public class DomTree implements javax.swing.tree.TreeModel {
    private Document mDom_O;
    // Constructor - Creates new CDomTree
    public DomTree(Document Dom_O)
    mDom_O=Dom_O;
    public Object getRoot()
         return mDom_O;
    public boolean isLeaf(Object aNode_O)
         org.w3c.dom.Node Node_O=(org.w3c.dom.Node) aNode_O;
              if (ChildCount(Node_O) > 0) return false;
    else                              return true;
    public int getChildCount(Object parent_O)
         org.w3c.dom.Node Node_O=(org.w3c.dom.Node) parent_O;
    return ChildCount(Node_O);
    public Object getChild(Object parent_O, int index_i)
         org.w3c.dom.Node Node_O=(org.w3c.dom.Node) parent_O;
    return Child(Node_O,index_i);
    public int getIndexOfChild(Object parent_O, Object child_O)
         org.w3c.dom.Node PNode_O=(org.w3c.dom.Node) parent_O;
         org.w3c.dom.Node CNode_O=(org.w3c.dom.Node) child_O;
    return index(PNode_O,CNode_O);
    public int ChildCount(org.w3c.dom.Node aNode_O)
    public org.w3c.dom.Node Child(org.w3c.dom.Node aNode_O,int SearchIndex_i)
    public int index(org.w3c.dom.Node aNode_O,org.w3c.dom.Node Child_O)
    public String toString()
    *****************************************************************

    The JTree calls the toString() method of the object in the tree, not the toString() method of the TreeModel. So in your case, that would be the toString() method of the org.w3c.dom.Node object. That is what you would have to subclass.

  • How can I list all folders that contain files with a specific file extension? I want a list that shows the parent folders of all files with a .nef extension.

    not the total path to the folder containing the files but rather just a parent folder one level up of the files.
    So file.nef that's in folder 1 that's in folder 2 that's in folder 3... I just want to list folder 1, not 2 or 3 (unless they contain files themselves in their level)

    find $HOME -iname '*.nef' 2>/dev/null | awk -F '/'   'seen[$(NF-1)]++ == 0 { print $(NF-1) }'
    This will print just one occurrence of directory
    The 'find' command files ALL *.nef files under your home directory (aka Folder)
    The 2>/dev/null throws away any error messages from things like "permissions denied" on a protected file or directory
    The 'awk' command extracts the parent directory and keeps track of whether it has displayed that directory before
    -F '/' tells awk to split fields using the / character
    NF is an awk variable that contains the number of fields in the current record
    NF-1 specifies the parent directory field, as in the last field is the file name and minus one if the parent directory
    $(NF-1) extracts the parent directory
    seen[] is a context addressable array variable (I choose the name 'seen'). That means I can use text strings as lookup keys.  The array is dynamic, so the first time I reference an element, if it doesn't exist, it is created with a nul value.
    seen[$(NF-1)] accesses the array element associated with the parent directory.
    seen[$(NF-1)]++ The ++ increments the element stored in the array associated with the parent directory key AFTER the value has been fetched for processing.  That is to say the original value is preserved (short term) and the value in the array is incremented by 1 for the next time it is accessed.
    the == 0 compares the fetched value (which occurred before it was incremented) against 0.  The first time a unique parent directory is used to access the array, a new element will be created and its value will be returned as 0 for the seen[$(NF-1)] == 0 comparison.
    On the first usage of a unique parent directory the comparison will be TRUE, so the { print $(NF-1) } action will be performed.
    After the first use of a unique parent directory name, the seen[$(NF-1)] access will return a value greater than 0, so the comparison will be FALSE and thus the { print $(NF-1)] } action will NOT be performed.
    Thus we get just one unique parent directory name no matter how many *.nef files are found.  Of course you get only one unique name, even if there are several same named sub-directories but in different paths
    You could put this into an Automator workflow using the "Run Shell Script" actions.

  • BPM. Creating element in container that references the sync. interface

    I couldn't select  synchronous, abstract interface for container element.
    i see only async interfaces.
    How to get sync interfaces there?

    sorry, problem is solved.
    help is not correct on this link
    http://help.sap.com/saphelp_nw70/helpdata/en/43/6211331c895f6ce10000000a1553f6/content.htm
    wrong line is:
    In the Synchronous Interface field, select the <b>container element</b> that references the synchronous, abstract interface for sending the request message and receiving the reply message.

  • Select list that displays the next 12 months worth of Mondays

    I recently needed a select list that would allow you to choose from a years worth on Mondays starting with the current week's Monday. It will return the date of that Monday. I thought others might be able to use this too... Plus I wanted to be able to find this in the future.
    SELECT DISTINCT
    to_char(trunc(next_day(trunc(SYSDATE,'day'),2)-1+LEVEL,'iw'),'FMMonth DD, YYYY') AS Display
    ,trunc(next_day(trunc(SYSDATE,'day'),2)-1+LEVEL,'iw') as Return
    FROM dual
    CONNECT BY LEVEL <=((add_months(trunc(SYSDATE,'day'),12)-1)-(trunc(SYSDATE,'day')))
    ORDER BY 2;
    As of today (Friday, August 24th) the above would return:
    DISPLAY RETURN
    August 20, 2012 20-AUG-12
    August 27, 2012 27-AUG-12
    September 3, 2012 03-SEP-12
    September 10, 2012 10-SEP-12
    September 17, 2012 17-SEP-12
    September 24, 2012 24-SEP-12
    October 1, 2012 01-OCT-12
    October 8, 2012 08-OCT-12
    October 15, 2012 15-OCT-12
    October 22, 2012 22-OCT-12
    October 29, 2012 29-OCT-12
    November 5, 2012 05-NOV-12
    November 12, 2012 12-NOV-12
    November 19, 2012 19-NOV-12
    November 26, 2012 26-NOV-12
    December 3, 2012 03-DEC-12
    December 10, 2012 10-DEC-12
    December 17, 2012 17-DEC-12
    December 24, 2012 24-DEC-12
    December 31, 2012 31-DEC-12
    January 7, 2013 07-JAN-13
    January 14, 2013 14-JAN-13
    January 21, 2013 21-JAN-13
    January 28, 2013 28-JAN-13
    February 4, 2013 04-FEB-13
    February 11, 2013 11-FEB-13
    February 18, 2013 18-FEB-13
    February 25, 2013 25-FEB-13
    March 4, 2013 04-MAR-13
    March 11, 2013 11-MAR-13
    March 18, 2013 18-MAR-13
    March 25, 2013 25-MAR-13
    April 1, 2013 01-APR-13
    April 8, 2013 08-APR-13
    April 15, 2013 15-APR-13
    April 22, 2013 22-APR-13
    April 29, 2013 29-APR-13
    May 6, 2013 06-MAY-13
    May 13, 2013 13-MAY-13
    May 20, 2013 20-MAY-13
    May 27, 2013 27-MAY-13
    June 3, 2013 03-JUN-13
    June 10, 2013 10-JUN-13
    June 17, 2013 17-JUN-13
    June 24, 2013 24-JUN-13
    July 1, 2013 01-JUL-13
    July 8, 2013 08-JUL-13
    July 15, 2013 15-JUL-13
    July 22, 2013 22-JUL-13
    July 29, 2013 29-JUL-13
    August 5, 2013 05-AUG-13
    August 12, 2013 12-AUG-13
    52 rows selected

    I posted the above all proud of myself for figuring out the SQL to do the above, went into APEX to build my LOV and I get the following:
    LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.
    Is there a way to get APEX to allow me to use the above query as an LOV?
    Thanks,
    Rich

  • Deleting complex object in Java list (for implementation on WSDL)

    I am following those three tutorials and I have completed it with success.
    ( http://oracleadfhowto.blogspot.in/2013/03/create-simple-web-service-using-oracle.html )
    ( http://oracleadfhowto.blogspot.in/2013/03/consuming-web-service-using-web-service.html )
    ( http://oracleadfmobile.blogspot.in/2013/03/consuming-soap-web-service-in-adf.html )
    But then, as author haven't implemented removeCountries method I tried to create it.
    What I did initially was to just add to class Countries this method:
      public boolean removeCountry(Country country) {
      return countries.remove(country);
    But although compiler wasn't complaining it didn't work. Actually it worked last night (before reboot) but not today.
    Must be some SOAP iterator/bindig thing or whatever. Or I thought  that it worked but in fact it didn't.
    Here are original classes:
    public class Country {
        String CountryId;
        String CountryName;
        public Country() {
            super();
        public Country( String id, String name ) {
            super();
            this.CountryId = id;
            this.CountryName = name;
        public void setCountryId(String CountryId) {
            this.CountryId = CountryId;
        public String getCountryId() {
            return CountryId;
        public void setCountryName(String CountryName) {
            this.CountryName = CountryName;
        public String getCountryName() {
            return CountryName;
    public class Countries {   
        List<Country> countries = new ArrayList<Country>();
        public Countries() {
            super();
        public void setCountries(List<Country> countries) {
            this.countries = countries;
        public List<Country> getCountries() {
            if ( countries.size() == 0 ) {
                countries.add( new Country("IT","ITALY"));
                countries.add( new Country("IN","INDIA"));
                countries.add( new Country("US","UNITED STATES"));
            return countries;
        public boolean addCountry( Country country ) {
            return countries.add( country );
      // I added this
      public boolean removeCountry( Country country ) {
            return countries.remove( country );
    Then I decided to write (for a start) just plain Java classes and now it looks like below shown code.
    It works in IDE, not yet implemented on weblogic server. I hope it would work.
    package client;
    public class Country {
      String CountryId;
      String CountryName;
      public Country() {
      super();
      public Country(String id, String name) {
      super();
      this.CountryId = id;
      this.CountryName = name;
      public void setCountryId(String CountryId) {
      this.CountryId = CountryId;
      public String getCountryId() {
      return CountryId;
      public void setCountryName(String CountryName) {
      this.CountryName = CountryName;
      public String getCountryName() {
      return CountryName;
    package client;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    public class Countries {
      List<Country> countries = new ArrayList<Country>();
      public Countries() {
      super();
      public void setCountries(List<Country> countries) {
      this.countries = countries;
      public List<Country> getCountries() {
      if (countries.size() == 0) {
      countries.add(new Country("IT", "ITALY"));
      countries.add(new Country("IN", "INDIA"));
      countries.add(new Country("US", "UNITED STATES"));
      return countries;
      public boolean addCountry(Country country) {
      return countries.add(country);
      // This left unused
      public boolean removeCountry(Country country) {
      return countries.remove(country);
      // I added this - what would be more elegant or smarter way to do this?
      public void removeCountry(String CountryId, String countryName) {
      Iterator<Country> iterator = countries.iterator();
      while (iterator.hasNext()) {
      Country value = iterator.next();
      if (CountryId.equals(value.CountryId) || countryName.equals(value.CountryName)) {
      iterator.remove();
      break;
    This class is just for test it won't go on server (JDeveloper integrated web logic server)
    package client;
    public class UserInterface {
      public static void main(String[] args) {
      String CountryId = "";
      String CountryName = "";
      CountryName = "ENGLAND";
      Countries co = new Countries();
      co.getCountries();
      for (int i = 0; i < co.countries.size(); i++) {
      System.out.print(co.getCountries().get(i).getCountryId());
      System.out.print(" - ");
      System.out.println(co.getCountries().get(i).getCountryName());
      System.out.println("-------------------------");
      // Add some countries
      co.countries.add(new Country("DE", "GERMANY"));
      co.countries.add(new Country("EN", "ENGLAND"));
      for (int i = 0; i < co.countries.size(); i++) {
      System.out.print(co.getCountries().get(i).getCountryId());
      System.out.print(" - ");
      System.out.println(co.getCountries().get(i).getCountryName());
      System.out.println("-------------------------");
      // Remove some countries, this works but can't use this (index)
      // co.countries.remove(0); <--- there should be some index instead of 0
      // I need to set properties
      CountryId = "DE";
      CountryName = "";
      // Then remove country
      co.removeCountry(CountryId, CountryName);
      CountryId = "";
      CountryName = "ENGLAND";
      // Then remove country
      co.removeCountry(CountryId, CountryName);
      // Is there any way to remove object directly? Parameters should be set by web service iterator.
      // co.countries.remove(o);
      // co.removeCountry(country)
      for (int i = 0; i < co.countries.size(); i++) {
      System.out.print(co.getCountries().get(i).getCountryId());
      System.out.print(" - ");
      System.out.println(co.getCountries().get(i).getCountryName());
    I would like to avoid my own iterator as JDeveloper can generate automatically iterators for webservices, but if I can't get it that way, what would be better way to write above mentioned iterator in removeCountry method?
    Is there any way to remove object directly with something like this:
    co.countries.remove(o);
    co.removeCountry(country)
    using method
      // This left unused
      public boolean removeCountry(Country country) {
      return countries.remove(country);
    from class Countries?
    Parameters should be set by web service iterator.

    Secure Sockets - http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html
    OR
    an HttpsURLConnection is returned from URL.openConnection() when the URL is an HTTPS URL.

Maybe you are looking for

  • Error in schedule job

    Hi All, I tried to create this job and encounter ORA-6550 which refers to a syntax error. However, I have checked the script and found no syntax errors. Can anyone advise me on what's wrong with my sql statements? ORA-06550: line 12, column 11: PLS-0

  • Shared Printer Bug After 10.7.4 HP LaserJet USB - Help?

    Before the 10.7.4 update, my HP Color LaserJet CM2320nf multi fucntion printer worked just fine with the built in OS X print drivers. I had the printer shared on the network via my iMac (2011) over USB and other devices could print to it via Bonjour.

  • Where can I find the Users Manual for the DROID TURBO?

    Where can I find the Users Manual for the DROID TURBO?

  • Document browser in dms

    Hi all, I got 7 tabs in create document info record (cv01n), about 5 i knows, but additional 2 are "Document browser" and "Authorizations", I have to remove this tabs, kindly help me out, where I can change the configuration. Regards, Punam Modi

  • Purchase order attachment

    hi there as you all know we can some external document to the purchase order but my problem is that i want to take the print out of the purchase order attachment is there anyprovision or transaction present kindly let me know waiting for your reply