36,051 Topics

Member Avatar for
Member Avatar for MrDiaz

I'm trying to create a simple program that will check for any given number (an ID) provided by the user and check this ID with an array of numbers inside my program. If the correct ID is given, it will display "Valid ID" if the ID provided by the user …

Member Avatar for MrDiaz
0
130
Member Avatar for mrjoli021

I am trying to write a program that will monitor my routers and servers and notify me when they go down. I am looking for a way to ping the host and read the reply. The InetAddress.isReachable method is the only thing i could find but it uses the echo …

Member Avatar for darkagn
0
164
Member Avatar for shubhang

Please help me with a simple watch program. In the program,I have to display on the same line. i have written the following code which is not working. pls look into it [code] class watch { private int h,m,s,a=0,b=0; public void calc() { for(;a==b;s++) { if(s%60==1) { m++; } if(m%60==1) …

Member Avatar for Antenka
0
321
Member Avatar for Blackeagle

Hello, i'm working on netbeans and want to access my database using this code: [CODE=java] import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class connect { /** * @param args */ public static void main(String[] args) { try { Class.forName("com.mysql.jdbc.Driver").newInstance(); } catch (Exception ex) { System.out.println("error \n"); …

Member Avatar for Blackeagle
0
401
Member Avatar for zoroman

Hi. I need to do a scramble game. Simply I need to randomly select a word from my set of strings and print out in shuffled string. Such as if the word is "banana" it should print out something like "anaban" and there should be text field for user to …

Member Avatar for peter_budo
0
178
Member Avatar for php2sheik

hi, is session_id is generated by javapage in one website is equal to session_id generated by phppage????.because i integrated php pages to java pages in that website. so i maitain session based on that java page. is this possible to session_id from java page to php page, if i get …

Member Avatar for digital-ether
0
183
Member Avatar for sivak
Member Avatar for serkan sendur
0
74
Member Avatar for jbennet

basically i have a 3d array of chars, i need to be able to save and load it using text files. Any as to how i would actually do it? Im familiar with reading lines using BuffererdReader and stuff. Im thinking use a loop to save each element to a …

Member Avatar for ~s.o.s~
0
110
Member Avatar for koa636

error message cannot find constructor `lottery(int[])` import java.util.Random; public class Lottery { private final int NUM_DIGITS = 5; private int[] lotteryNumbers = new int[NUM_DIGITS]; private int[] userNumbers; private int matches; public int[] getLottery(int[] l) { // Create an array the length of l. lotteryNumbers = new int[5]; // Random object. …

Member Avatar for Ezzaral
0
115
Member Avatar for MxDev

Hi guys, i've a problem when running java application connected with sqlite database the connection is done with netbeans IDE, but when i trying to run the application i get the following error [COLOR="Red"]init: deps-jar: compile: run: 06/12/2008 04:42:49 ص org.jdesktop.application.Application$1 run [COLOR="Green"]SEVERE: Application class desktopapplication3.DesktopApplication3 failed to launch javax.persistence.PersistenceException: …

Member Avatar for stephen84s
0
171
Member Avatar for MxDev

hi, i'm trying to reference a class outside the current working package how to reference this class to create an object???

Member Avatar for stephen84s
0
48
Member Avatar for krhillery

Alright, so for the output: 0 2 4 6 8 10 1 3 5 7 9 11 3 6 9 12 15 18 6 10 14 18 22 26 ... (the pattern presented goes on forever) a code must be written to create it. I know I need a for …

Member Avatar for stultuske
0
127
Member Avatar for umairsario
Member Avatar for ajithraj

hai friends, I want to import a photo from server machine to client through java..s there any way to import that.. Thanks in advance

Member Avatar for peter_budo
0
51
Member Avatar for roko12

I need help with this code. it's basically a lotto program, but I only need to know how to get the 1st number right to do the rest. the user needs to be able to enter a number between 0 and 55. The program has to send an error message …

Member Avatar for roko12
0
71
Member Avatar for spi02

Hi everyone! My problem basically boils down to this: I have 71 items, and each item can be either on or off. I need to consider all the combinations (permutations?) and go through a 100 for loop for each of the 2^71 scenarios...on the scale of 10^23. Two questions: [CODE]1) …

Member Avatar for shaun.husain
0
103
Member Avatar for VirusTalker

Okay so this is the deal. I want to make a call to a routine that replaces all of one certain type of integer with a number. I have it to where it is replaceing the first, however, it misses the tail node.[ICODE] public static SimpleList<Integer> replaceAll(Integer old, Integer nEw, …

Member Avatar for shaun.husain
0
158
Member Avatar for VirusTalker

[ICODE] public static boolean member(Integer obj,SimpleList<Integer> l); // returns true if obj is a member of l, false otherwise { }[/ICODE] the question is how could I use recursion to show that there is a member of a list? I thought that maybe if (l.isEmpty()) {return false} else ? thanks

Member Avatar for VirusTalker
0
108
Member Avatar for adigha

hello, i need to create an applet for a "company", in which you log in, and according to your possition(ex: worker, manager) you can see and change different objects such as sallery and the abililty to fire people. im completely stuck on the login part, i have the gui set …

Member Avatar for PoovenM
0
199
Member Avatar for ITlang007

Hi everybody, I'm really new to java and I'm not sure how to do this, //Create an ArrayList of String type to hold first names of the students I created mine like this.... ArrayList<String> first = new ArrayList<String>();

Member Avatar for ITlang007
0
145
Member Avatar for -Observer-

Hi, I'm new to Java and I need help with the following if someone can help me: Write a program named Personnel that maintains salary information for the employees of a company. The program should display a text based menu, giving the user a choice of selecting a command. The …

Member Avatar for verruckt24
0
107
Member Avatar for Innas

<jsp:include page="hlinks.jsp"/> is not workin on the server. I have taken a webspace and uploaded my files on server. the problem is contents ofpage hlinks.jsp is not included on the page where it is included. What changes should i make in my code so that the tag will work. Similarly …

0
45
Member Avatar for jistoj

Windows explorer.exe was crashing & rebooting itself. On Startup, explorer.exe would show the desktop for about 10 sec, then crash for about 10 sec, then cycle through the same for about 10 min until it just would not start up again. Following the instructions for cleaning from another post: [URL="http://www.daniweb.com/forums/post738435-2.html"]http://www.daniweb.com/forums/post738435-2.html[/URL] …

Member Avatar for jholland1964
0
695
Member Avatar for animefun2
Member Avatar for vskumar19

I hav created an applet window.. now i want to disable d maximise button.. can u plz say me how can i do dat..??

Member Avatar for PoovenM
0
104
Member Avatar for java.netproject

Hi, Myself 24 yr old CEO of my own organization in Pune - India. We make Projects for BE / ME students in I.T, Comp, Complete Project delivery along with Project reports. So, choose a Project of your choice and relax for our experts to work for you You can …

Member Avatar for verruckt24
-3
149
Member Avatar for anez247

hey peeps..i got a problem in this project and will be grateful if someone can help pls..thx

Member Avatar for Ezzaral
0
103
Member Avatar for krhillery

So I've spent the past 2 hours trying to work all of this out, but I am still getting an error message that seems out of place. import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; public class HiLo extends JApplet { Image cardImages; /** * An image that holds the …

Member Avatar for krhillery
0
167
Member Avatar for Srinivas14

Hi can any one plz send me the java code for sending sms through some gateway plz reply this asap..or else plz assist me how to proceed.. Thanks, Srinivas

Member Avatar for stephen84s
0
324
Member Avatar for krishna168

Hi, I tried to place Ad in one application with IE explorer browser but it is coming error when i tried to place ad with Mozila Firefox.Pls help me why it was not happeneing.

Member Avatar for masijade
0
31
Member Avatar for NewbProgramma

I'm coding for fun and I can't figure out how to compare two string in an if (string1 < string2) type statement. I figured if I could somehow get values for those strings it would be easy to do the if statement. All help is highly appreciated : )

Member Avatar for verruckt24
0
112
Member Avatar for kardus

hallo...this is my first post.. i want to validation my registration.. if there are anyone to regis but the username is already(in database), there are message " sorry, choose the different name please" i have no idea, i have tried but always failed... o..yeah i use ms.accsess for my database..and …

Member Avatar for stephen84s
0
206
Member Avatar for littlebean21289

I have had to miss my last classes due to having to go to my doctor in order to prep me for surgery. My professor has placed the final assignment online and i have no where to begin. I'll take any help and would like to add that while i …

Member Avatar for BestJewSinceJC
0
150
Member Avatar for cproud21

I have the following code that produces an applet of two eyeballs. I have a mouseMotionListener that is set so that when the mouse is moved around the pair of eyes, the eyeballs follow the pointer. I have the eyeballs set up in four locations. To the left, right, north, …

Member Avatar for BestJewSinceJC
0
157
Member Avatar for zigpy_siva

hi I am creating an CSV file in java by putting the Korean values in a properties file like "\uc81c\ubaa9 \uc18c\uc2a4\uc5d0\uc11c \uc5b8\uc5b4" [B]which is properly coming in the CSV file (like "번호 출판물의") when I open it in the notepad and select the font as Arial Unicode MS[/B], but when …

Member Avatar for zigpy_siva
0
617
Member Avatar for christiangirl

This program is all working except when a user chooses the same file as before it needs to show both orders in the file but it is only showing the latest one. [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; /** * Program that allows user to select a …

Member Avatar for christiangirl
0
138
Member Avatar for knightranger1

i had a brain fart & let my sister download this progam called Zwinky well smiley central & mywebsearch toolbar came with it last night i ran spybot & it found over 50 entries for MWS alone so it had to go & i have it almost gone but everytime …

Member Avatar for Virus Expert
0
254
Member Avatar for nikhath
Member Avatar for Ezzaral
0
35
Member Avatar for nikhath

Hi, i am developing a project on " Animation Data Structures Intelligent Teaching System". I am familiar with Core Java. I want to know what are the Concepts that i need to learn and that will help me in my project.

Member Avatar for Ezzaral
0
76
Member Avatar for ucan_aps

hai to all.. help me to solve my problem... im dng one project..in my project i do have one database.. it wil be updated for every 30seconds.. so i have to display the data from database with thier updates.i mean i would like to display data's in the client browser..whenever …

Member Avatar for ucan_aps
0
168
Member Avatar for aodpreacher

Hi i live in the new york area and does anyone know where in new york or have a look up resource on where to find java programming courses? anywhere to teach java during summer or during winter any place to look up information would be helpful..i tried google but …

Member Avatar for stultuske
0
114
Member Avatar for krhillery

[code]public Card getCard(int position) { /** * Gets the card from the specified position in the hand. * Null is returned if the position isn't in the hand. */ if(position>=0 && position < hand.size()) return (Card)hand.removeElementAt(position); else return null; }[/code] error message: return (Card)hand.removeElementAt(position); is highlighted, "inconvertible types"

Member Avatar for stultuske
0
109
Member Avatar for krhillery

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class HiLo extends JApplet { Image cardImages; /** * An image that holds the pictures of all the cards */ public void init() { /** * This method loads the card picture and lays out the applet. */ cardImages = getImage(getCodeBase(), "smallcards.gif"); setBackground(Color.blue); …

Member Avatar for Ezzaral
0
276
Member Avatar for beginner21

alright.. i have a problem on how to sort the output my code is here: [code] public class Num7 { public static void main(String[]args) { char[] ch; ch=new char[20]; int i; for(i=0;i<ch.length;i++) System.out.print(i); } } [/code] the output is simply: [code] 012345678910111213141516171819 [/code] all i want to do is to …

Member Avatar for quuba
0
173
Member Avatar for nhal

Hi guys I was wondering if there was a java class that you can use to analyse an audio file, mp3, and get a unique string returned. If so can someone point me to the documentation. Thanks :)

Member Avatar for quuba
0
59
Member Avatar for Dan Bois

Hello I am new to java and i was woundering if someone could help me with this program. I was woundering how to put more balls into it and how to make the balls flash very fast almost like a strobe light. Please help thx. import java.awt.*; import java.applet.*; import …

Member Avatar for Ezzaral
0
66
Member Avatar for StephNicolaou

I'm not sure if I'm doing this correctly but up to now I get an exception error. Can you see why? : [code] public void countHeap(){ System.out.println("input data:"); for (int i = 0; i < dataSet.length; i++) { System.out.print(" "+dataSet[i]); count++; } noDataElements = count; formHeapTree(); } public void formHeapTree(){ …

Member Avatar for quuba
0
156
Member Avatar for alip15379

Hey everybody Hope you guys have a great weekend. I am trying to implement a Table ADT to show city name, country, and population. I already did most of the work, but for some reason i get a small error in the main method file.the code is below: //TestTable(main) class …

Member Avatar for quuba
0
190
Member Avatar for IMtheBESTatJAVA

Okay so the program I was asked to design requires the simulation of rolling three dice and printing out the outcome of each turnout while adding to a counter until all three dice are different numbers. So a sample output would be: 5 6 2 count: 1 or 3 4 …

Member Avatar for masijade
0
204
Member Avatar for thariqrasheed

Hi, Can u add numbers without using arithmetic operators in java.We can add using bitwise operators.But i m not able to get the ans. Solve: a+b=c; Prove 2+2=4 without using arithmetic opreations. Looking for u r answers

Member Avatar for stultuske
1
154

The End.