35,618 Topics
![]() | |
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 … | |
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 … | |
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???? | |
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) { … | |
In a function can we pass void string(null) if the method is overloaded??? | |
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? | |
[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] :) | |
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 … | |
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){ … | |
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 … | |
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 ............ | |
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 … | |
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 … | |
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 … | |
How can I load an xml file and show it as a treeview control in my HTML page | |
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 … | |
[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(":"); … | |
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 | |
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 | |
can any one tell me, how to run applet programs at netbean5.0 | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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]/* … | |
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 | |
Java specification tells that we cannot have static methods in interface.Can anyone explain me Why? :-O |
The End.