32,199 Topics

Member Avatar for
Member Avatar for srs_grp

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 …

Member Avatar for masijade
0
121
Member Avatar for ezkonekgal

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 …

Member Avatar for ezkonekgal
0
306
Member Avatar for srs_grp

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 …

-1
97
Member Avatar for jeffreyjs

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 …

Member Avatar for peter_budo
0
299
Member Avatar for SSJVEGETA

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; …

Member Avatar for JavaCool4Me
0
175
Member Avatar for bharanidharanit

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?

0
48
Member Avatar for TAboy24

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 …

Member Avatar for BestJewSinceJC
0
99
Member Avatar for hira ahmad

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 …

Member Avatar for hira ahmad
0
137
Member Avatar for vinayakshukre

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 …

Member Avatar for vinayakshukre
0
935
Member Avatar for javaman2

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 …

Member Avatar for puneetkay
0
86
Member Avatar for aveltium

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"); } …

Member Avatar for aveltium
0
124
Member Avatar for Blackeagle

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 …

Member Avatar for Blackeagle
0
101
Member Avatar for srs_grp

I have a byte array has follows: 0 6 -56 28 How can I get its integer value by doing a manual calculation?

Member Avatar for verruckt24
0
846
Member Avatar for Alishaikh

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 = …

Member Avatar for verruckt24
0
166
Member Avatar for bhob

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..

Member Avatar for verruckt24
0
192
Member Avatar for amalinaishak

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.

Member Avatar for quuba
0
151
Member Avatar for nitinnitin18

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 …

Member Avatar for BestJewSinceJC
0
116
Member Avatar for frankytee

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 …

Member Avatar for The Dude
0
106
Member Avatar for ncmoros

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 …

Member Avatar for ncmoros
0
78
Member Avatar for nymph

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 …

Member Avatar for stultuske
0
88
Member Avatar for protonix

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.

Member Avatar for ~s.o.s~
0
260
Member Avatar for kedakai

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 …

Member Avatar for kedakai
0
160
Member Avatar for ezkonekgal

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.

Member Avatar for ezkonekgal
0
216
Member Avatar for boburob

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 …

Member Avatar for BestJewSinceJC
0
184
Member Avatar for Superstar288

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 …

Member Avatar for Superstar288
0
147
Member Avatar for Narayanan87

Can anybody send me the source code in JAVA platform for Networking monitoring

Member Avatar for verruckt24
0
136
Member Avatar for srs_grp
Member Avatar for ~s.o.s~
0
133
Member Avatar for Simran1

Hello, Please tell me in Java we don't have a multiple inheritance? so,in which function we use these inheritance. Thanks

Member Avatar for parthiban
0
117
Member Avatar for Thamizh Bharat

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 …

Member Avatar for PhiberOptik
0
120
Member Avatar for hctstudent

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 …

Member Avatar for quuba
0
123

The End.