36,051 Topics

Member Avatar for
Member Avatar for anirban007

[COLOR="Red"]I need coding for the following program by tomorrow i.e 30th November.Can anyone please help me out....[/COLOR] 3: Stack/Stack Implementation General Instructions: Using a stack as your data structure, implement a program that will reverse a line, perform calculations using prefix notation and check for balance parentheses. Specific Instructions: This …

Member Avatar for jon.kiparsky
-2
106
Member Avatar for vJeel

I have problem with the stopwatch i made. For some reason, when i press "start" it just lags out. Can someone please check the code and tell me whats wrong? THANK YOU SO MUCH! Executor [CODE] package stopwatchpackage; public class StopwatchMain { public static void main(String[]args) { new StopwatchMain(); } …

Member Avatar for mrnutty
0
186
Member Avatar for cms271828

Hi, I'm trying to draw 2 quadrilatrials, that share 2 corners and an egde. I also want to smooth edges, so I use ANTIALIASING turned on, but this has the effect of showing a crack between the polygons. The crack dissapears if I turn off ANTIALISAING, but I really don't …

Member Avatar for Ezzaral
0
128
Member Avatar for miraj0072004

hey....I have a question...this seems such a trivial question but please help me...I'm trying to use a java variable ex:- int x=request.getParameter(ID) and then use it in an sql query,like, select name,date,tel_no from items where ID=x it doesn't work...im very new to sql and jsp...so please help me get around …

Member Avatar for cliver
0
13K
Member Avatar for khaled_jawaher

pls i want to know what i must use to read xml file in remote machine in java. is it possible using saaj,or other.i have jdk 1.6 installed on window 7 os machine. what also suitable softwares for this task. apreciate any ideas

Member Avatar for khaled_jawaher
0
236
Member Avatar for IMtheBESTatJAVA

I've recently taken up an AP Computer Science class online for Maryland State education at my high school, and was wondering if I could receive help on a few of the projects. Most of them are simple like programs I made in Visual Basic for my first programming class with …

Member Avatar for camcamcam
0
313
Member Avatar for blknmld69

I have a program, which is essentially done, but there is something I am not very pleased with. First of it is a program that acts like a very basic shopping cart. The user can add or remove items, clear the list of selections they chose, and check out. This …

Member Avatar for Gerbiler
0
2K
Member Avatar for grady-lad

Hello guys I am working on a program using the composite pattern .The program contains two buttons "business accounts " and "personal accounts". When I click on the personal account button the program loads up the tree with all the accounts and visa versa when the business account button is …

Member Avatar for JamesCherrill
0
99
Member Avatar for sleepybug

hey friends :D! alright i was tryin to work with serialization basics and now i am stuck with this problem of reading an object from a file named 0x.txt. and i know ths program is really a hell lot full of bugs but i have just started sp plz dont …

Member Avatar for JamesCherrill
0
163
Member Avatar for Goyle

Hi, i am in need of some help with an assignment. The Question : [I]Write a program which will think of a word and ask the user to guess the word. The user may guess a letter at a time and your program will print out wherever the letter occurs. …

Member Avatar for Goyle
0
138
Member Avatar for LianaN

Hi! I have two classes: 1) Class A extends JPanel 2) Class B extends JFrame I would like to use some methods from Class A in Class B. How could I implement it? Thanks!

Member Avatar for LianaN
0
117
Member Avatar for suger

Hi guys I have 2 problems here: 1) Below code does not draw a black Polygon on the frame, only shows an empty Frame named "Poppy" 2) Once the frame shows, I can't close it by clicking "x" at the right top corner. Does anyone know why? Thanks heaps code: …

Member Avatar for suger
0
91
Member Avatar for 000033858

Java Help - Need help making a program that checks if a letter appears consecutively in a string? I need help creating a java program that returns true if a letter appears consecutively in a string like for example : the "O" in noodles Also a program that returns the …

Member Avatar for jon.kiparsky
0
148
Member Avatar for pradeeppatil110

I want to download multiple files (file is in zip format ) from server to client machine to specific path with unzip format please give me the code for it......... please tell me....... (Technology : JSP)

Member Avatar for masijade
0
201
Member Avatar for DoubleShot

I have read all sorts of positive reasons for using the PreparedStatement type in Java when working with SQL. Does anyone know of any reason why you'd ever choose the Statement type instead?

Member Avatar for masijade
0
92
Member Avatar for titan5

I have a file say which has 5000 characters. I am reading the first 1000 characters and closing my file. I want to delete these first 1000 characters from the file. How can I do that?

Member Avatar for masijade
0
90
Member Avatar for gunjannigam

I have saved generated an image using a byte[] by using [CODE]Toolkit.getDefaultToolkit().createImage(image);[/CODE] where image is a byte[]. The image generated by this is of java.awt.Image instance. Now I want to save this image into my local hard disk as JPEG (the image was decoded as JPEG). How would I do …

Member Avatar for gunjannigam
0
162
Member Avatar for 123balboa123

