Generics in SimpleListProperty and SimpleObjectProperty

Hi everyone,
My understanding of generics may be shakier than I thought, but I was under the impression that I should be able to have:
public abstract class GenericContainer<E, P extends javafx.beans.property.Property<E>> {}And then subclass as:1. public class ObjectContainer<E> extends GenericContainer<E, SimpleObjectProperty<E>> {}
2. public class ListContainer<E> extends GenericContainer<E, SimpleListProperty<E>> {}Number 1 works fine, but number 2 gives me an error saying that the SimpleListProperty<E> is outside of the bounds of P. I've even tried using Property<ObservableList<E>>> in place of SimpleListProperty (which implements that interface) and it still fails.
Can anyone offer advice as to where I'm going wrong?
Thanks,
Geoff

What is the Generics in java ?Good lovely stuff. Well I think it is, some disagree.
Is it use easy ? Yes.
And what happen when it goes wrongYour dog explodes.
You application does not compile, or you get a runtime error.
list.add(args[ i ]); // no data checkThe compiler does a check for you, it is nice like that. But you can trick the compiler. Moohaha!
String tmp = list.get(i); // cast is not needed.Not needed.
If (I can understand the article) {I'm guessing that is false, as otherwise you would not have posted "What is the Generics in java ?"
System.out.println("What is the existence of you?");Never runs. So I'm guessing it is just some debug junk. Maybe an "assert" would be better here?
System.out.println("I posted it!");You did not post the article, nor did you hint at if you had read the article.
Message was edited by:
mlk

Similar Messages

  • Under Windows 7 Ultimate x64 and Boot Camp, my 27 inch Apple LED Cinema Display checks out as a Generic PnP Monitor and is shown as NOT HDCP compliant.  I haven't been able to find any kind of an .inf file to use.  Does anyone have a solution?

    Under Windows 7 Ultimate x64 and Boot Camp, my 27 inch Apple LED Cinema Display checks out as a Generic PnP Monitor and is shown as NOT HDCP compliant.  I haven't been able to find any kind of an .inf file to use.  Does anyone have a solution?  Or is Apple's implementation of HDCP (if it's there) incomplete?

    I am having this same issue. Im not sure if this is the cause but I think this is keeping PowerDVD Ultra 11 from playing back Bluray under Windows 7 / Bootcamp

  • Generics Do's and Dont's

    I have posted our slides from our JavaOne Session
    BOF-9225 "Generic Do's and Don'ts" on my blog:
    http://blogs.sun.com/roller/page/ahe?entry=impressions_from_javaone
    I got a lot of inspiration from this forum, so thank you all!
    I hope to elaborate more on this in the future, perhaps
    with blog entries or an article on java.net. If you have more
    ideas which fit in the category of "generic do's and don'ts",
    please let me know.

    Nice summary Peter. Couple of things you could fix if you get a chance to do another version:
    On slide 18, you don't use the second argument to the constructor 't':
    final class CheckedBox<T> {
        final Class<T> type;
        T t;
        CheckedBox(Class<T> type, T t) {
        this.type = type;
    ...On slide 20, I think you've forgotten to actually pass the Type Token to the constructor of the CheckedBox!
    CheckedBox<String> bs = new CheckedBox<String>();   //??
    CheckedBox rawBox = bs;
    rawBox.setValue(3); // ClassCastException
    String s = bs.getValue(); // never gets hereOr did I missunderstand something?

  • I added 0AMOUNT in generic data source and in rsa3 i am seeing the data ..b

    i added 0AMOUNT in generic data source and in rsa3 i am seeing the data ..but i am not seeing any data in target table..
    what would be the cause

    Hi,
    I guess you mean the target table in BW, correct?
    First replicate your DSource in BW
    Open your TRules. In tab Transfer structure/Datasource locate your field in the right pane (should be greyed, not blue); move it from to the left (to the transfer structure); reactivate and reload.
    You should now see the field in your PSA table.
    hope this helps...
    Olivier.

  • Is printing to generic text printer and hand-coding the report possible?

    We have created Oracle Reports that are formatted to print to Zebra printers. We code the report in Report Layout and the text printed is for generic text printers, what our Zebra printers requires. Can this be done with APEX reports?
    Example:
    ^xa
    ^ilr:val_set.grf2^fs
    ^fo88,132^a0,90,80^fb464,1,0,C,0^fd&<ACCESSION>^fs
    ^by2,3.0,32^fs
    ^ft64,402^BCb,32,n,n^fd&<FARMFIELD>^fs
    ^ft600,402^BCb,32,n,n^sn&<LOCLOW>,1,y^fs
    ^fo304,232^a0r,20,20^fd&<LOCTYPE>^fs
    ^fo334,232^a0,50,45^sn&<LOCLOW>,1,y^fs
    (skipping some code here for brevity)
    ^pq&<LOC_ROWS>^fs
    ^xz
    Asking whether APEX can print to generic text printers and can we code the report output
    ourselves.
    Thanks for any help.
    dave

    Here is a simple example of printing via pl/sql to a text file...
    create or replace procedure utl_file_io is
    l_fil utl_file.file_type;
    l_buf varchar2(200);
    begin
    l_fil := utl_file.fopen('TMP', 'amar_test.t', 'W');
    utl_file.put_line(l_fil, 'This is a sample text file.');
    utl_file.put_line(l_fil, 'Generated from Oracle utl_file package.');
    utl_file.put_line(l_fil, 'Below is the content of am1010 table.');
    for rec in (select col1, col2 from am1000) loop
    utl_file.put_line(l_fil, rpad(rec.col1, 15, ' ') || rec.col2);
    end loop;
    utl_file.put_line(l_fil, 'End of File');
    utl_file.fclose(l_fil);
    exception
    when no_data_found then
    utl_file.fclose(l_fil);
    end;
    This routine will generate a text file to the default directory on your server, you would need to build an Oracle directory and change the code to include the path to your file there. Getting it to the printer could be a simple shell script that copies the file out your your printer if it is on the network and can be seen..
    Thank you,
    Tony Miller
    Webster, TX

  • Generic Data Source and InfoPackage Data Selection

    Hello,  I'm trying to extract data from a generic data source (composed of a view joining 4 tables) using the Data Selection Criteria in an infopackage.  Sometimes the selection criteria is ignored and more data is pulled than expected.  The number of selectable items in the generic data source has been reduced (in case this was an issue) and for a short time the infopackaged pulled the expected number of records.  Then another change was made to the generic data source and the problem returned.  In any case, the transported generic data source does not work in the target system either.  I'm not sure what is causing this to happen.  Any ideas???  BW 3.5.
    Regards,
    Sue
    Message was edited by: Sue and Enrique
            Ramesh P

    Hi,
         Some of the datasources will not have  default Infopackages for them.You can create the infopackages according to the requirement.There is no big deal for creating Infopackages.You can go ahead creating them.
    Regards
    Karthik

  • Create a Generic Data Source and deploy a webservice on a domain using WLST

    Hello for everyone,
    I usually create generic data sources and deploy webservices on a wls domain by using the Administrator Console. I wonder if you can pass me a script sample to do this task by using WSLT. On the other hand, if you can pass me a "quick start" guide about WLST, this would be very helpful.
    Additionally, may I be able to create groups, application roles and users to a domain by using WLST?
    Thanks for your help.

    You can use standard infoobjects as well..
    You can create a view on those R/3 tables and use this view for creating a generic datsource in RSO2 transaction..
    Check the below pdf for delta in generic datasources
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33

  • Generic Sync Application and Persistence DB2e

    Hi all,
    I have a generic sync application. I need persistence and so, I have created a xml file with many syncbo to manage the persistence with db2e. If I execute the statement before the synchronization:
    SmartSyncRuntime.getInstance().getSyncBoDescriptorFacade().getAllSyncBoDescriptors().size()
    the result is five (because I have five syncbo).
    But when I do a generic synchronization and I try to store data of this synchronization into syncbo, I get an exception because only there is one syncbo.
    In fact, the previous statement returns only one synbo. This syncbo is called MIAUTH and I don´t have defined it.
    How can I solve this issue? Thanks a lot.
    Regards,

    Hi all,
    I know it is better to use persistence API than syncbos in generic sync application but we have many problems with persistence API and SP versions. While SAP solve our problems we are searching any alternative.
    We use MVC and after doing generic synchronization, if the application generates a event and navigate to other jsp and in it, the application generates other event, I get all of my syncbos.
    How could I simulate it, after generic sync finishes, in the same method by code? Any ideas?
    Thanks and Regads.

  • Passing generics between DAL and WCF

    Hi,
    I have a solution with layers including wcf. UI calls the WCF.
    I am getting an error when calling a List in Service1.svc from the DAL layer. How can I fix it?
    Thanks
    var client = new ServiceReference1.PizzaAPIClient();
    var customer = new ServiceReference1.CustomerAPI();
    customer.PhoneNumber = txtPhone.text;
    List<ServiceReference1.CustomerAPI> lstcustomers = client.GetCustomerByPhoneNumber(customer);
    WCF
    IService1.cs
    using BL;
    namespace WcfService1
    [ServiceContract]
    public interface IPizzaAPI
    // TODO: Add your service operations here
    [OperationContract]
    List<CustomerAPI> GetCustomerByPhoneNumber(CustomerAPI customer);
    [DataContract]
    public class OrderAPI
    [DataMember]
    public string OrderName { get; set; }
    [DataContract]
    public class CustomerAPI
    int _Customerid;
    string _firstName;
    string _lastName;
    string _phonenumber;
    public CustomerAPI (int custId, string firstname, string lastName, string phonenumber)
    _Customerid = custId;
    _lastName = lastName;
    _firstName = firstname;
    _phonenumber = phonenumber;
    [DataMember]
    public string PhoneNumber
    get { return _phonenumber; }
    set { _phonenumber = value; }
    [DataMember]
    public int CustomerId
    get { return _Customerid; }
    set { _Customerid = value; }
    --omitted for brevity
    Service1.svc
    using DL;
    using BL;
    namespace WcfService1
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in code, svc and config file together.
    public class Service1 : IPizzaAPI
    List<CustomerAPI> customerLst = new List<CustomerAPI>();
    // Method returning the details of the student for the studentId
    public List<CustomerAPI> GetCustomerByPhoneNumber(CustomerAPI customer)
    List<CustomerAPI> customerLst = DL.CustomerDB.GetCustomerByPhoneNumber(customer.PhoneNumber); //Error 8 Cannot implicitly convert type 'System.Collections.Generic.List<BL.CustomerBL>' to 'System.Collections.Generic.List<WcfService1.CustomerAPI>'
    return customerLst;
    CustomerBL.cs -Business Logic Layer
    namespace BL
    public class CustomerBL
    private string phonenumber;
    public int CustomerId { get; set; }
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public String PhoneNumber
    get
    return this.phonenumber;
    set
    this.phonenumber = value;
    if (this.PhoneNumber == "")
    throw new Exception("Please provide Tel ...");
    CustomerDB.cs -DAL layer
    using BL;
    namespace DL
    public static class CustomerDB
    public static SqlConnection InitConnection()
    DL.ConStrings connstrings = new DL.ConStrings();
    return connstrings.GetPizzaDeliveryConnection();
    //public static CustomerBL[] GetCustomerByPhoneNumber(string phonenumber)
    public static List<CustomerBL> GetCustomerByPhoneNumber(string phonenumber)
    SqlConnection connstrings = InitConnection();
    using (var connection = connstrings)//using doesn't require connection closed
    var cmd = connection.CreateCommand();
    cmd.CommandText = "GetCustomerByPhoneNumber";
    cmd.CommandType = System.Data.CommandType.StoredProcedure;
    cmd.Parameters.AddWithValue("@phonenumber", phonenumber);
    connection.Open();
    var customers = new List<CustomerBL>();
    var reader = cmd.ExecuteReader();
    while (reader.Read())
    var customer = new CustomerBL();
    customer.CustomerId = Convert.ToInt32(reader["CustomerId"]);
    customer.FirstName = Convert.ToString(reader["FirstName"]);
    customer.LastName = Convert.ToString(reader["LastName"]);
    customer.Address = Convert.ToString(reader["Address"]);
    customers.Add(customer);
    return customers;

    Hi collie12,
    >>Cannot implicitly convert type 'System.Collections.Generic.List<BL.CustomerBL>' to 'System.Collections.Generic.List<WcfService1.CustomerAPI>'   
    As the error said that we can not simply convert the 'System.Collections.Generic.List<BL.CustomerBL>' to 'System.Collections.Generic.List<WcfService1.CustomerAPI>' by using the following code, because they are different classes:
    List<CustomerAPI> customerLst = DL.CustomerDB.GetCustomerByPhoneNumber(customer.PhoneNumber);
    Please try to modify the above code as following:
    public List<CustomerAPI> GetCustomerByPhoneNumber(CustomerAPI customer)
    List<BL.CustomerBL> CustomerBLList= DL.CustomerDB.GetCustomerByPhoneNumber(customer.PhoneNumber);
    List<CustomerAPI> CustomerAPIList = new List<CustomerAPI>();
    foreach (var CustomerBL in CustomerBLList)
    CustomerAPI CustomerAPI = new CustomerAPI(CustomerBL.CustomerId, CustomerBL.FirstName, CustomerBL.LastName, CustomerBL.PhoneNumber);
    CustomerAPIList.Add(CustomerAPI);
    return CustomerAPIList;
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Cold Fusion in a generic thread pool and enabling JAVA don't mix

    I've got Cold Fusion MX installed on a server running Sun One 6.1. I ran into a problem trying to enable JAVA (for servlet support) which I had previous disabled because I didn't use it.
    Well, when I went to enable JAVA on the server last week, the service wouldn't restart and the error logs gave me no indication of the problem.
    Through a tedious trial-and-error process I've found that having Cold Fusion running under a generic thread pool while trying to have JAVA (the j2ee plugin) running under Sun One simply doesn't work (for whatever reason).
    Once I killed the pool, everything runs fine.
    Does anyone happen to know why this is? I keep CFMX under its own thread pool because there are certain elements to CFMX that aren't wholly stable and can result in CFMX crashing. If it crashes, the process keeps accepting requests, but never processes them. I'd like to keep the native thread pool free to keep accepting non-CFMX requests even when CFMX crashes.
    Thus the separate thread pool for CFMX.
    But now I can't run CFMX in a separate thread pool with JAVA enabled.
    Anyone have any insights into why this is?
    Thanks

    Two things. Firstly, it's better to use     private static final Object classLock = new Object();because that saves you worrying about whether any other code synchronises on it. Secondly, if you do decide to go for the delegation route then java.lang.reflect.Proxy may be a good way forward.

  • Generic extraction loading and performances issues

    hi,
          any one can give the details about the generic extraction loading as well as performance issues.
    advance thanks
    regards
    praveen

    Hi,
    when there is no suitable business content datasource we go for creating generic data source.
    by using generic data source we can extract data present in single or multiple tables.
    If the data is present in the single table we go for generic data source extracting from table.
    If the data that is to be extracted is present in multiple tables and the relation between the tables is one to one and if there is a common field in both the tables we create a view on these tables and create a generic data source extracting from view.
    if you want to extract data from different tables and there is no common field we create a info set on these tables and create a generic datasource extracting from query.
    if you want to extarc the data from different tables and the relation is one to many  or many to many we create a generic data source from function module.
    If we extarct from function module ,at run time it has to execute the code and brings the data to BW.so it degrades the loading performance.
    regards,

  • Generic decision Task and ABAP OO

    I have implemented a workflow using ABAP OO, which has a couple of user decision steps.
    Now I have made a copy of the generic decision task (8247) into my own custom task. I then copied over the code from the process method of the DECISION BO into my own custom BO. I then referenced the custom BO in my custom task. I tied this custom task to a user decision step in my workflow.
    code
    I had to this so that I could extend the functionality of the code to do something specific to my logic. This works fine.
    However when I write the same code in a method of my ABAP class and tie it to the same custom task instead of the BO, the workflow complains while activating "TASK XXXXX cannot be used as a decision task".
    Any advice would be greatly appreciated. Thanks a lot in advance.

    Hi Amlan,
    What I could figure out from your query is that, you want to use ABAP OO, functionality of classes in implementing a task. Please correct me if I am wrong.
    I would suggest you that Let your Workflow work with the BO, because there are certain tasks for which only BO works, implementation of classes might give some problem.
    check **************** - business workflows for further correspondence
    Best Regards,
    Kanika
    Edited by: kanika chopra on Dec 9, 2008 5:12 AM

  • Generic technology connector and SPML problems

    I'm having some trouble finding docs for my problem. What I'm trying to do is create my own spml web service (employing the new Java 6 JWS technology), which can be used by OIM by means of a generic technology connector . But no matter what I do, I can't seem to make the two communicate. I can't find any documentation explaining how to create a SOAP web service for SPML: what methods should be created, their signature, whether there is any specific WSDL that I should use to generate the Java classes and methods for the web service, etc...
    I actually don't even know whether the new JWS can be used at all. Perhaps I should be using Apache Axis (or Axis2) or something else.
    Thanks.

    This is what I've found in the docs:
    "Each SPML request is sent in a SOAP message. The SOAP header carries authentication information for the request. The actual SPML request data is the SOAP message body. "
    All I'm trying to do is create a SOAP web service (in this case with Java 6, but that's not fundamental) that can intercept that message and grab the SPML request (and then do what I have to do).
    I tried with something like the following code:
    package wsspml;
    import javax.jws.WebService;
    import java.io.IOException;
    import java.util.logging.*;
    @WebService
    public class SPMLServer {
         public String processRequest(String requestData) {
    but it won't work. It's like the exposed SOAP method "processRequest" is invisible. It's not being called. Perhaps the signature is wrong. I don't know what to make of it. I'm trying to understand how to grab that SPML request that's coming from OIM through the custom generic technology connector that I configured.

  • Generic data extraction and loading to cube

    Hello guys, I am trying to load R3 data thru Gernic extraction to infocube in bw3.5.
    I just created generic DS and activated it and also Replicated in BW side.
    I am trying to extract transaction data - from FI , DS has Ship Info Table fields in the extraction structure.
    Everything got activated and now i am in BW side, just assigned DS to infosource.
    But i am stuck in Transfer rules, all infoobjects on the left are empty and it wont let me activate.
    I am really confused, Should i be creating infoobjects first , because i havent created infocube yet.
    My DS has about 12 fields , I really need someone to tell me why its not activating Transfer rules, Comm structure is still empty.
    Should i be creating INfocube first with KF and Chars?or how am i supposed to map these DS fields in the Infocube (my data target)?
    I guess i am not clear at this point, even with LO extraction I could get create DS and replicate in BW , but once i am in BW i become clueless i should say.I did search other posts here but couldnt find anything that help me understand this.if someone could explain me in a simple terms i would appreciate it.
    I have created DS with extraction structure, i am in BW , so whatever field i selected in extract structure in R3 side f rom the table , is that going to be Chars and Key figures in my Infocube once i complete Loading ? or how would that work? Why would we need to chose specific Table when creating view , assuming that we already know the data that we need for reporting purposes, we would know those data should be on what table correct?
    please drop some lines to help me thanks

    hello again, i am writing this since i didnt get any response. I would really appreciate it if someone could give me little hint , i have been practicing on my own using bw system and need help from you Pros.
    My previous question was regarding Transfer rule . I am still not able to get through that steps.
    This is what i have done so far:
    -created DS generic for transaction data,  using View VBAK table (not sure if this was the right table, i just wanted to see if i would be successful loading data in the cube).
    - ACtivated DS, replicated in BW, Assigned INfosource.
    - I selected 15 Fields from DS (extraction structure ) from that VBAK table.
    - But when i am in Transfer rule ./structure screen, there are many fields appearing.
    - It will let me active the Transfer Rules, however i also created InfoCube , it asked me to chose at least one Time Chars, and KF. But i used Template using my infosource, there were no KFs . so i figured i need to change Transfer rule. I tried to create Key figure infoobject on the right side of the screen in Transfer rules, but it will not move to the right when i tried to transfer it.
    My question is, why there are more fields in this screen and some fields are not appearing the one i selected.
    Since i chose transaction Generic DS,is that why i have to have Key figures? did i chose worng table VBAK for practice purpose? i dont really see much Keyfigures when i looked the content of this table using SE16.
    Guys please suggest me , what route should i take to get through this confusion.
    My main objective here is to simply load R3 data using Genric DS(transacitonal)  into a customized infocube.
    I get error when creating Update rule, infosource and infocube wouldn not link, i think its becoz i didnt have any keyfigures available when creating Infocube ? how would i chose one?
    anyone please throw me some suggestions ..i would really appreciate it.thanks again for reading

  • Generics problem - unchecked and unsafe problems

    basically my teacher said it needs to run if she types in "% javac *.java " otherwise i'll get a zero...
    so with that said, i've read that to fix the generic problem you can do the -Xlint:unchecked but that wont help me.
    and i've also read about raw types being the source of the problem, but now i'm completely stuck as to how to fix it. any suggestions would be greatly appreciated.
    here is my source code for the file that is causing this:
    import java.io.*;
    import java.util.*;
    public class OrderedLinkedList<T> implements OrderedListADT<T>
         private int size;
         private DoubleNode<T> current;
         public OrderedLinkedList()
              size = 0;
              current = null;
         public void add (T element)
              boolean notBegin = true;
              size = size + 1;
              if (isEmpty())
                   current = new DoubleNode<T>(element);
              while (current.getPrevious() != null)
                   current = current.getPrevious();
              Comparable<T> cElement = (Comparable<T>)element;
              while (cElement.compareTo(current.getElement()) > 0)
                   if (current.getNext() != null)
                        current = current.getNext();
                   else
                        notBegin = false;
              if (notBegin)
                   DoubleNode<T> temp = new DoubleNode<T>(element);
                   DoubleNode<T> temp2 = current;
                   current.setPrevious(temp);
                   temp.setNext(current);
                   temp.setPrevious(temp2.getPrevious());
                   current = temp;
              else
                   DoubleNode<T> temp = new DoubleNode<T>(element);
                   while (current.getPrevious() != null)
                        current = current.getPrevious();
                   temp.setNext(current);
                   current.setPrevious(temp);
         public T removeFirst()
              try
                   if (isEmpty())
                        throw new EmptyCollectionException("List");
              catch (EmptyCollectionException e)
                   System.out.println(e.getMessage());
              while (current.getPrevious() != null)
                   current = current.getPrevious();
              DoubleNode<T> temp = current;
              current = temp.getNext();
              size = size - 1;
              return temp.getElement();
         public T removeLast()
              try
                   if (isEmpty())
                        throw new EmptyCollectionException("List");
              catch (EmptyCollectionException e)
                   System.out.println(e.getMessage());
              while (current.getNext() != null)
                   current = current.getNext();
              DoubleNode<T> temp = current;
              current = temp.getPrevious();
              size = size - 1;
              return temp.getElement();
         public T first()
              try
                   if (isEmpty())
                        throw new EmptyCollectionException("List");
              catch (EmptyCollectionException e)
                   System.out.println(e.getMessage());
              while (current.getPrevious() != null)
                   current = current.getPrevious();
              return current.getElement();
         public T last()
              try
                   if (isEmpty())
                        throw new EmptyCollectionException("List");
              catch (EmptyCollectionException e)
                   System.out.println(e.getMessage());
              while (current.getNext() != null)
                   current = current.getNext();
              return current.getElement();
         public int size()
              return size;
         public boolean isEmpty()
              if (size == 0)
                   return true;
              else
                   return false;
         public String toString()
               return "An ordered linked list.";
    }the other file that uses this class:
    import java.io.*;
    import java.util.StringTokenizer;
    public class ListBuilder
         public static void main(String[] args) throws IOException
              String input;
              StringTokenizer st;
              int current;
              OrderedLinkedList<Integer> list = new OrderedLinkedList<Integer>();
              FileReader fr = new FileReader("C://TestData.txt");
              BufferedReader br = new BufferedReader(fr);
              input = br.readLine();
              while (input != null)
                   st = new StringTokenizer(input);
                   while (st.hasMoreTokens())
                        current = Integer.parseInt(st.nextToken());
                        if (current != -987654321)
                             list.add(current);
                        else
                             try
                                  unload(list);
                             catch(EmptyCollectionException f)
                                  System.out.println(f.getMessage());
                   input = br.readLine();
              System.out.println("Glad That's Over!");
         public static void unload(OrderedLinkedList<Integer> a) throws EmptyCollectionException
              while (!a.isEmpty())
                   System.out.println(a.removeFirst());
                   if (!a.isEmpty())
                        System.out.println(a.removeLast());
              System.out.println("That's all Folks!\n");
    }

    i tried @SuppressWarnings("unchecked") and that didnt work. so i ran it and it showed these errors:
    Exception in thread "main" java.lang.NullPointerException
    at OrderedLinkedList.add(OrderedLinkedList.java:30)
    at ListBuilder.main(ListBuilder.java:32)
    Press any key to continue...
    which would be:
              while (current.getPrevious() != null)and:
                             list.add(current);

Maybe you are looking for

  • Cannot open links in PDF inside browser.

    Hi, I'm facing a problem that's driving me crazy. When I click a PDF and open inside the browser (internet explorer), if the PDF have links and I click on them nothing happen. If I save the PDF and open in Adobe Reader the links function properly and

  • REGEX help in oracle 10g

    Hi, I have to check for non-numeric at a particular location of the usernames in my database. The usernames i am looking for are something like given below: SAMCM1 SAMCM2 SAMCM3 SAMDM1 SAMEM1 There are other usernames which i dont want to list ..some

  • Differences between 8i enterprise and 8i standard edition

    I have seen numerous discussions on whether 8i enterprise or 8i standard should be used in my division, can anyone point me to a source where I can get a comparision of the features between these two. null

  • Pointless phone call from BT.

    "We are sorry to see you have already changed your broadband provider, & that your landline switches on the **th November. I can see on our system when you called retentions on the 19th October you were passed to four agents who did not try hard enou

  • Import Network Model from Shapefile

    Hello, How to import shapefile of roads network (network data model) into oracle spatial? (Oracle+Spatial 10.2g) http://www.oracle.com/technology/software/products/spatial/files/shape2sdojava.zip deals only with normal (non-network) spatial data.. Hu