36,051 Topics

Member Avatar for
Member Avatar for George87

Hi evrybody, as you can see I am new to this comunity and I hope I put this meesage in the right topic.I want to now from where I can get some online tests in jva fundamentals

Member Avatar for eranga262154
0
62
Member Avatar for Grub

Hi I am making an vending machine application. Now the vending Machine takes 5, 10, 20, 50 pence and 1 pound coins. Now I create a String object and use this to read input from the user i.e. read the denomination (Money e.g. 5 or 10 pence) the user enters. …

Member Avatar for eranga262154
0
86
Member Avatar for babyfrostie

need help with the GUI of my program... i want it to be like this: [URL=http://img256.imageshack.us/my.php?image=faceeq9.jpg][IMG]http://img256.imageshack.us/img256/8919/faceeq9.th.jpg[/IMG][/URL] but this is what it shows.. hehe [URL=http://img440.imageshack.us/my.php?image=caym9.jpg][IMG]http://img440.imageshack.us/img440/8486/caym9.th.jpg[/IMG][/URL] im having a hard time with the GridLayout coz i think ie. GridLayout 3,4 doesnt appear to be 3,4.. thankss... [CODE]import java.awt.*; import java.awt.event.*; public class …

Member Avatar for babyfrostie
0
314
Member Avatar for rishiraj_bayerd

Hi all, I want to appear for the SUN certified Java exam. But I have no idea about it. Please help about it. How i prepare myself for this exam... Please help.... Wating for reply rishi

Member Avatar for Ezzaral
0
210
Member Avatar for uonsin

hi, i just want to get some opinions on a queues homework project. i haven't written any code yet, but just want to know if it is possible to create an array[16] items and then that each item has an array[1][3], i have to work independently with each item of …

Member Avatar for Ezzaral
0
75
Member Avatar for thebladerunner

Hi, Is it possible to call the constructur of a java class from a shell script? I know you can call static methods, but can you also call the constructor? Wim.

Member Avatar for masijade
0
47
Member Avatar for Grub

Hi, I am wondering if there is a more graceful manner in which to clear the console window previously printed values apart from using a loop in which the println(); is repeated. Many thanks.

Member Avatar for jwenting
0
70
Member Avatar for gerik

I've been trying to work out this error with packages, changing the classpath name in a number of different ways (using set, declaring it in the javac command), but I always get the following errors when I try to compile the following code: import kalut.*; import java.lang.Math.*; public class Koetesti …

Member Avatar for Ezzaral
0
129
Member Avatar for PoovenM

Hi, I'm looking for a learning tool that helps a student/novice user program (preferably in Java). I know of Jeliot (a visualization program) that attempts to helps student understand how execution occurs. JTest is a professional package that detects error and tends to describe why they occur and how to …

Member Avatar for jwenting
0
89
Member Avatar for abar_sow

can anyone tel wat error i made in the below code..I want to assign the list of strings stored in one variable to one string array.wordlist contains list of variables. [code] for (int s=0; s <=wordlist; s++) { String wordlisting[s]=new wordlist; System.out.println(wordlisting[s]); } [/code] [U]error[/U] D:\program files\Java\jdk1.5.0\bin>javac Main.java Main.java:86: ']' …

Member Avatar for Ezzaral
0
114
Member Avatar for parthiban

Hi all, I'm learning Serialization in JAVA . I learned that [B]"an array object is serializable as long as the things in the array are serilizable"[/B] . [COLOR=Green] I just need a clarification on that statement[/COLOR] . To understand that concept I myself coined a simple program . Here it's …

Member Avatar for parthiban
0
103
Member Avatar for parthiban

Hi all , [U]Here are my questions :[/U] I like to know when to use Serialization and when should the preference will be given to Database to persist an Object . To use a database with Java at what level a programmer should be good in Database ? what are …

Member Avatar for parthiban
0
108
Member Avatar for spick

I have to write a code with netbeans for my homework and this is what I need to do "please create Main.java to test the Account class. In the main() method, create an Account object named myAcct with an account ID of 1122, a balace of $20000, and an annual …

Member Avatar for spick
0
135
Member Avatar for iron_man08

Hey I need help with creating this program. It's supposed to take the values I've assigned in int[]A and put them into int[]C in order from least to greatest (for example, C[0] would be 1, C[1] would be 3, etc.) Yes, this is a homework problem, but I've been trying …

Member Avatar for nschessnerd
0
121
Member Avatar for preston_naidoo

Hi, i have got this assignment to to which is due in like 3 days, m in high school so n0t so clued up. My asssignment is to create a database with MS Access, n to create a jdbc-odbc link so that the user can extract the data from the …

Member Avatar for jwenting
0
125
Member Avatar for Melzy

The class that my bean uses has an array textFields[407]. I have 407 textfields in my jsp file. I used a loop to make the textfields. So, it looks something like this: [code=JSP] <%for ( int i = 0; i < lineCount; i++ ) {%> <INPUT TYPE="TEXT" NAME="textFields"+i SIZE="4" MAXLENGTH="7" …

Member Avatar for lookof2day
0
266
Member Avatar for princevijay

hai, how to insert picture and movies in oracle9i using jdbc technology. i had some program to implement this process but i can't do this.please help me to implement this program.

Member Avatar for Ezzaral
0
37
Member Avatar for RatanKumar

Hi, I want to use struts-html:checkbox to insert/update a field in a table. I am using dynavalidatoractionform in struts-config and beanutils.copyproperties to populate these fields in a formbean i need this checkbox to be checked by default when the page comes up. on submit, it should send Y if checked …

0
56
Member Avatar for bagi

Client side: import java.io.*; import java.net.*; class TCPClient { public static void main(String[] args) throws Exception { String sentence; String modifiedSentence; BufferedReader inFromUser = new BufferedReader (new InputStreamReader(System.in)); while(true) { Socket clientSocket = new Socket("hostname", 5678); DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream()); BufferedReader inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); sentence = inFromUser.readLine(); …

Member Avatar for masijade
0
83
Member Avatar for Attila.Both

Hello all! I am trying to run my SOAP-XML application, but I am constatnly receiving the folowing exception. Can someone expalin me what do I do wrong? Any suggestions or ideas about the solution? Exception: The value of the 'http://www.w3.org/2001/XMLSchema-instance:type' attribute must be namespace-qualified.[COLOR="Red"][/COLOR] You may also write to me …

Member Avatar for Ezzaral
0
67
Member Avatar for zandiago

Good day. How do i convert the following code to C++? [code=java] // Lets import our file functions. import java.io.*; public class Grades { // Setup an array of test students private static Grades.test student[] = new Grades.test[50]; // Just for spunk we will create an inner class to keep …

Member Avatar for Ezzaral
0
180
Member Avatar for WVTraveler1

Hello, I would like some help with ending a program. I am working on some homework for writing code and everything I try will not allow me to end the program. I keep getting a syntax error "`expected "}"`" and I can not figure it out. I have checked for …

Member Avatar for Ezzaral
0
143
Member Avatar for cat8882

Okay so I'm supposed to be doing an program where the user types in the circles points and the center of the circle...then make a new method for each of the things calculated like distance and area and radius...how do I bring what I did for a method back to …

Member Avatar for uonsin
0
91
Member Avatar for Triggerhappy41

The attached image shows my problem. When I create a GUI in netbeans, the preview of the GUI does not match the actual GUI shown when running in two ways. One (in a minor sense) is that it does not have the windows xp "look" for its buttons, borders and …

Member Avatar for peter_budo
0
151
Member Avatar for thekashyap

I needed to get links to some good Java, J2EE tutorials and was surprised that daniweb::Java didn't have a thread on that.. Of course it's easy enough having Sun provide tutorials on most things, there might be some covering specific topics in better ways. Anyway here are the links I …

Member Avatar for Ezzaral
1
896
Member Avatar for Barefootsanders

Hey everyone, I was hoping you could help me out in choosing or not choosing java for an upcoming project I would like to do. I would like to have my media library streaming from my home computer. So basically you would input a directory and it would gather all …

Member Avatar for nschessnerd
0
84
Member Avatar for tlgkumar

hi all, i have some requirements to scrollpane, i am attached my requirements, please give some idea to do my requirements thankyou ganesh

Member Avatar for Ezzaral
0
48
Member Avatar for balagangadharm

Hi can any help me how get page linksI mean if there are 10 pages contents. I would like to show certain amount of content in each page. At the bottom we do display 1 of 10 pages 1 2 3..<last>. how to write this code in java or javascript …

Member Avatar for Ezzaral
0
93
Member Avatar for cms271828

Hi, I'm looking to update a MySql database from an applet. The 2 roots I was thinking were: Applet->php->database Applet->servlet->database But my webhost doesn't allow servlets/jsp, so I would like to try the php route. I've looked on the internet, but I can't find anything concrete to use, just lots …

Member Avatar for Ezzaral
0
138
Member Avatar for pawan_1983

sir, i have appli.jar,mysql_connecter.jar, and two dll file,and i am using jdk1.5 how can i create .exe file for client. i want to create same enviorment on client machine. plz help

Member Avatar for Ezzaral
0
144
Member Avatar for kalaiselvi.v

I have created URL object and through this i want to access the User and password and submit the request through URL.

Member Avatar for masijade
0
72
Member Avatar for pentasoft4u

Hi, I need some help from all of you. I am using JRun4 servers we are facing some problem without running Precompile jsp. We need to pre-compile the JSP for that we need some java code to perform this pre-compilation for http and https request. We don't want to Using …

Member Avatar for masijade
0
93
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
79
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
195
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
43
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
157
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
76
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
216
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
310
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
78
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
156
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
68
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
43
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
84
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
749
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
156
Member Avatar for balagangadharm
Member Avatar for Ezzaral
0
79
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

The End.