32,199 Topics

Member Avatar for
Member Avatar for DeadJustice

I tried to modify this merge sort method to sort an array of type T. Its an merge sort except iterative. I was just wondering why it wouldn't sort right? Can anyone help me out? [CODE=Java]public static <T extends Comparable<? super T>> void iterativeMergeSort(T[] input) { // Create a temporary …

Member Avatar for DeadJustice
0
153
Member Avatar for shubhang

Hi, I am making a java program to make a countdown timer. User enters time,then when time is up a message is printed. How do I print the time on the same line? Please tell me how to go about it. Thanks.

Member Avatar for stultuske
0
256
Member Avatar for l_03

i dont know how to solve this problem,,it seems that i dont know how to fixed this error Exception in thread "main" java.lang.StackOverflowError please helped me,,im stack on it,, i just have a class public class ATM{ BankAccount bank = new BankAccount(); SavingsAccount savings = new SavingsAccount(); CheckingAccount checking = …

Member Avatar for stultuske
0
768
Member Avatar for sahrourr

hello i need a help, if i have a text file that contains something like this: account num name credit account type 1 sara 1000 current 2 jerry 5000 comercial i wanna get out the number in the credit coloumn to add or subtract from it and i don't know …

Member Avatar for BestJewSinceJC
0
70
Member Avatar for BestJewSinceJC

Hey, one of you guys suggested that I go on Wikipedia's page for hash tables. It was actually pretty informative. I'm pressed for time so I am doing separate chaining for my hash table because it seems like it will be one of the easiest to implement (and according to …

Member Avatar for BestJewSinceJC
0
152
Member Avatar for modiri
Member Avatar for deven1974

Hello, I'm trying complie this SortedList Program and List Java, but I'm alot errors. If someone can help with this, I really appricated. Thanks import java.util.Iterator; /* * * SortedList.java * */ public class SortedList<E extends Comparable<? super E>> extends List<E> { private int size; public SortedList(){ head = null; …

Member Avatar for Antenka
0
317
Member Avatar for khalidmehmood

Hi Experts! I am new to Java any body guide me where i can download free java lectures. best regards Khalid Mehmood

Member Avatar for Freaky_Chris
0
146
Member Avatar for l_03

hello guyzz,,,i am almost finished with my code,,but our teacher require us to access a text file..this is it: in my text file: accountList.txt 12345 1234 200000 Jerry Lopez first column was accountNumber, then the pinNumber, then the balance and the name.. what i did was... import java.io.*; public class …

Member Avatar for l_03
0
214
Member Avatar for Soloz

Ok so.. I've been trying to customize a dialog box.. I'm pretty new to this.. So this might be a stupid question.. But anyways... Code: Object [] options = {"Course I do!", "Not Really"}; int n = JOptionPane.showOptionDialog (frame, "Do you Understand?", "Easy Question", JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, null, //do not use …

Member Avatar for stultuske
0
76
Member Avatar for nanosani

If I want to add a plugin which I have designed after I have written the software ... how should I do it. Suppose I designed a word pad ... and then I designed a spell checker ... how should I add the spell checker to my word pad to …

Member Avatar for stultuske
0
179
Member Avatar for ezkonekgal

This is what i did for the factorial assignment that we had.. but i have a little trouble in my recursionFactorial method.. can anyone help? tnx public class Factorial { public static void main(String[] args) { int index = JOptionPane.showConfirmDialog(null,"Would you like to compute\n" + "for the factorial of a …

0
91
Member Avatar for ebiz

I wondered if anyone could help. I am trying to use a FileChooser in java. I have got the dialog box to appear and can select the file, but the box just displays "opening" and the file name. how to I add to the code to make it actually open …

Member Avatar for javaAddict
0
216
Member Avatar for Tyrone.Wilson

The protection on code generated in NetBeans is great. untill it gets it wrong and you have an arbitrary line protected and it totally stuffs up your code and you can not longer work on your project!! Anyone know how to temporarily remove the protection, edit what you want and …

Member Avatar for Tyrone.Wilson
0
569
Member Avatar for ebiz

I currently have a table in oracle which I have created, but need to take a text file (which I have used a fileChooser for) and then use this file to update the records in the oracle database. How would I go about this? Thanks.

Member Avatar for Ezzaral
0
156
Member Avatar for cbickle

Hey everyone im working on a class in java that does several things. it is supposed to take a sky condition either sunny snowy cloudy or rainy and a temp between -50 and 150 f. the default sky is sunny and temp is 70. it needs a method that converts …

Member Avatar for Antenka
0
897
Member Avatar for shubhang

Hi, I am new at java. I have made the search class of an address book program with the functions of add, modify and delete. Please have a look into the code. Please also explain the function of [code] e.printstacktrace();[/code] [code] import java.io.*; import java.util.*; class search { private String …

Member Avatar for Antenka
0
163
Member Avatar for lone_emu

I got most of the basics but i need help on getting all of the requirements right and EVERYTHING I NEED TO DO. Is there a way to replace certain chars without actually using str.replace();, especially punctuation? This is the assignment 1. You will create a class that will perform …

Member Avatar for Antenka
0
611
Member Avatar for alip15379

Hi everybody I'm new to this forum, and I hope I get to know you all for as long as I'm gonna be coming here. I need help with my program. basically wat i need to do is to create a program in which it check the spelling of the …

Member Avatar for Antenka
0
176
Member Avatar for shubhang

I have made this delete class of my address book program. It gives an error when I use the renameTo() function. Please look into my program. [code] import java.io.*; import java.util.*; class del { private String stru,strf; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); public void calc()throws IOException { System.out.println("enter record to be …

Member Avatar for bondo
0
167
Member Avatar for christiangirl

I have this program all working, except in how the text looks in the file. The text is supposed to be all on different lines, but its all on the same. Here's the code: [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; /* * class LogOrder * Allows user …

Member Avatar for christiangirl
0
131
Member Avatar for freaky.pandit

hey guys... i need to integrate a fingerprint sacnner into a project wchich i am developing right now. but i do not know any java api which support hardware integration...so i m in a total mess... can anyone tell me a way to integrate the fingerprint scanner in my application. …

Member Avatar for AlbertPi
0
126
Member Avatar for java_programmer

Hi all, I am a new user of struts. I have a requirement where I need more than one ActionForm against a single DispatchAction, but I am not able to handle this situation. Is it possible to have more than one ActionForm against a single DispatchAction? Thanks in advance...

Member Avatar for AlbertPi
0
140
Member Avatar for MxDev

hi guys, i'm trying to connect java application to SQL server 2005 developer edition, i used the following code which comes with the microsoft jdbc-odbc driver 1.2, after that i modify the class path to load sqljdbc_auth.dll file. import java.sql.*; import com.microsoft.sqlserver.jdbc.*; public class connectDS { public static void main(String[] …

Member Avatar for AlbertPi
-1
169
Member Avatar for tte

Hi. I've built a HttpServlet that catch a request and parse a web page using InputStream, InputStreamReader and PrintWriter changing some content along the way and output it as a response. Everything works like a charm (parsing html, css, gif, jpg, aso) except for png images. Since png's are binary …

Member Avatar for AlbertPi
0
141
Member Avatar for AlbertPi

The following method "sound" works on my PC and it sounds a beep. I am using java 1.5 and Jdeveopler 10.1.3.4 on Windows XP/SP2. import javax.sound.sampled.*; public void handleBeep(ReturnEvent returnEvent) { try { sound(2000,150); } catch (LineUnavailableException lue) { System.out.println(lue); } } public static void sound(int hz,int msecs) throws LineUnavailableException …

Member Avatar for AlbertPi
0
223
Member Avatar for das_das

hello I have attended SCJP 5.0 and SCJP 6.0 Mock test at , it good one at [link removed] 10 sets of mock test i have attended... I want to attend more mock test before actual exam.. can anybody please tell me where can i attend ? thanks das

Member Avatar for peter_budo
0
99
Member Avatar for gadisandeep

Hi,I am reading this .CSV file and new to this.I have information in tabular form where i have names in 1row and 1column and in between cells i have numbers indicating links of those names by that purticular number. I want to retrevie those names who are having that purticular …

Member Avatar for Tyrone.Wilson
0
109
Member Avatar for dayotjawak
Member Avatar for jessxe02

Help I want to learn how to connect SQL to my java program? is there any free online tutorial? help my please..

Member Avatar for sierrainfo
0
153

The End.