35,618 Topics

Member Avatar for
Member Avatar for kalaiselvi.v

I have created connection through URL. Now i want to validate user and password in the URl page.

Member Avatar for jwenting
0
78
Member Avatar for Zonr_0

Hi! Haven't posted on danniweb for awhile, but I'm hoping I can get some help. I am in the middle of learning Java, which will be my second language after python, and I have come across a problem, ordering a list of integers in an array. In python, there's a …

Member Avatar for jwenting
0
193
Member Avatar for paski

From form on page A, I am retrieving submitted values on page B.jsp. Page B is creating new PersonData class from those dates (using [code]request.getParameter("any_param_name");[/code] ) and adding it into some kind of collection. Problem here is, that after reloading page B again, parameters are left, and new PersonData is …

0
42
Member Avatar for Panarchy

Hello! I was wondering if anyone has a forum backend, in java? I know a bit of python myself, but I want the backend (working backend for a forum) I am going to make the frontend myself (in html, not php, has to be html) Please provide it! Thanks in …

Member Avatar for Panarchy
0
156
Member Avatar for degamer106

I'm supposed to design a method that takes in a double value and translates the value into the closest letter grade. 4,3,2,1,0 denote A, B,C,D,F, respectively. + increases a grade's numerical value by 0.3 and - decreases a grade's numerical value by 0.3. There is no F+ or F-. A+ …

Member Avatar for Mouche
0
75
Member Avatar for leroi green

Hey all, I've tried not to ask questions for like a week or two but, I've got the Introduction to Java Programming (sixth edition) and I'm doing the Exercise 7.2 'The Fan Class' where I am to; Design a class named Fan to represent a fan. They have the UML …

Member Avatar for mickinator
0
215
Member Avatar for paydfody

This code is meant to be a simple quiz, but I am getting 4 errors that I cannot figure out. Thanks in advance. import java.io.*; public class Quiz { public static void main(String args[]) { int correctCounter; InputStreamReader reader; BufferedReader buffer; keyboard = new BufferedReader (new InputStreamReader (System.in)); } String …

Member Avatar for kmlittle
0
305
Member Avatar for vivek_green
Member Avatar for Ezzaral
0
2K
Member Avatar for ravi_forum

Hi , Is there any one help me to write the java code for displaying all [B]compatible system time zones[/B] and setting the required time zone among those list. Thanks and regards

Member Avatar for jwenting
0
76
Member Avatar for deeptiarora

Hi can we create an exe file in java and used it anywhere we want without using any jdk/jre deepti

Member Avatar for Ezzaral
0
155
Member Avatar for deeptiarora

Hi everyone Can sum1 tell how to export data on an excel file from the click of the button which is there on the jsp page.The Data first should appaear on the jsp page and only when the user/client clicked on button then the data get exported to the excel. …

Member Avatar for masijade
0
67
Member Avatar for apophis

Hello. I have a problem. I have a table with employees and some data. I want to generate a xls with that data. How do I do that ? Thanx.

Member Avatar for masijade
0
41
Member Avatar for Grub

Hi, I have a project on which I am working. I have two classes. A box Class which is of an undefined capacity and is only defined when an instance of the box class is made and I have an item class of which instances of it must be stored …

Member Avatar for masijade
0
82
Member Avatar for claudiu_is

I`m trying to compile a small program for authentication on a torrent site but when it reaches the [B]setRequestProperty()[/B] line throws an exception: [COLOR=Red]Exception in thread "main" java.lang.IllegalStateException: Already connected at sun.net.[URL="http://www.protocol.http.HttpURLConnection.setRequestProperty%28Unknown"]www.protocol.http.HttpURLConnection.setRequestProperty(Unknown[/URL] Source) at MovieCrawler.main(MovieCrawler.java:22) [/COLOR]I understand that [I]something[/I] is [I]already connected[/I]! How can I disconnect before using this method; …

Member Avatar for peter_budo
0
748
Member Avatar for sunithamcsit

hai everybody I am beginner to J2ME, I need to know the things that how one can run the Java class file in mobile, for example I need to run c=a+b program that is in java class file in mobile. and also can anyone suggest me some important material links …

Member Avatar for peter_budo
0
104
Member Avatar for Demonic5

ok the goal of the project is to define a class called DateCS212 and use an array of DateCS212 objects to store a sequence of dates. The main program, Project2.java, will read the dates from a file and will instantiate a DateCS212 object for each date read from a line …

Member Avatar for iamthwee
0
154
Member Avatar for balagangadharm
Member Avatar for Ezzaral
0
77
Member Avatar for degamer106

Ok, so my goal is to draw a rectangular spiral in java. So far, I've created the Spiral Viewer class and the SpiralComponent but I'm not quite sure how I would implement the SpiralGenerator class. Here's what I have: SpiralViewer: [CODE]import javax.swing.JFrame; /** Test driver for Spiral class. */ public …

Member Avatar for degamer106
0
2K
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
214
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
78
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
59
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
105
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
57
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
92
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
102
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
112
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
116
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
763
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
149

The End.