aspose file tools*
The moose likes Beginning Java and the fly likes Integer into a List Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Integer into a List" Watch "Integer into a List" New topic
Author

Integer into a List

Prabha Dhandapani
Ranch Hand

Joined: Sep 11, 2003
Posts: 70
Hello everybody,
Below is the piece of code that needs a little attention.Is there a way to add a long type value into a List.If yes,please help me because it is very very urgent.Looking forward for help!

the seq value that I am inserting into the table is a field of type NUMBER and NOT NULL.
Any help ASAP is appreciated.
Many Thanks in Advance,
Prabha
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8707
    
    6

It is polite to post the text of the error you are receiving. I take it that you are getting a complaint from the compiler that long argument is not an object. It is easy enough to wrap it in one:

Most databases provide for some sort of autonumber or index field. It is a good idea to take advantage of it if you can. One less thing you need to do.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Prabha Dhandapani
Ranch Hand

Joined: Sep 11, 2003
Posts: 70
Hello Mr.Joe,
Thanks for the help.It worked fine!I also appologize for not sounding polite.
Once again thanks for the help. We are planning to add a sequence to the table but as a temporary solution, we are doing it this way!
Thanks,
Prabha
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Integer into a List
 
Similar Threads
Urgent Help!
KeyEvent handling in a JTable
Need help with Loop
Oracle ORA-29902 Error!
component layout not wrapping inside Panel