35,618 Topics

Member Avatar for
Member Avatar for degamer106

This is a relatively simple program but for some reason, I can't compile it. I'm pretty sure the code is correct and working. My compiler keeps saying that it cannot find a constructor matching a HourlyWorker constructor when I instantiate a HourlyWorker object. I've checked and rechecked the code (in …

Member Avatar for masijade
0
185
Member Avatar for Mongooseman

The Java book I'm using ([i]Java Programming[/i] by Joyce Farrel, Thompson Course Technology), when explaining how to add components to an applet, uses the following code: [code=Java]import javax.swing.*; import java.awt.*; public class JHello extends JApplet { Container con = getContentPane(); JLabel greeting = new JLabel("Hello. Who are you?"); public void …

Member Avatar for masijade
0
233
Member Avatar for boyz

we know that a class will compile if no catch along with try but have finally but what happens if there is an arithmetic exception in the try block????

Member Avatar for darkagn
0
88
Member Avatar for meme123

Hi, I'm getting the error msg, "non-static can't be referenced from a static context", on my Readfile... what is the simplest way of fixing it? Thanks. import java.util.Date; import java.util.Calendar; import java.text.SimpleDateFormat; import javax.mail.*; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; public class Bulkloademail { public static void main(String[] args) { …

Member Avatar for satya5321
0
248
Member Avatar for boyz

In a function can we pass void string(null) if the method is overloaded???

Member Avatar for satya5321
0
67
Member Avatar for Labby77

Hi, is there any website have a lots of sample code and eg. to download. I'm quite new to JAVA cos no sticky threads for this. & also how can I do a simple buttongroup with captions?

Member Avatar for satya5321
0
90
Member Avatar for brightstar

[B][U]Good day to all programmers there!!!!,[/U][/B] [COLOR="Red"][U]please help me to my assignment, I need it tommorow! I want a program that [/U][/COLOR] [COLOR="Green"][B]1.input the name of student, 2.input his/her grades 3. display its grade rate 4. display if it is perfect, pased or failed[/B][/COLOR] :)

Member Avatar for satya5321
0
86
Member Avatar for curt22

Hello everyone, I was wondering what a good book to start learning Java would be. I know a little about programming like variables, function, etc. , but not object-oriented stuff. I was thinking of buying Learning Java, 3rd Edition, but I'm not sure. What do you think is the best …

Member Avatar for satya5321
0
90
Member Avatar for RoOose

