32,204 Topics
| |
I'm writing a code that is using ArrayList this is the part that is giving me the error. There are several instancses of this error but I figure that if I can get once fixed I can fix them all. [CODE] ArrayList <Student> studentList = new ArrayList <Student>(); ArrayList <Course> … | |
Hi all. I'm a new user here. Some of you may have noticed a thread I started in C++ a few weeks ago. I'm actually taking C++ and java classes simultaneously. It might not have been a good idea, but I had no real choice. It's good immersion in programming! … | |
I am using weblogic workshop 8.1 if anybody is familiar with this plz tell me.how to write the deployment descriptor in that? | |
Good evening all. I have what i think is a simple problem. I created this program to get info from the user and store it into an array. ( i am very new at this so if there is a better way please feel free to elaborate) . basically i … | |
my problem is I have socket between server and a client the client sending data to the server, so the server respond to the client with the response this my code for receive the response data ---------------------------------------------------------- os.write(getAuthenticationRedGreenInfoString()); os.flush(); Thread.sleep(3000); DataInputStream is = new DataInputStream(mySocket.getInputStream()); int rr; int nn = … | |
Hi guys, sorry in advance for the following question: So, I've downloaded the adequate SQL Server 2000 driver, from the Microsoft's website. I've installed it to C:\JDBC\. I've set the classpath variable using the command promt by typing: set CLASSPATH=.;c:\jdbc\lib\msbase.jar;c:\jdbc\lib\msutil.jar;c:\jdb c\lib\mssqlserver.jar; The problem is that the following error message appears, … | |
hi, I seem to gotten my code run. But what I want is to display everything into a dialog box all at once. So when I type 3 it would display all the factorials starting from three...to 15 and display them according to number / Factorials. 5 to 15 all … | |
Write a program that prompts the user to input a number of positive integer values which is terminated by an appropriate sentinel value (you can choose -1 as the sentinel value) and then prints out the largest value, the smallest value, the average value and the number of prime numbers … | |
hi, can anyone pls find out the problem of my code. Code: public class binarysearch { public static void main ( String[] args ) { int[] array = {2,2,10,20,55,100}; int target = 2; int left = 0; int right = array.length - 1; int mid = -1; while ( left … | |
Is there a way to define a PrintWriter object in main() and use it in other methods (within the same class) without having to pass the object as a parameter to all of the other methods? For example: [code] public static void main (String args []) throws FileNotFoundException { PrintWriter … | |
I am trying to print this to a dialog box. The code prints to console and prints, 1,2,3,4....12 to the dialog box. Can someone give me some advice on printing to a dialog box the verses to the dialog? [INLINECODE] import javax.swing.*; // program uses class JOptionPane public class TwelveDays … | |
i generate a jar file for my project but when i try to run it by d-clicking it i found this massage java Virtual Machine Launcher could not find the main class.program will exit | |
1)I need to compare two directories .if the files which r not same in the two directories i want to list them in a new text file can anybody help me solving this question 2)how to write in a file in a String format using java? satish.paluvai | |
Please help me how can i implement Multilevel feedback queue scheduling. i tried something and got scrap liek this [code = java] package osp.Threads; import java.util.Vector; import java.util.Enumeration; import osp.Utilities.*; import osp.IFLModules.*; import osp.Tasks.*; import osp.EventEngine.*; import osp.Hardware.*; import osp.Devices.*; import osp.Memory.*; import osp.Resources.*; /** This class is responsible for … | |
| hi guys how do you export your database to html format? my project goes like this: we built a simple music manager that adds, edits, deletes, searches and sorts records (that's track listings) excluding the multimedia part (i.e. play a track, etc.. our prof didn't require us to do that, … |
i want to make a text field readonly in html form written in my servlet | |
Hiya! I've got a problem writing GUI's. Basically the design portion in code. What I've done is I've broken the GUI components into seperate classes, for example: [code] //custom menu bar public class MyMenuBar extends JMenuBar { ... } //custom generic menu. all //look-and-feel is set //here i.e. fonts etc … | |
Thaks in advance for reading my thread.... my boss given meonly five days time to implement 128-bit encryption code... and we prepared some code in java... and thats not giving the exact ouput of encrypted and decrypted text .... Please Provide any 128-bit Encryption code snippets so that i can … | |
I'm trying to create a Cash register that accepts euros. I don't even know where to begin. So far I have: public class Coin { public Coin() { name = " "; value = 0; } public Coin(String n, int v) { name = n; value = v; } public … | |
hey all, still very new, i'm trying to create an array and then get an average of the numbers. this is for a class of mine and a friend says i'm close but the book doesnt really give any further help. can you tell me where i'm going wrong? mucho … | |
My assignment is: "Write a program that accepts the letter grades for a student, calculates the student's gpa, and prints it out, along with one of the following five messages: Eligible Ineligible, taking less than 4 classes Ineligible, gpa below 2.0 Ineligible, gpa above 2.0 but has F grade (note: … | |
Hi Everybody, I was wondering if someone could help me figure out what is wrong with this part of my program. My program is a fraction calculator, and I'm wondering if the code I have is ok and if it will display correctly. Thanks much!! Also should I add a … | |
Hi, I am converting a given html document into a tree structure and displaying it using JTree and DefaultMutable classes. By using the html parser and the JTree functionality, I can display the html doc as tree structure, but now I would like to get the subtrees only of that … | |
I getting the following errors.. please help .. below is error i get and below that is the file that the error is refferring to [code] E:\JAVA\Java Files\lab employee\FullTimeEmployee.java:22: cannot find symbol symbol : class DateComponent location: class FullTimeEmployee DateComponent dc = new DateComponent(date); ^ E:\JAVA\Java Files\lab employee\FullTimeEmployee.java:22: cannot find … | |
Hi folks, I am trying to perform and insertion sort on a double ended list that currently contains a bunch of strings. Can someone please give me some pointers on how to approach this problem? | |
Im trying to compile this code, but I keep getting a compile error: [B]'(' or '[' Expected[/B] What am I doing wrong? Thanks in advance [CODE] public class Postfix { public static void main(String[] args) { Stack<Integer> stack = new Stack<Integer>(); ------> HERE while (!StdIn.isEmpty()) { String s = StdIn.readString(); … | |
Hi all, When RUN the Project that erros apears : [COLOR="red"]"Application.java": cannot find symbol; symbol : class FirstWorld, location: class Application at line 3, column 7[/COLOR] [COLOR="red"]"Application.java": cannot find symbol; symbol : class FirstWorld, location: class Application at line 3, column 30[/COLOR] Please help me .. Thanks..:) | |
Hello Everybody. I am trying to write a program that asks the user to enter the amount of dice they want to use, and how many rolls they would like to make. Eventually I will need to store the output in strings, so I can print out how many times … | |
Thaks in advance for reading my thread.... Just now we have decided that have to implement 128-bit encryption code... and we prepared some code in java... and thats not giving the exact ouput of encrypted and decrypted text .... Please Provide any 128-bit Encryption code snippets so that i can … | |
hi, i want to generate custom error pages for my jsp pages insted of default error pages can anybody explain |
The End.