32,204 Topics
| |
Alright, I admit that I'm struggling a bit with Java but for the project that I'm trying to do I need to create a bunch of bank accounts and then calculate the interest and return the names of the account holders and their balance and interest, as well as the … | |
I need to implement gregorian calendar in java Please give me ideas how to start and what to use? | |
[CODE]if(count == 4){ qFinal.enqueue(q.peek()); if(count3 == 0){ System.out.println(qFinal); break; } else{ sort(qFinal); } } [/CODE] this code is inside a while loop, and with the break statement, it should break out of the loop right? instead i think the program also executes the sort(qFinal) method b/c after it prints qFinal … | |
Basically I need to setup a conditional loop to have the game run up to 10 times and then have it display the results for both the computer and user. I have my display function in the works but how could i setup the loop or counter to run the … | |
Dear All, How can I call a javascript to my VB.Net Window Application. Apprecited for immediate attention.. | |
Hi! My problem is that i have an object that needs to be in an array however the array must not be the same size each time I create an array. I know that you would use the [ICODE]classType[] objectName={new classType(),new classType(),new classType(),etc};[/ICODE] That would only work if I had … | |
hi! i am totally new in perl and i have a problem..i have a search maschine and after every query i call a perl script to do the jod and see the results. i want every time i run the perlscrit to be able to see a progress bar in … | |
My homework assignment is to do the following steps below. I am able to write steps 1,2,3, and 5. I am stuck on how to go about writing code for step 4. Can I include this step into one of my for loops or do I need to write another … | |
I have a simple text file that I am reading the contents of in a GUI. It's a simple program that enables a user to browse the file and add to it if needed. I have this part running fine, but I'm having some difficulty reading just the first word … | |
i am getting an error in this. basically it sorts a queue in abc order. [CODE]public class Queue2{ public static void main(String [] args){ LinkedQueue q = new LinkedQueue(); q.enqueue("d"); q.enqueue("v"); q.enqueue("b"); q.enqueue("a"); q.enqueue("d"); System.out.println(q); System.out.println("----------------"); sort(q); } public static void sort(LinkedQueue q){ LinkedQueue qFinal = new LinkedQueue(); int count … | |
I'm having issues with basically moving the snowman itself. I know I have to repaint image in a different position, but I tried and failed. The snowman always end up having a line of color and shape following it as an aftereffect. Can anyone help me out on how to … | |
Hello everybody, I am working on a school project now and I want to have a blinking LED. The piece of hardware we use is not familiar because it is designed by school. I have the methods to put on the led and to put off, but can't get it … | |
I have never programmed a client / server before but I would like to create a game where objects can be passed back and forth between two players who reside on separate machines. An example object would be a game piece and the reason it would be passed is because … | |
I was reading a bit about the JDBC, i've made a lot of programs related to JDBC, but i've never been able to understand the concept of Class.forName(). Please explain it fully, i know the basics, as what are the strings passed, what is done and all. I wanna know … | |
Hello everybody, I try to find out how to download any file from a URL that doesn't specify. For example: [url]http://translate.google.com/translate_tts?q=Daniweb[/url] ^^This URL directs to an .mp3 file, which is the spoken text by Google Translate. I have this code already, but it helps only when I use URL with … | |
| Hey, I am having a problem figuring this out. I didn't use file I/O before this so be gentle at me :P. Here is my problem: I am writing to a file, an object Book. The constructor looks as follows: [CODE]public Book(float bookId, String bkName, String bkAuthor, int year, String … |
hi all! i have a saimple applet which tries to insert a text from textfield init oa table named samp.here is my code [CODE] import java.sql.Connection; import java.sql.ResultSet; import java.sql.PreparedStatement; import java.sql.DriverManager; import java.awt.*; import java.applet.*; import java.sql.*; import java.io.*; import java.awt.event.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class Appletsamp extends … | |
Hi, im a student doing a project on attendance system.... i have problem where the text entered (username)from formA jTextField1 need to pass to FormB in order to the combo box in FormB shows(subject,course,time) that correspond to the username was entered in Forma....i have try it....but got error... Here is … | |
Ok im lost in trying to create a button array to test them out with an if statement in the actionlistner method. I need to create 2 buttons one name "Go" and another named "Clear" for an application. In the actionlistener i then have to use an if statement to … | |
Hi every one. I'm creating a website using jsp. One of the functionality required is to process online payment which will be made by credit cards (e.g visa card numbers). So how shall I go about? Thanks in advance. | |
Hi everybody, I just want to develop a web application for sending sms using java/jsp. Normally i have seen people using either gsm modems or bluetooth or connecting mobile to pc and then send sms. I am planning to develop a web application in such a way that it sends … | |
Hello, This topic is not relevant.I am sorry for that.But I'll appreciate your help. I have to do clustering and profile generation on the data from e-commerce site.( contains 8000 entries).It's a binary file. I did clustering using tool cluster.exe and could find result that if number of clusters increased, … | |
I'm supposed to make a banking system that allows me to make transactions for individuals bank accounts. I'm also supposed to primarily use arrays and for loops and those kind of basic things... It's an intro to programming class. I'm having trouble getting my account class to work. I'm trying … | |
this is a linked list based queue private class Node { String value; Node next; Node(String val, Node n) { value = val; next = n; } } public String dequeue() { if (empty()) throw new EmptyQueueException(); else { String value = front.value; front = front.next; if (front == null) … | |
OK, so I'm making a video game and I have a simple inventory code. This is the inventory class: [code] public class Inventory { static int slot[] = new int[17]; static boolean[] taken = new boolean[17]; static int item[] = new int[17]; static int count[] = new int[17]; public static … | |
I have two issues that I need to solve on this program that are giving me some troubles. I have scanned google and my text book and so far coming up empty. Problem #1 - My program works for palindrome words and 2 word palindromes like "race car". But I … | |
hi... i want to create a simple mobile application which can give a slideshow from a powerpoint ppt and has basic text editing functions.... can someone please guide me how to go about with it.... is there any api which i can use..... is it simple to do.... it's really … | |
Hi there, I have got a problem confused me. I use IntelliJ IDEA to write a small GUI program with images and icons. If I run it using the IDE, it perfectly runs. However, when I try to start the program from command line, it runs without showing the images … | |
i have this code, i need to have [B]for()[/B] inside this boolean method, but it shows an error that return method is missing. how can i solve it? [CODE] public static boolean findPrevious(int dataIdx, int featIdx, String data, String[][] array){ for(int i=0; i<dataIdx; i++) { if(array[i][featIdx] == data) return false; … | |
Anyone else having issues with the javascript on Daniweb crashing Firefox 4? It doesn't happen all the time so I'm guessing it's some advertisement that is doing it. Just FYI I have no plug-ins, add-ons, whatever. Just the browser. It rarely happens in the programming forums, mostly in the Community … |
The End.