Hi.... I'm a new member . I've a code , but there is a part I didn't undestand it. Can u help me to undestand it? I am writing the part I didn't understand it by red color: [code] import javax.swing.JOptionPane; public class SortingArray { public static void main(String[] argus){ …

Member Avatar for RoOose
0
133
Member Avatar for Mr.UNOwen

Hello I need help creating a program in Java. Basically I need to use ClassLoader to load classes at runtime that implements a particular interface (the name and location will be known). From what I see on the api, there's a loadclass method that gives you a Class object, but …

Member Avatar for Ezzaral
0
80
Member Avatar for majestic0110

Just out of curiosity, which IDE is used by people (primaily). I myself use Blue J. This IDE was introduced to myself on my bachelors in Software design. Just wondered what you all use ............

Member Avatar for majestic0110
0
149
Member Avatar for pizzazzman2000

hi.............. I'm very new to java, viz. servlets,jsp,jdbc, etc My trainer has assigned me a project: Online Recruitment System My trainer is putting us under tremendous pressure to complete the project in a very short span of time ( 4 days, to be precise) Is there anyone who has done …

Member Avatar for jwenting
0
138
Member Avatar for renars1985

Hi, I created JAVA prorgamm. It works like this: I can enter some book parameters (author, name, year) and programm will write data in file and also will display data in console. Code is below in bold. Compile code below and you will understand how programm works. However I have …

0
60
Member Avatar for dakkar

Hi, I've an HTML form (I generated it from a XML schema .xsd file) I'd like to know a good way to save the form input data (POST/GET don't matter) to an XML file (or fragment) that can be validated with the XML schema that I used to generate the …

Member Avatar for mavines
0
115
Member Avatar for kobi

How can I load an xml file and show it as a treeview control in my HTML page

Member Avatar for mavines
0
107
Member Avatar for nedimavci

Program 1 A Salesperson at a company receives a set salary each month plus commission based on the number of products sold during the month. Create a Payroll program that can do the following 1. Enter the Salesperson’s name, employee number and basic monthly salary. 2. Enter the number of …

Member Avatar for jwenting
-2
135
Member Avatar for mizcomscie

[code=java] import java.io.*; public class ACMICPCContestScoring { public static void main(String[] args) throws IOException { BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in)); BufferedReader br = new BufferedReader(new FileReader (" ")); String s = br.readLine(); String[] array1 = s.split(" "); int numberOfTeams = Integer.parseInt(array1[0]); int numberOfProblems = Integer.parseInt(array1[1]); String[] timeStarted = array1[2].split(":"); …

Member Avatar for majestic0110
0
131
Member Avatar for Nige Ridd

Sorry if this is the wrong group to post in - I couldn't think of another suitable one. I'm applying for a job which talks about 'experience using Java/J2EE', I've used Java but not sure if by putting J2EE that they are expecting anything particular? Thanks Nige

Member Avatar for jwenting
0
135
Member Avatar for muthumari

Hi, Tillnow am using notepad.I want to use Jcreator editor.I haven't any idea about how to use jsp in Jcreator.Now Am using ApacheTmacat4.0 is my Webserver. Anyone help me to this Query. Thanx in advance

Member Avatar for peter_budo
0
465
Member Avatar for push
Member Avatar for peter_budo
0
62
Member Avatar for Tom Tolleson

Does any one have a recommendation for a basic Java book for someone who is new to anything other than web development (Javascript and XML). Perhaps something that might include servlet or J2EE? Thanks a lot! THT

Member Avatar for ~s.o.s~
0
201
Member Avatar for majestic0110

HI all, been messing around with this game for a while now. last thing I need to do is get the score(bals dodged) to display in the main menu.Now I have had some helpful advice regarding this issue but I have notbeen able to implement it myself. Nevertheless I am …

Member Avatar for majestic0110
0
112
Member Avatar for sparksterz

Ok, I had a lab assigned to me which detailed many different situations in which I had to use recursion in order to solve them. Most of them were pretty simple. However I've been stuck on this Palindrome problem for hours. I know most people's Palindrome issues are with proving …

Member Avatar for jwenting
0
146
Member Avatar for abhi287

Hi i've class project with textfilds id,name.no... when i click ok here another window (another class) opens with same fields but not editable. and when i submit here data goes to db. then how to get values of textfields in project class into current class which i've to send to …

Member Avatar for Ezzaral
0
293
Member Avatar for FrankHere

Hi all, I am a final year student of a Computing Degree and have an idea of doing a Distributed File System for the Final Year Project. I am mainly consider only Distribution of files across a LAN and Replication of data. So any idea of how to split the …

Member Avatar for jwenting
0
94
Member Avatar for leroi green

sup ya'll, i've been doing this Triangle class homework for a couple of days and have ended up having to change how i am attacking it like 2wice but anyway. i've hit the last wall i think i can hit. this code is all wrong & i don't even know …

Member Avatar for javaAddict
0
274
Member Avatar for virividivici

Hello everyone, I need to change the value of a jsp variable in javascript. I have got this code in my .jsp page: <c:set var="searchType" value="jobsearch" /> the value of the "searchType" should change depending on which link the user click on. I though if I put this variable in …

Member Avatar for masijade
0
68
Member Avatar for majestic0110

hi all. I was wondering if anybody out there knew how to implement a high score system for this game(saucer). SaucerMenu is a gui class where i want the high scores to appear (up to 5 highest). saucer is the class where the game resides. many thanks in advance. [CODE]/* …

Member Avatar for majestic0110
0
142
Member Avatar for hidash_in

hi everyone, i need ur help, how to count the no of pages in a pdf file using java, is it possible to do this. if anybody knows pls send the code. advance thanks hidash

Member Avatar for hidash_in
0
182
Member Avatar for cbalu

Java specification tells that we cannot have static methods in interface.Can anyone explain me Why? :-O

Member Avatar for darkagn
0
105

The End.