32,204 Topics

Member Avatar for
Member Avatar for parul195

i am facing some problems with the following code. initially the jdbc driver(jdbc 4/3) ws not getting registered...nw somehw that problem has been rectified.bt nw i m unable to connect with the database(PostgreSQL). The code i have written is as follows import java.sql.DriverManager; import java.sql.Connection; import java.sql.SQLException; public class Example1 …

Member Avatar for masijade
0
111
Member Avatar for NotThereAnymore

[code]import java.util.Scanner; import java.util.Random; public class Hangman { public static void main (String[] args) { char userAnswer; String[] dictionary = { "acorn", "actor", "album", "alien", "bagel", "basin", "beach", "brick", "cable", "chalk", "cloud", "crowd", "debug", "ditch", "drill", "drink", "eagle", "eight", "elbow", "extra", "fable", "feast", "fizzy", "flood", "giant", "glass", "gross", "grump", "happy", …

Member Avatar for NotThereAnymore
0
123
Member Avatar for alba07

Can someone help me rewrite this java program in python. This program takes a message from the shell and flashes the message one word at a time. Now I am supposed to rewrite it in python (tkinter), I have the gui done and my quit button works, but I cannot …

Member Avatar for stymiee
0
93
Member Avatar for 2mdennis

I am fairly new to Java and am having some difficulty with implementing an arraylist. I have some classes that contain variables and i have a new class that contains my arraylist. I would like to know how i would get the variables from the other classes into the arraylist …

Member Avatar for 2mdennis
0
159
Member Avatar for ajay_tabbu

i have make one package(c:\program files\java\jdk1.6.0\bin\MyPack) and save file as AccountBalance.java this file has two classes.see below. package MyPack; class Balance { String name; double bal; Balance(String n,double b) { name=n; bal=b; } void show() { if(bal<0) System.out.print("-->"); System.out.print(name+":$"+bal); } } class AccountBalance { public static void main(String args[]) { …

Member Avatar for ajay_tabbu
-1
153
Member Avatar for cbailey3001

How can I add a sleep(1000) to this code? I've tried but I can't get it to work. (This program is supposed to be an infinite loop) [code] [COLOR=#800080]public [/COLOR][COLOR=#800080]class[/COLOR][COLOR=#000000] ExtendedThread [/COLOR][COLOR=#800080]extends[/COLOR][COLOR=#000000] Thread {[/COLOR] [COLOR=#800080]public[/COLOR][COLOR=#000000] ExtendedThread(String name) [/COLOR][COLOR=#800080]throws[/COLOR][COLOR=#000000] InterruptedException {[/COLOR] [COLOR=#800080]super[/COLOR][COLOR=#000000](name);[/COLOR] [COLOR=#000000]}[/COLOR] [COLOR=#800080]public [/COLOR][COLOR=#800080]void[/COLOR][COLOR=#000000] run() { [/COLOR] [COLOR=#800080]for[/COLOR][COLOR=#000000] ([/COLOR][COLOR=#800080]int[/COLOR][COLOR=#000000] i …

Member Avatar for deng_cen
0
102
Member Avatar for dmkrivec

I have to write code that outputs the number of upper, lowercase digits and punctuation in a string but am having trouble with the asciival command.this is what I have so far but I recieve an error message about the use of my asciival command.an InputBox input; input= [B][COLOR=#7f0055]new[/B][/COLOR] InputBox(); …

Member Avatar for ~s.o.s~
0
136
Member Avatar for Lisi

I have home work due soon and have written most of the code there are only two parts i am having trouble with: 1.Can anyone tell me how to read the even values of an array, add them and then add the amount of even numbers there were in the …

Member Avatar for Lisi
0
65
Member Avatar for AngeloBaro

[COLOR=#000000]Hello, [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]I learn newly Java programming. [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]Because of this I have this small following question on it: [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]I must create several points from different 3 components (x, y, z), values. [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]e.g: I must create 2 points and (2, …

Member Avatar for arunjain_in
0
127
Member Avatar for janda5

I have an Intel Pentium 166MHz w/MMX Computer and use Windows 98. A web site I was trying to access had this error message: "ERROR! JavaScript is required to use this site!" I then downloaded and installed JRE (Java Runtime Environment), Version 6, Update 1. I even customized my Security …

Member Avatar for The Dude
0
110
Member Avatar for Cerberus

Hi, can anyone recommend a 'simple' to use cross platform installer which is free. I've looked at a few but they look quite complex. Thanks.

0
45
Member Avatar for Toc7777

Hi all, I have a GUI based roulette game with two classes a bet screen and a main menu screen i need to know how to say if a button is pressed in the bet screen to do its operations and then close and return to the main menu screen. …

0
46
Member Avatar for Soraji

Hello everyone! I am a first year student studying computer science and I am having a little trouble figuring out how to implement this part of a program. I am writing a word search puzzle generator that takes in a list of words and dimensions (such as "cat", "animal", "fish", …

Member Avatar for Soraji
0
97
Member Avatar for tygerberg

Hi How would I go about developing a simple IM which will be used on mobile phones. By this I mean creating a database to hold all the information needed to log on, the API's needed, security and everything that makes the motor spin.

Member Avatar for Phaelax
0
87
Member Avatar for onsir

Hi, how to using function "for" to show iteration and the result put in jTextArea or jFrame. exp: i want to loop value 1 to 10, then result : 1 (iteration 1) 2 (iteration 2) . . 10 (iteration 10) I'm using netbeans Thank's

Member Avatar for Phaelax
0
95
Member Avatar for omoz4real

Pls i am a new member of dani web and i need help on implementing random images. I have got six gif images on my frame ,a JComboBox and a Button.the JComboBox displays the images if each one is clicked.I want to add an actionlistener to the Button so that …

Member Avatar for omoz4real
0
1K
Member Avatar for vivek.a.84

Hello, I am basically trying to develop some kind of automated test case generation tool, where first I need to generate the test cases and then write to excel sheet.the test case will be a set of mouse clicks and key events which needs to be recorded by my application …

0
49
Member Avatar for Adriel1990

i need help i dont know what to do, heres the psudocode and java code Function (BinaryNumber is String) returns Integer Var DecimalNumber is Integer initialized as 0 Var Power is Integer initialized as 0 Var BinaryDigit is Integer For (I (start value is length of BinaryNumber) to (end value …

Member Avatar for lucky1981_iway
0
88
Member Avatar for Legoland

Hi! I hope someone can help me out with this.I have one task left on my homework that i´m struggling with. The assignment is: Create a program in which you can put 10 words into separated by enter in the command window after that print the words backwards in the …

Member Avatar for Legoland
0
91
Member Avatar for vivek.a.84

Hi Im working in an application which will track the click made in any web based application. For Eg: If u click on a link "mail" in yahoo.com.. this application should be able to detect the link clicked. silmilarly for other radio buttons, check boxes.. etc. can someone tell me …

Member Avatar for jwenting
0
98
Member Avatar for the-new-guy-

[inlinecode] hi in school we have been set a homework task of making a game with a few simple programs! Our teacher asked us to team up and make a game lol just like that we have one month and we have sketched out some plans backgrounds ideas etc please …

Member Avatar for jwenting
0
106
Member Avatar for MenloDeveloper

Hello all, We have created a java app that creates its own file format that we can assoicate with the application in Windows. We would like for the user to be able to double click on of these files while the app is running and have the app open it. …

Member Avatar for jwenting
0
60
Member Avatar for MenloDeveloper

How can I find out where the class files are installed in a programmtic way? Thanks, Menlo

Member Avatar for jwenting
0
110
Member Avatar for Venks

Hai friends is there any way to print logo or images through serial port printer plz guide me for this ...

0
52
Member Avatar for nizam147

Hello EveryOne, i am using struts datagrid in my project can anyone help me in pagination in datagrid, that is displaying only say 10 records per page can that be done. thank you in advance

Member Avatar for nizam147
0
37
Member Avatar for monkeytuesdays1
Member Avatar for developer4321

I need help coming up with an algorithm to determine if the user clicks on any point of a line. A line is given by two points. So you have x1, y1 positions of the first point, and x2,y2 positions of the second point. I need to determine in the …

Member Avatar for developer4321
0
92
Member Avatar for kapkan

Again i (= As though authorization, i check on presence of record in db. Why that i do not receive the necessary result. Prompt in what a problem. Thankful in advance. In db the table users a kind: |id|acc|pswd |...| [code] ================== public class DrugstoreFrame extends JFrame { MsAcDatabase database; …

Member Avatar for kapkan
0
77
Member Avatar for parul195

im facing problems installing the jdbc driver on my machine.... the OS on my machine is fedora core 6... plz help

Member Avatar for jbennet
0
72
Member Avatar for Salim_22

hello there i need help on encrypting and decrypting words. this is my task i have to do: [COLOR=#000000]Implement a piece of software that can be used to encrypt and decrypt words. At its simplest, the software could use a simple translation process that replaces each letter with a different …

Member Avatar for Salim_22
0
120

The End.