32,199 Topics
| |
I am trying to call an external class with the following line class "classname" implements "another classname" { ..I however keep getting an "Interface expected here" error at compilation. What am doing wrong, please? | |
I am new to Java and can not figure out why I am getting this error for swithc case. | |
I try to set a variable in another class. It does not. It goes to that class and the variable is always 0and the program stops. I know its something basic that I should know but I need it to set the variable and continue in the calling class. Any … | |
Does anyone have time to look over a 3 class program? I get a NULL POINTER ERROR. What is the best way to debug a variable that produces this error? Thanks | |
Wanted to verify that this actually does check for all wins- if so I need to a statement that a tie does still exist and where to add it...Opinions and suggestions please.. method displayHandName() writes out the hand found. [CODE] public static void determineWinner(int[] finalHands, int[][] hands) throws IOException { … | |
Hello everyone I am a new to java and I am trying to get help with my inventory program. Here is the assignment ..Modify the Inventory Program by adding a button to the GUI that allows the user to move to the first item, the previous item, the next item, … | |
I have all of my program working except the following buttons (add, modify, delete, save, search) which I have the buttons, but turned off in my program so it will still compile/run until I get the button functionality fixed. To be honest, I have no clue on what code needs … | |
hi guys, I've simple question is what happen as general when setup is running i mean what and why the program setup store some settings in registry or hard drive instead of running without setup, i see some applications could run without setup just click and run. i hope someone … | |
I am stuck again, I was able to complete last week's assignment without having to post, just so you guys don't think I'm a lost cause! :) I need to allow the user to input loan amount, term, and interest rate before calculating the monthly payment and showing the table. … | |
This compiles, runs fine, and generally works, except for one thing. The contains() method doesn't work properly. For some reason table.contains(key) isn't returning the right value, which is thereby messing up the insert() method. [code=java] public class HashtableDictionary implements StringDictionaryAlgorithm { static final boolean debug = false; Hashtable table = … | |
Hello, I am about to start a project for my company where I am going to make a module for the production planning of our factory. Currently we are using excel to do this job which creates a lot of problems. Please see the attached picture of the excel file. … | |
Can any one give me any troubleshoot tips to get my applet to at least show up? It seems like I have most of the things right I'm sure the error is something small. | |
| |
I am working on a java assignment for my cs 111 class and I keep getting an missing return statement error, and have tried to determine the error but cannot locate it. I am sure that I have the right set of curly braces. My code is shown below. If … | |
Hi I use Windows XP SP2 and both IE6 and Firefox will not open javascript links. If I click on the link nothing happens. On one site its javascript.popwin(...) and I click on it but again nothing happens. I've tried disabling pop-up blockers, installing latest version of MS scripting, updating … | |
Hello all, is there a way to cancel or abort the execution of current actionPerformed? My problem is that, when the control is passed to the listener method, i perform checking if certain value is null, if so, display Error Msg using JOP. when user click OK, then the actionPerformed … | |
There is no operator overloading in JAVA, but operator + is used as arithmetic addition and concatination operator. why ? please clarify this | |
| Please tell me how to transfer values from one method to another wherein the second method is trying to access the value from the first method and the second method takes in parameter from some other method. |
I am trying to teach myself java and I have a book but it doesnt have how to parse an int into a string. So are there any ways of either doing this or getting round it so I can display my answer? I put in bold the place where … | |
Hello people, How can i display the JLabel text using external file.. When user click a button, a file is read and retrieve and will be displayed at the label.. what I did was: 1) Declare all the necessary file IO 2) use the useDelimiter() method to read the file … | |
im trying to convert the int input into a string so that i can find the length of it and use the substring method. how may i go about this? [CODE]import java.util.Scanner; public class OddEvenZero { public static void main(String[] args) { int input = 0; int len = 0; … | |
Hello All, I would like to create a Student class as follows: class Student { String name; int age; int studentNum; String instructor; } My question is how would I read information from a text file into an array of class Students? The file is as follows: Sue Jones, 19, … | |
I'm not sure if my title adequately explains what I want to do, so I'll provide a scenario. I have two classes in a folder, one named UserInterface.class and another named HelloWorld.class, and the contents are as follows: [code=java] import java.util.Scanner; public class UserInterface { public static void main(String[] args) … | |
Can someone show me a simple program that will display how to extend and use super? | |
I want to implement Dijkstra algorithm for shortest paths in Java, can anyone please help me with the code. | |
What is mean by precasting in java can any one give me simple example please... | |
I am totally new to java, but i understand java is the appropriate for my project. i am not sure where to start? and how to use the java packages. I know programming but JAVA is my first time approach. Can any one guide me on the visualization java tools? … | |
can anyone give me an explanation about static class in java Thank u | |
Hi there First off I don't want you guys to tell me the answer that way I learn nothing., but if you could give me a pointer to what I am doing wrong it would help alot cheers :D What I am trying to do is get a dice to … | |
hi all! i'm having difficulties with arrays in java. i've got a few questions that i'm kind of stuck on and their really bugging me! i'm new to java so if anyone can help with the following questions, i'd REALY appreciate it!!!! 1) Write a loop that creates an integer … |
The End.