32,199 Topics

Member Avatar for
Member Avatar for javed123

Hi , I have problem related to ArrayList...... ArrayList object may contain 1 or more ArrayList Objects and those inner ArrayList Object may contain 1 or more ArrayList Object and it is extendable to n levels. Condition is also added as ArrayList may contain different type of Objects too, i.e. …

Member Avatar for balumohan2
0
148
Member Avatar for henrock143

guys...can post a number guessing game code so I can compare it to mine....im still have a little problem with mine.... plsssss and thnx...

Member Avatar for anupam_smart
-1
97
Member Avatar for StarZ

I got the first part correct but how do I put the get height into the second part? Like would I just repeat everything the base did.. like "private double height" " public void setHeight " etc... [B]The design is this: [/B] RightTriangle variables: base, height methods: setBase - changes …

Member Avatar for BestJewSinceJC
0
726
Member Avatar for Sujata Bandyo

Hi Friends, I am having problem with the above code snippet. Initially it woked fine. But now it is giving an error of java.sql.SQLException: ORA-01722: invalid number. How can I resolve the exception? Thanks. [code=JSP] try { String ein=(String)session.getAttribute("EIN"); System.out.println("inside try block"); Class.forName("oracle.jdbc.driver.OracleDriver"); con=DriverManager.getConnection("jdbc:oracle:thin:@10.9.16.2:1521:TESTDB","HE","HE123"); Statement st=con.createStatement(); ResultSet rs=st.executeQuery("select distinct REV_OWNER …

Member Avatar for masijade
-1
2K
Member Avatar for raider650

BMI= w/(h/100)2 [CODE]double BMI = weight/(height*height)// Works when weight=kilograms, height= meters [/CODE] I need the output to be in kilograms and centimeters. Any help, much appreciated.

Member Avatar for BestJewSinceJC
0
41
Member Avatar for bharath1

i want the code for avl trees using dictionaries in java... with total insert , delete, display options

-2
30
Member Avatar for rp_prasanna

jdbcTemplate.execute("{call TEST_CURSOR.TEST_PROC(?)}", new CallableStatementCallback() { public Object doInCallableStatement(java.sql.CallableStatement cs) throws SQLException, DataAccessException { cs.registerOutParameter(1, OracleTypes.CURSOR);//if the first variable is out parameter //here u have to set the OracleType to the variable which u r setting in the procedure cs.setString(2, "second parameter"); cs.setString(3, "third parameter"); cs.setString(4, "fourth parameter"); cs.execute(); cs.getBoolean(1); //here …

0
60
Member Avatar for StarZ

It keeps highlighting the line "super(r);" I can't find whats wrong with it.... The Error says: 1 error found: [B]File: C:\Documents and Settings\HP_Administrator\My Documents\Anna - java\Disk.java [line: 14] Error: C:\Documents and Settings\HP_Administrator\My Documents\Anna - java\Disk.java:14: cannot find symbol symbol : constructor Circle(double) location: class Circle[/B] The contructor code is: [code]/** …

Member Avatar for Ezzaral
1
141
Member Avatar for praschat

I am developing a Remote Desktop kinda application. The program is supposed to get the screenshots of the remote machine along with the cursor icon image. Now my question is without using JNI is it possible to extract the mouse pointer icon (whatever it is in the remote machine at …

0
49
Member Avatar for StarZ

I copied this code from the textbook, so the code should have no mistake? I typed the contructor file(I think thats what its called) and the actual codes. So the code looks like this: [code]public class TestCircle { public static void main(String[] args) { Circle spot = new Circle(); spot.setRadius(5); …

Member Avatar for StarZ
0
401
Member Avatar for EddieC

With the release of [url=http://esd.ingres.com/] Ingres Database 9.3[/url] today, the company says it's now easier for developers to migrate their application to the open source system from MySQL, Oracle,SQL Server and Sybase. It does so, the company said, through "improved accessibility of table procedures from within the query" and support …

0
205
Member Avatar for henrock143

well....my teacher ask me to create a program that reads set of integer's and then finds and prints the sum of the even and odd integers....could someone help me in dis program... and can u make it simple plss....ill be happy if u would... plsss and thank you...:icon_confused:

Member Avatar for zhangj5
-5
125
Member Avatar for Deva.VG
Member Avatar for JamesCherrill
0
73
Member Avatar for Deva.VG
Member Avatar for VernonDozier
0
95
Member Avatar for beshoyatef

Here i draw the board for chess and put all pieces in there places on the board ... then i want when i pressed by mouse on the board give me the value of x , y . I tried with all things but i cann't solve this problem please …

Member Avatar for VernonDozier
0
77
Member Avatar for jrosh

[ATTACH]11999[/ATTACH] How can I add above type text into a JTextfield??????? I mean the faded texts as "username".. It should be ok to erase them when entering text into the field.. How can I do it?? thankx in advance.

Member Avatar for parry_kulk
0
897
Member Avatar for Xessa

Hello. I'm trying to convert Calendar to dd/MM/yyyy format. My problem was it couldn't convert to exactly what i wanted. I'm Turkish so when we write a date, we write the day first then month then year... My code is here [code] public static String toFormattedDateString(Calendar input){ String year = …

Member Avatar for Xessa
0
159
Member Avatar for kerkquin

Help me ,,... i nid to learn all about looping in java programming and what are the sample codes. plss. help me.. tnx..

Member Avatar for sbhavan
-3
105
Member Avatar for shauket
Member Avatar for sbhavan
-3
80
Member Avatar for joseph99

Can anyone please tell me how to turn on Java script,I have lost the ability to veiw photos or videos on my laptop Dell inspiron 630m. When I try to veiw anything it says that I need to download Flash player or I have to turn on Java script.

Member Avatar for saninfosys.com
0
98
Member Avatar for gunjannigam

I want to know that can I run a code which extend JPanel and uses JFrame without running the x11 server on ubuntu. I read something about Headless but its not working.

0
71
Member Avatar for gtey

I need to write an application that reads three intergers and prints their average, 2- write an application that reads two floating point numbers and prints their sum, difference, and product. I am doing programming projects in Java software solutions 5th edition for school. _______________________- [URL="http://ltseo.com.au/"]SEO[/URL]

Member Avatar for javaAddict
0
136
Member Avatar for DARK_BYTE

Hello I wrote a class Employee and a tester class TestEmployee.The problem is that I get this exception after I enter the first employee's id.I thght if I give default values to the instance field the exception shouldn't have occured; can someone help me with this please: Employee class: [code] …

Member Avatar for DARK_BYTE
0
148
Member Avatar for sumit_raokhande

I did one J2ME SMS based Application.overview of my project.My j2me Application reside on Sales Person Handset.Sales person can send a sms to supplier to get a product.for e.g. Sales person send sms Store and related product means Suppose Store is "Nokia" and product is model number Nokia 5610 sales …

0
50
Member Avatar for arunpatil884

import javax.servlet.Filter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; Hi guys, please help me out. i m not able to import the above file what could be d reason. it says cannot resolve.

Member Avatar for masijade
0
24
Member Avatar for talablink

how do you add a key listener to a java GUI? can anyone pls show me how... or at least give an example..pls:) cause I want to add a key listener to my GUI calculator but I don't now how or where to put it and stuff...:-/ thanks...

Member Avatar for phamvantu_ctk30
0
158
Member Avatar for farzanehmif
Member Avatar for kahaj

For some reason, line 67 is saying, "variable ddOption may not have been initialized. However, on lines 80 & 93, that variable is used and works just fine. Any idea of what's wrong here? (I omitted some of the code in the middle section. [code] //ShapeCalculator.java import java.util.Scanner; public class …

Member Avatar for kahaj
0
117
Member Avatar for sweebez

Hello! I'm having a bit of confusion here regarding toStrings and Constructors. Namely, why would you ever need them? I have a project for my course, and in it, I use a method that checks for a creature's "energyLevel" to see if that creature is still "alive". This method returns …

Member Avatar for 0805638
0
634
Member Avatar for llemes4011

Hello everyone =) I'm a Java programmer who wants to do work with databases. MySQL seems to be a popular choice, but I don't know where to start. I messed around with Derby, but I didn't really understand what was going on. If anyone could point me in the direction …

Member Avatar for peter_budo
0
119

The End.