36,051 Topics

Member Avatar for
Member Avatar for Jurnee

After hours of searching for for a nice looking drop-down menu in CSS I found the perfect one on the Dynamic Drive website. It's working wonderfully - as long as I don't try and position it anywhere on the page except for the default position. As soon as I moved …

Member Avatar for naptown
0
216
Member Avatar for lordx78

import java.util.*; import java.io.*; class Week3Question2 { public static void main (String args[]) { TreeSet OldAccount = new TreeSet(); TreeSet CurrentAccount = new TreeSet(); TreeSet PseudoAccount = new TreeSet(); try { RetrieveAcc(OldAccount,CurrentAccount); } catch(Exception exc) { System.out.println("No such file!"); } try { WriteAcc(OldAccount,CurrentAccount,PseudoAccount); } catch(Exception exc) { System.out.println("Process failed !"); …

Member Avatar for Ezzaral
0
80
Member Avatar for shellboi

You will have to implement the DICE (drop if course exceeds) feature of boss. DICE works as follows: If a student is allowed to bid for n courses (say 5 course), DICE will let the student bid for an additional course if the following criteria are met Student has enough …

0
61
Member Avatar for vivek_green

HI, Can someone tell me if two static hashtables declared with the same name in two different classes will cause ambiguity while acessing in each other classes without refering them with class Name.

Member Avatar for jwenting
0
108
Member Avatar for flavour_of_bru

Hi, I am presently trying to display an XML document as a tree structure. I am able to do it using JTree and SAX Parser. Now I would like to get the parents of all non-leaf nodes and display them as sub-trees. Does we have any function in JTree where …

Member Avatar for Ezzaral
0
59
Member Avatar for huskersox

In this assignment you will use a sentinel controlled while loop to determine gross pay for any number of employees. The company pays "straight time" for the first 40 hours worked by each employee and pays "time and a half" for all hours worked in excess of 40 hours. There …

Member Avatar for masijade
0
104
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 jwenting
0
93
Member Avatar for Melzy

I want to do a very simple task. I want to have a drop box and display (in the same page) the user input as soon as the user makes his choice. There must be no button involved. I dunno how to pass the values of the forms w/o using …

Member Avatar for Melzy
0
103
Member Avatar for ajay_tabbu

I m working with applets.but i got struck.I want to explorer directorys and file in Brouser (just like as we open my computer by right click explorer). but i m finding problem in that which java class and method i should use.As when we work without applet it's is simple …

Member Avatar for ajay_tabbu
0
113
Member Avatar for PL.P27

Hi everybody, I'm new to GUI and was wondering if someone could help me with my fraction calculator if they input text in the fields or if they leave something blank. I'm not quite sure how to do that. Here's my code, and if someone could guide me to how …

Member Avatar for nschessnerd
0
118
Member Avatar for jackskell26

Hello Everybody. This program needs to use an array to count the amount of times a certain roll appears on the dice, after the user enters how many dice and rolls they would like to use. I was able to figure out the code to print out the values of …

Member Avatar for jackskell26
0
765
Member Avatar for vladdy19

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> …

Member Avatar for masijade
0
151
Member Avatar for ubercat

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! …

Member Avatar for ubercat
0
160
Member Avatar for satish.paluvai

I am using weblogic workshop 8.1 if anybody is familiar with this plz tell me.how to write the deployment descriptor in that?

Member Avatar for jwenting
0
82
Member Avatar for JVStylez

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 …

Member Avatar for Ezzaral
0
88
Member Avatar for ezzat_hakeem

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 = …

Member Avatar for Ezzaral
0
85
Member Avatar for Chaster

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, …

Member Avatar for Ezzaral
0
187
Member Avatar for atrix415

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 …

Member Avatar for masijade
0
143
Member Avatar for denniskhor

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 …

Member Avatar for Chaster
0
118
Member Avatar for shantuli

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 …

Member Avatar for ChaseVoid
0
195
Member Avatar for jaden403

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 …

Member Avatar for peter_budo
0
91
Member Avatar for Cerberus

Hi. Is it possible to use a resultset from a scriplet in a <c:forEach> loop? E.g. [CODE]results = prepstatement.executeQuery(); request.setAttribute("results", results);[/CODE] [CODE]<c:forEach items="${results.rows}" var="row"> row.fieldValue <br /> </c:forEach>[/CODE] Thanks.

0
55
Member Avatar for atrix415

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 …

Member Avatar for masijade
0
441
Member Avatar for aruna_k_2006

hi everyone, I am able to set Expiry for jsp in IE but in same jsp i have img tag for those i am unable set Expiry ................. response.setDateHeader()...plzzzzzzzzzzzz any one help out

0
54
Member Avatar for wegdan

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

Member Avatar for peter_budo
0
116
Member Avatar for satish.paluvai

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

Member Avatar for masijade
0
104
Member Avatar for craig5464

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 …

Member Avatar for sam_tn
0
551
Member Avatar for elangobala

Hi, I m in urgent need of form validation using ajax and jsp.. The form validation is something like when i prints wrongly and enters the second text box it will show red mark error in the side of the approipriate field..please send some sample code...

Member Avatar for sillyboy
0
51
Member Avatar for sakura_fujin

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, …

Member Avatar for masijade
0
97
Member Avatar for mrityunjay22
Member Avatar for rwm

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 …

Member Avatar for rwm
0
101
Member Avatar for rajveerg22

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 …

0
56
Member Avatar for kanetaz

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 …

Member Avatar for DrCruel
0
102
Member Avatar for leroi green

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 …

Member Avatar for leroi green
0
129
Member Avatar for Amurka

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: …

Member Avatar for Amurka
0
1K
Member Avatar for PL.P27

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 …

Member Avatar for PL.P27
0
178
Member Avatar for flavour_of_bru

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 …

Member Avatar for Ezzaral
0
221
Member Avatar for java_starter

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 …

Member Avatar for Ezzaral
0
101
Member Avatar for JavaNewbie07

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?

Member Avatar for Ezzaral
0
62
Member Avatar for alinurl

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(); …

Member Avatar for alinurl
0
56
Member Avatar for java.cream

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..:)

Member Avatar for java.cream
0
112
Member Avatar for jackskell26

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 …

Member Avatar for jackskell26
0
156
Member Avatar for rajveerg22

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 …

0
55
Member Avatar for mrityunjay22

hi, i want to generate custom error pages for my jsp pages insted of default error pages can anybody explain

Member Avatar for masijade
0
65
Member Avatar for bdaya

i have a small problem in opening the record , in the sever there is a folder which contains n number of word documents, i made them to list all the files in the order and if i click on the file it should open in the MS Word and …

1
56
Member Avatar for balagangadharm

I have a variable of type float.can anyone tell me how to put this in session as an attribute so that i can use it in other pages.plz reply

Member Avatar for masijade
0
50
Member Avatar for thunderbbolt

I am learning java and was looking at this program I don't understand what is wrong with it, I am getting an error that says something about the compareTo cannot be found and variable cannot be found. [code] class Card implements Comparable { Card(int r, int s) { rank = …

Member Avatar for DrCruel
0
100
Member Avatar for mrityunjay22

jsp code <%@ page import="temperory.Mrityunjay.*"%> <%@ page import="com.MindShaper.ClassTeacher.Utility.BaseServlet.VSHttpServlet" %> <%@ page import="java.util.*"%> <%@ page import="com.MindShaper.ClassTeacher.Utility.Helper.*" %> <%@ page import="ClassTeacher.SessionObject"%> <%@ page import="ClassTeacher1.MemoryTables"%> <HTML> <HEAD> <TITLE>Student Information</TITLE> <!-- for confirm () --> <script language="JavaScript1.2" src="functions.js" type="text/javascript"> </script> <link rel="stylesheet" href="lib.css" type="text/css"> <style type="text/css"> <!-- td { padding-left: 15px; } --> </style> …

Member Avatar for mrityunjay22
0
137
Member Avatar for java_starter

Here the error i get from the file below [code] F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:1: cannot find symbol symbol : class Calender location: package java.util import java.util.Calender; ^ F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:22: cannot find symbol symbol : class DateComponent location: class FulltimeEmployee DateComponent dc = new DateComponent(date); ^ F:\JAVA\Java Files\lab employee\FulltimeEmployee.java:22: cannot find …

Member Avatar for Amurka
0
221
Member Avatar for taylorjt4

Hello! I keep getting this pesky virtomonde and win32 bug. Here is my HJT log: Logfile of HijackThis v1.99.1 Scan saved at 7:04:47 PM, on 10/6/2007 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v7.00 (7.00.6000.16512) Running processes: C:\WINDOWS\System32\smss.exe C:\WINDOWS\system32\winlogon.exe C:\WINDOWS\system32\services.exe C:\WINDOWS\system32\lsass.exe C:\WINDOWS\system32\svchost.exe C:\WINDOWS\System32\svchost.exe C:\WINDOWS\Explorer.EXE C:\WINDOWS\system32\spoolsv.exe C:\Program Files\Common Files\AOL\ACS\AOLAcsd.exe …

Member Avatar for Suspishio
0
308

The End.