HI everyone I have a little problem with an exercise I have been given for homework. We were given sample server, client, compressedmessage, encryptedmessage documents to build upon. Now what is meant to happen is the server listens on port 2000 for incoming client requests, once a client makes a …

Member Avatar for 123balboa123
0
114
Member Avatar for grady-lad

Hey guys I am new to java 3d and i am getting a strange error when i try run my program, I know that the code is completely right. When i run the program i get this strange error: LINEAR, Unknown Sample Rate * out * LINEAR, 8000.0 Hz, 16-bit, …

Member Avatar for Gerbiler
0
123
Member Avatar for blknmld69

[B]I have my program working but i need to replace the JOptionPane.showMessageDialog(null, "The cost is " + totalCost); and just have the totalCost output to the totalCharges textfield. [/B] [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; public class DormAndMealPlanCalculator extends JFrame { private JPanel dormPanel, mealPanel, buttonPanel, totalChargesPanel; private JComboBox …

Member Avatar for Gerbiler
0
176
Member Avatar for TahoeSands

In my journey "back to the basics" to get a more solid foundation for my Java skills, I am curious about the difference between using the existing content pane of a JFrame vs. creating a new content pane in a JFrame. I have two chunks of code... The first uses …

Member Avatar for Gerbiler
0
214
Member Avatar for DallasFan3

Ok, well Iam doing a program where I have to write a program that will read in a list of positive integers (including zero) and display some statistics regarding the integers. Your program must store the all of the integers in an array. The maximum number of integers that you …

Member Avatar for DallasFan3
0
135
Member Avatar for selu1987

I need to know if this code is finished or what else needs to be added to this code because I cant get in touch with the user! Thanks please help [url]http://www.daniweb.com/forums/thread84070.html[/url]

Member Avatar for Gerbiler
0
49
Member Avatar for oggiemc

Hi all, Im building a java application in eclipse and i want to add an excel file for data storage/retrieval..Can someone tell me how i include the file in the class build path? Thanks

0
59
Member Avatar for javaSux

I'm working on a grading program that will require the use of a couple classes. The program contains a list of "program assignments" which there are 5, and 3 test scores. I'm stuck writing the average methods Along with the total exam scores/program scores. Any help will be appreciated! Here's …

Member Avatar for stultuske
0
211
Member Avatar for oggiemc

Hi, Im getting the followin error in one project class in my application: The project was not built since its build path is incomplete. Cannot find the class file for DataControl. Fix the build path then try building this project DataControl is a class in another project in the same …

Member Avatar for apines
0
314
Member Avatar for ceyesuma

Does any one know where there is some Java code already written to handle deleteing directory trees? Maybe with some undo functions?

Member Avatar for ceyesuma
0
126
Member Avatar for Neo63

So I'm writing my own simplified LinkedList class. When I compile my code I receive this error Error: F:\Files\ICS\Card\LinkedList2.java:3: name clash: indexOf(E) in LinkedList2<E> and indexOf(java.lang.Object) in java.util.AbstractList<E> have the same erasure, yet neither overrides the other The code is public int indexOf (E element) { Link<E> o = new …

Member Avatar for apines
0
139
Member Avatar for apanimesh061

[CODE]package stu; class student { int age; String name; public student() { name = "Animesh"; age = 19; } public void display() { System.out.println("Student name is : " + name); System.out.println("Age is :"+age); } }[/CODE] [CODE]import stu.student; class student1 { int marks; String sub; public student1() { sub = "Mathematics"; …

Member Avatar for peter_budo
0
122
Member Avatar for iamchuckb

Hi all, I'm new here and a little flummoxed by this problem. I am working through the process of creating a notepad type program in java to get a little more experience with the language. My save functionality is not working. This is not unexpected; the part that is really …

Member Avatar for iamchuckb
0
4K
Member Avatar for selsium

Hello all, I have a small helloworld program and try to run it on the command prompt. [code] public class Hello { public static void main(String[] args) { System.out.println("Hello, World!"); } } [/code] i have my file in C:\test\Hello.java C:\test>javac Hello creates a class file in c:\test\Hello.class but c:\tets>java Hello …

Member Avatar for selsium
0
117
Member Avatar for rcossy1023

I am trying to make a contains method where it will search for a name using the compareTo method of the Comparable interface. Here is my problem, It will return true if found but will stay in the while loop and not end if it is not found. AND I …

Member Avatar for mrnutty
0
98
Member Avatar for eman 22
Member Avatar for DallasFan3

So I working on a program that in a poin in the program I have to get the median and the average of the numbers in the array. I have to write a program that will read in a list of positive integers (including zero) and display some statistics regarding …

Member Avatar for geojia
0
111
Member Avatar for Superstar288

Hi everyone i was just wondering if anyone here has every created a Neural Network for predicting Sports results. i was interested in doing this however I'm not really sure where to start. if you have done something like this before could you just give me some feedback. also do …

Member Avatar for Superstar288
0
109
Member Avatar for deniseblue

I am not understanding how to fix these problems. I have placed bracket, removed brackets. Could someone please help break this down. most of my error is cannot find symbols, line 80 is unclosed character, 113, 121, 126, 127, 137,is class, interface or enum expected. I am suppose to modify …

Member Avatar for deniseblue
0
172
Member Avatar for hauda

Hello, I was wandering how to save the contents of a JPasswordField into a text file, i thought to use the [CODE]getPassword()[/CODE] method, but a [CODE]null[/CODE] is saved into the file instead. Would appreciate it if I could get some initial ideas. Thanks for your time, Sam

0
63
Member Avatar for muncher10

for a friend who needs help [CODE] public class Card { private static final double True = 0;//sets true public String Card;//sets card public Card(String Card2) { Card = Card2;//sets card2 } public double getDiscription() { if (Card.equals("AS"))//if the "AS" is put in it prints below { System.out.println("Ace of Spades"); …

Member Avatar for joehms22
-2
84
Member Avatar for gheorghe gardu

Hello, I would like to ask if you can give me some help. I have to implement a slicing tree that represent a slicing floorplan(slicing floorplan divides a rectangle with horizontal and vertical cuts, and can be represented by a binary tree, called slicing tree. Its internal nodes are the …

0
61
Member Avatar for d8m9

Hi, Id like to generate a nine-digit combinations of 52 characters of alphabet (a..z and A..Z). My thought is: [LIST=1] [*]Generate nine-digit combinations of numbers from 0 to 51 [*]Use these combinations as indexes of [CODE]char[] alp={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};[/CODE] [/LIST] Iam sure its very easy.. Im learning Java for one month (once …

Member Avatar for d8m9
0
240
Member Avatar for Dartz654

I downloaded the JDK and have started making simple applications (ex: Hello World). Is it possible to put this onto a website, and if so how do I go about doing that?

Member Avatar for Dhruv Gairola
0
192
Member Avatar for oggiemc

Im trying to run an RMI app from eclipse but im getting an error saying it has already been started by another application. I ran an application yesterday from the command line but i closed all windows down when finished..is there a special command to shut down the registry on …

Member Avatar for joehms22
0
66
Member Avatar for plasticfood

[CODE]System.out.println("what is your name? "); String name = kb.nextLine(); for(int i = 0; i < member2.size(); i++){ if(member2.get(i).equals(name)){ System.out.println(name + " is a member. "); break; } else{ System.out.println(name +" is not a member. "); break; } [/CODE] i did a system.out.println on the member2 arraylist (String arraylist) and it …

Member Avatar for plasticfood
0
117
Member Avatar for yamii

hey !!!!!!! m not able to view images in my tomcat server while doing coding in net beans !!!!!!!! whats the proper path to be written to view images I am using it this way <img src="D:/project/web/bukcovers2.jpg">

Member Avatar for joehms22
0
42
Member Avatar for shelexelex

Hi, I am having a challenge with this.. I just read a book on Java Applet and there is something that is confusing to me. i need help on that.. There are two programs here... import java.awt.Graphics; import java.swing.JApplet; public class TryMe extends JApplet { public void paint (Graphics g) …

Member Avatar for Dhruv Gairola
0
101
Member Avatar for krip_101

[code]import java.util.*; import java.util.Random; import java.lang.*; public class testing1 { public static void main(String[] args) { String pass = new String("ENTER THE HAMLET HAM TO BE OR NOT TO BE THAT IS THE QUESTION WHETHER TIS NOBLER IN THE MIND TO SUFFER THE SLINGS AND ARROWS OF OUTRAGEOUS FORTUNE OR …

Member Avatar for krip_101
-2
198
Member Avatar for jems5

The following code piece must display correct message in GUI according conditional statement. When tested using void main, I get the result as expected. However, when I test using applet the result is OK for the first if(....) statement but freezes on the second. - if condition OK then compute …

Member Avatar for quuba
0
214
Member Avatar for olsane

how do I create a 2d array, where the user choos the size of the array? or have to make this: 1 2 3 4 5 1 O O O O O 2 O O O O O 3 O O O O O 4 O O O O O …

Member Avatar for Dhruv Gairola
0
110
Member Avatar for Kunal Lakhani

I have a login page, which directs to Verification.jsp Login.jsp [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <body> <form action="Verification.jsp" method="POST"> <fieldset> <a rel="nofollow">FreeLancer? Sign up!</a> <br/> <input type="radio" name="r1" value="Admin" checked="checked"/>Admin<br/> <input type="radio" name="r1" value="Editors"/>Editor<br/> <input type="radio" name="r1" value="Staff"/>Journalist<br> <input type="radio" name="r1" value="Staff"/>Reporter<br/> <input type="radio" name="r1" value="Freelancers"/>Freelancer<br/> …

0
61
Member Avatar for newuser17

I want to store data that user inputs [form based in form of xml] into a postgres database, so I would like to know is it wise to develop a web service or how do I transfer data. I am completely clueless how to head on with the problem

0
135

The End.