31,001 Topics

Member Avatar for
Member Avatar for geasssos

I need to do a program about: ask the user keep typing word until the word "stop" has been typed. my teacher said we need to add a class called Input. and he give the code to me. I have no idea how to use this code..any one can help? …

Member Avatar for geasssos
0
100
Member Avatar for Dean_Grobler

Hi there, This is just going to be a quick question. Also just note that I am i some "remote location" so I cant even show you my code. But what I want to know is this: Say you have a package called "myPackage" and inside that you have 2 …

Member Avatar for JamesCherrill
0
139
Member Avatar for laupkram

Hello, I would ask if there is a possible method that would return a String in JAVA that I can retrieve the SQL code of any table on my embedded JAVA DB in my application. It is like the function of the phpmyadmin where in you can import a certain …

Member Avatar for masijade
0
88
Member Avatar for spades0001

I'm supposed to create methods, but I don't know how to :(. All inputs and outputs should be done in the main method and calls to the methods should be done for computation. Can someone please show me how? Thanks. I have to do it on this program: (Actually there's …

Member Avatar for laupkram
0
110
Member Avatar for DallasFan3

Ok, I have been trying to write a program that will read in a list of positive integers (including zero) and display some statistics regarding the integers. This is what I have to do, [ICODE]After you have placed all of the integers into an array, your program should perform the …

Member Avatar for laupkram
0
177
Member Avatar for YairHa

Hi, I would like to FTP a file that only part of the filename is known. The name is something like “ClimateData2010042207XXXX.xls” performing the following does not work: [CODE] FTPClient client = new FTPClient(); FileOutputStream fos = null; client.connect("ftp.domain.com"); client.login("admin", "secret"); String filename = “ClimateData2010042207*.xls”; fos = new FileOutputStream(filename); client.retrieveFile("/" …

Member Avatar for zenfaraad
0
557
Member Avatar for whatsgoin'on

could anyone describe to me how to implement a stack using two queues. just cant get my head round it.thanks to anyone who helps.

Member Avatar for krssanthosh
0
170
Member Avatar for soccer13

Is there any way to use a single switch statement more than once? In the program I'm writing currently, rainfall figures are read from a file, and I have two methods that are determining which month has the highest/lowest rainfall. I keep a count using these methods and return the …

Member Avatar for jon.kiparsky
0
262
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
104
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
182
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
126
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
227
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
295
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
96
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
156
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
133
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
113
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
85
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
140
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
88
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
85
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
150
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
110
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
121
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
173
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
209
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
127
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
47
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
58

The End.