32,199 Topics
| |
In following code ,I have initialized column to empty blob. But when I try to retrieve the blob,i get an exception.Can anybody help me out?? _____________________________________________________ [code] import java.sql.*; class test { public static void main(String[] args) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection conn= DriverManager.getConnection ("jdbc:odbc:dixit","scott","tiger"); PreparedStatement st=conn.prepareStatement("insert into survey values … | |
before anything else, i have a question. How can you have a multiple stack in one vector using node/linked list? i don't get the concept of linked list yet. Anyways, this is my problem: [B]Create a Java class definition of a multiple-stack in one dimensional vector. Implement the basic operations … | |
I have byte array that contains (49 50 58 57 57). I'm storing this byte array in blob by using setBytes() method of preparedStatement. But in database,it is stored in different manner i.e, 31323A3939. When I try to retrieve value of this blob using getBytes() method, I'm getting output as … | |
Hi, I am currently doing a mini project using Eclipse with Java language.. i needed to submit some values into the DB, but i am having some trouble to do so... i would like to find out if i need to create variables for all the values i want to … | |
Good morning everyone. I am having trouble connecting my MySQL database to a JTable in Eclipse. I keep on getting an exception and receiving this message "Unable to find and load database driver". Here is a sample of database code for the program: [CODE]class QueryTableModel extends AbstractTableModel { Vector cache; … | |
Java coding to find the open ports in the system and also which ip address and host name is using the ports. Is that possible with the java coding? | |
Hello friends,happy new year all.. I'm trying writing classes Item to include int Quantity,String name and a new&different&immutable serial number will be produced automaticly for every item...(then being able inherating the Item for sub classes for types of food) Also i'm trying build a proper class Stock enabling to manage … | |
hi All, I m a student.... I am assigned a project in java course to develop a "Ftp Server using RMI".... Requirememts:- Requriments are not so high.... It should be a simple one... Ftp Server could add, remove, view users and statistics through proper GUIS..... Ftp Client shloud be logged … | |
I have a stored procedure in oracle which has 2 in parameter and 1 out parameter. One of the in parameters has default value given. I want to call this procedure through java without specifying value for the in parameter which has default value given. Any idea, how to do … | |
im trying to write a program that determines the type of hand with three cards (one pair, three of a kind, straight, flush, straight flush, high or low card, or royal straight flush) This is my code so far. I got the cards to come up to be what they … | |
Hi, I'm sorry for making the question unclear, but my English is not good. I will try to explain it: [code=java] class test0{ test1 t1 = new test1(); public static void main(String args[]){ new test0(); } public test0(){ t1.displaymsg1(); t1.callDisplaymsg0(); } public void displaymsg0(){ System.out.println("Successfully linked to test0 class"); } … | |
Hello, i'm trying to make a a list of items in a Text Area, something like this: apple 2 22 banana 31 1 orange 1 3 i want to it o be organized such that the numbers are in one column, and thats not working with me since the names … | |
I have a byte array has follows: 0 6 -56 28 How can I get its integer value by doing a manual calculation? | |
I'm trying to do selection sort for objects...But it wont work, please help. We were told to change the first one to do objects. Any help appreciated [ICODE] public static void selectionSort (int[] numbers) { int min, temp; for (int index = 0; index < numbers.length-1; index++) { min = … | |
write a java program that checks if parenthesis and brackets are balanced in an arithmetic expression. help me!! :(( i dunno how to solve that problem.. is it the same as the calculator java code? the concept, i mean.. :( help me guys.. | |
i need to enhance jawi converter application using syllable word, but i don't know how to start it. The previous version, the coding is not working for syllable,so i need to change some coding to make it done convert correctly.Here some of code that i have to enhance. | |
i was writing a code for the applet in the awt class. but i was confused as i couldnt find any function to fix the position of button or textbox in the applet. the only solution which i got was using layout manager. but then i also couldnt find the … | |
Morning everybody. my question seemed simple but i have been trying (unsuccessfuly) for day's to solve it . i have a message in red saying my javascipt is disabled/limited fincionality only. i have lost search function/restore function. and i can't access my emails.i have googled this and recieved load's of … | |
Sunce I updatred to Java 6.0.2 late last summer, no other updates will install. I have dowloaded the online and the offline version of Java 6u10 and 6u11 and the Java installer screen does not come up. when I double-click on the saved files I am using Windows XP Pro … | |
hi all! i want to delete a file/directory in java, the delete().depends on other programs which uses file name as string.but for me to delete the file,the name must be a File. that is what i have realized as when i use string it does not recognized some methods,like List … | |
I having trouble understanding what the routines are doing. Can some one point me in the right direction. I have enclosed the java files. This is part of an internet challenge to better myself. | |
Can anyone help me with this?.... I got some sample programs to be studied but I don't really know how to remove its bug..I don't know if there really is..but I think there is...there was no error upon compiling but when I try to run it...there is... here is the … | |
A book shop has bookshelves with adjustable dividers. When one divider becomes full, the divider could be adjusted to make space. Create a Java program that will reallocate bookshelf space using Garwick's Algorithm. Can any give me some pointers with this ? thanks. | |
Hey everyone, im writing a blackjack program with java swing and im having problems with setting the layout with panels and frames. I want to apply a different layout to two different panels, add them to a frame and then display the frame, heres my code: [CODE]//Blackjack //By Thomas Bean … | |
hey can anyone help me with some work please i have been asked to: provide information about the number and total amount of purchases from each suppliers each month, the number of sales and total price for each category of animal each month. at the moment i have got the … | |
Can anybody send me the source code in JAVA platform for Networking monitoring | |
Hello!! I have a ByteBuffer & I want to send it on tcp or udp connection. How can I do this? | |
Hello, Please tell me in Java we don't have a multiple inheritance? so,in which function we use these inheritance. Thanks | |
Hi. I want to implement a mouse using a webcam. I would be tracking a laser pointer dot using a webcam and converting that point to mouse coordinates. I want to develop a java application for it. I am a beginner in java so i would be very thankful if … | |
Hey everyone, heard the people here are good so I thought u were the only ones to help me in this i keep getting these runtime errors [icode] Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: empty String at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994) at java.lang.Double.parseDouble(Double.java:510) at MainClass.actionPerformed(MainClass.java:263) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at … |
The End.