32,204 Topics

Member Avatar for
Member Avatar for program_writer

can anyone help me with my problem? this is the case, i have two text file from notepad the first one saved as text1.txt and the other one is text2.txt... the problem is i want to transfer the content of my first file which text1.txt to text2.txt but if i …

Member Avatar for darkagn
0
80
Member Avatar for W@n

Hi, recently i am doing an assignment that require me to do a depth first search on a given graph. However, i cannot get the result i needed. Is there any wrong with my code? Can anyone help? thank in advance=D My graph [code] 0 4 / \ / 1 …

-1
65
Member Avatar for ndeniche

Hello... is there any way of making java listen or capture an F-key input? i mean, like, if the user presses F5, a new panel will come up and that sorts of things... thnx

Member Avatar for ndeniche
0
104
Member Avatar for dwdish

Hi, I successfully send email with the following code in English. However, if the message and the subject title are in other characters, everything becomes question marks and the subject title says something like ...ANSI...3F=3F=3F... How do I set the character encoding to utf-8, for example? Thanks. I have this …

0
57
Member Avatar for jsully1

I have a bit of code my instructor sent me as an example to look at and it is giving me approx 100 errors when I compile it all of the form 'illegal character: \172' or 'illegal character: \8224'. This is a new one on me, was wondering if anyone …

Member Avatar for jsully1
0
116
Member Avatar for Modo

