32,199 Topics

Member Avatar for
Member Avatar for jackmaverick1

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 …

Member Avatar for masijade
0
114
Member Avatar for zisis86

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 …

Member Avatar for senthilamp4
0
83
Member Avatar for chad33

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 …

Member Avatar for Slyvr
0
314
Member Avatar for rjdelight

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 …

Member Avatar for Slyvr
0
2K
Member Avatar for plasticfood

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 …

0
74
Member Avatar for Wrai

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 …

Member Avatar for Wrai
0
1K
Member Avatar for MeandJava

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 …

Member Avatar for MeandJava
0
147
Member Avatar for debeloglava

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 …

Member Avatar for JamesCherrill
0
200
Member Avatar for arshi9464

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 …

Member Avatar for arshi9464
0
93
Member Avatar for yosi501r

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 …

Member Avatar for yosi501r
0
443
Member Avatar for Javam

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 …

Member Avatar for Javam
0
165
Member Avatar for stupid guy

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 …

Member Avatar for JamesCherrill
0
162
Member Avatar for Thigina

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 …

Member Avatar for Thigina
0
139
Member Avatar for neemo6

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 …

Member Avatar for JamesCherrill
0
106
Member Avatar for malengavictor

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.

Member Avatar for jwenting
0
61
Member Avatar for hkarthik

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 …

Member Avatar for MingMing
0
547
Member Avatar for newack

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, …

0
69
Member Avatar for spencer.kindt

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 …

Member Avatar for VernonDozier
0
132
Member Avatar for plasticfood

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) …

0
64
Member Avatar for AaronLLF

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 …

0
112
Member Avatar for tnccjavaMatt

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 …

Member Avatar for stultuske
-1
4K
Member Avatar for arjunpk

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 …

0
61
Member Avatar for ggyyree

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 …

0
51
Member Avatar for gingerfish

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; …

Member Avatar for Ezzaral
0
186
Member Avatar for Momerath

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 …

Member Avatar for Momerath
0
246
Member Avatar for plasticfood

this assignment has stomped me. i thought it about long and hard and can't imagine how would i edit the quicksort to sort an array-based queue object. i'm required to use an array-based queue class which has only 3 methods: enqueue(), dequeue(), and peek(). they're pretty self explanatory. i cannot …

0
71
Member Avatar for thebigbroski

Hi guys, so I had an idea for an app that would basically log onto a website with a giver username and password, and then it would pull specific data from that website. Any ideas on how I could do this? What should I read about? I've never coded anything …

0
54
Member Avatar for gedas

Hey, i have written immanence java program and now i have been asked to create sequence diagram for it. i am really unfamiliar with uml therefore i was wondering are there any good reverse engineering programs that would create sequence diagrams for me? p.s project has been written using netbeans …

Member Avatar for gedas
0
137
Member Avatar for Nooshin Z

Hi, It's about a year that I have been coding on Java but I still have basic problems working with threads. My main concern is that I can't understand the logic they obey in their behaviour. I know that they are processes which run independently but I don't know how …

Member Avatar for Nooshin Z
0
88
Member Avatar for eileenc87

Dear all, Can anyone tell me how can I call Java function to VB.net window application? Regards

Member Avatar for Sultan ALfarsi
0
95

The End.