hi guys how r u doing .. this is my first post .. i have this code .. the problem it runs .. the following happens: when it says: geef een woord (= give a word ) i write the word .. then it says geef een letter ( = …

Member Avatar for Modo
0
113
Member Avatar for nouryn

Hi, i need to know how to create a program draw a graph once i insert a linear programming equations can it be done by java???how??? thanks

Member Avatar for Ezzaral
0
162
Member Avatar for Achupa

[B]Hi, I'm trying to use a map in my application. the class MovieRating which contains the map is as below:[/B] [code] import java.util.*; public class MovieRating { private Map ageMap = new HashMap(); private String movieRating; public MovieRating() { ageMap.put("PG", 18); //parental Guidance ageMap.put("G", 4); //general viewing ageMap.put("A", 27); //Adult …

Member Avatar for stultuske
0
213
Member Avatar for prabbhhu

I am using Java along with hibernate, I stored datas in UTF-8 format for my project, i need to retrieve datas in Arabic, give me some ideas about this conept... i m in hurry... reply me as ap..

Member Avatar for stultuske
0
163
Member Avatar for sfrider0

I'm creating a SMTP client. I'm entering the data(to, from, subject, body) in a HTML form. How do I pass that data into the actual Java SMTP client so I can send it? I know how to hardcode the data into the client and send it that way but having …

Member Avatar for ~s.o.s~
0
236
Member Avatar for Matthew85

I am writting a program that takes in a number that ranges from 0-255 from an input file and a chip number, then I have to do a CDMA encoding on it. I am having a couple problems with the seeded random number generator. I need to have a 4 …

Member Avatar for brianlevine
0
132
Member Avatar for joshmo

Hey all. I have another problem with classes. I have 3 classes A, B and C. B extends C and class A is where objects from B and C will be used. Below is the syntax of what am trying to say [code=cpp] class A{ private int o,p; protected B …

Member Avatar for BestJewSinceJC
0
101
Member Avatar for VernonDozier

I have a program for which I am designing a help menu. The program allows you to add squares, ovals, and other shapes, and move them, rotate them, etc. I'm setting up some HTML pages that explain how to do different tasks. So when the user pulls down the help …

Member Avatar for VernonDozier
0
120
Member Avatar for vponnoju

Hi All, I have wrote a java program, that displays all the drives available in the system. I used File.listRoots() However, this method doesn't perform any security operations(such as read and write access) and displays all the drives in the system. I want the program to display the only drives …

Member Avatar for ~s.o.s~
0
236
Member Avatar for FSinister

Hey people. I need someone to tell me what they think of this. I've been trying to write this small java program to search for mobile phone numbers in a document. The document is a .csv file, but thats not too relevant. The numbers are Irish mobile numbers in the …

Member Avatar for FSinister
0
125
Member Avatar for letlet_pogs

helo guyz...do you know any sites to recommend where can i find java exercises (exercises w/ answers)..,,,it is our sembreak,,,and i want to do other stuffs bout programming to develop my mind more in programming....

Member Avatar for orko
0
179
Member Avatar for hariprasad787

Hi, I have developed an application using netbeans(Swing) on windows platform. It is working fine. But when I try to run the same application on macintosh platform. But the application window doesn't appear properly. Menus and other parts are not visible. Only when the mouse cursor is moved over the …

Member Avatar for orko
0
108
Member Avatar for Achupa

Thank you for your previous help. However I have another question: I have three classes MovieRating class, Adult class, and Child class. The Child class and Adult class both have a method canWatchmovie(MovieRating mrating) in the Adult class the method always return true while in the Child class we must …

Member Avatar for stultuske
0
98
Member Avatar for dipsn
Member Avatar for stultuske
0
57
Member Avatar for Achupa

Hi, I have a method that checks whether Objects in a Collection are Human and whether they are of certain age. I have three different classes for Human, Adult and Child. the code for the method is in a different class called Cinema class. the code is as: //THIS METHOD …

Member Avatar for stultuske
0
105
Member Avatar for neighbordave

I've been working on this code for two days now and I still can't figure out what is going wrong. I'm very new to programming and we just started learning about creating objects and constructors so I appreciate any help I can get. I have to turn in a set …

Member Avatar for stultuske
0
136
Member Avatar for thillai

[B] Hi [/B] can u explain j2ee components....once i built , how can i join with existing apps... component having no gui,then how component can be used...

Member Avatar for stultuske
0
85
Member Avatar for janustt

I need to display the values entered by the user in the Names array and the Salary array. However, I only need to display the Employee name and Salary if it is over the average. The problem I am having is that it runs the program fine but doesn't compare …

Member Avatar for dickersonka
0
91
Member Avatar for animefun2

Ive been looking for the right compiler that i can use with java applet to create an online game so does any one know the best compiler for java applet? and where i can find it in a free download from a website? or a list of compilers that i …

Member Avatar for jbennet
0
205
Member Avatar for ndumbo

HI my package reads file from txt format only. it does not read .pdf or .doc file. is there any single java library that opens any kind of file format as stream and then reads or manipulates its contents.

Member Avatar for orko
0
605
Member Avatar for IMtheBESTatJAVA

If I have an output of any double or integer that needs to be rounded to a certain number of decimal places, how would I code that? As always there are many ways to do this but, again, as always, I'll be looking for the simplest way to do such …

Member Avatar for orko
0
138
Member Avatar for VernonDozier

OK, this is a follow-up to this thread, which I have marked solved. [url]http://www.daniweb.com/forums/thread152797.html[/url] I changed things from GIF to PNG and that seems to solve the saving issue, but there is a new issue. I'm trying to create a semi-transparent circle as an image, which can be saved. The …

Member Avatar for VernonDozier
0
171
Member Avatar for The_Kermit

Hey guys! I'm trying to build a program that will evaluate boolean expressions. For example: a>(b>(a^b)) or maybe ¬a>(a^b). It doesn't really matter if you know boolean logic or not since i'm ok doing the calculations. The only part i'm struggling with is parsing the formula. I need to read …

Member Avatar for brianlevine
0
119
Member Avatar for AdventureX

Hey people, I'm at uni and we have lab sessions for Java. In my lab session I have been given an exercise to complete however I need help because I don't know where to start!! Can anyone help me? If you can I will post back with the task to …

Member Avatar for dickersonka
0
75
Member Avatar for shanthiIrene

I have a java program to open a webpage in IE. And so I have this code - Process p = Runtime.getRuntime().exe(“C:\\Prgram Files\\Internet Explorer\\iexplore.exe” “[url]http://google.com”);[/url] p.waitFor(); This works fine in Vista when UAC is disabled. The process keeps running until the webpage is closed. With UAC enabled - it opens …

Member Avatar for masijade
0
96

The End.