36,051 Topics
![]() | |
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 | |
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. … | |
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 … | |
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 | |
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 … | |
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. | |
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. | |
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 … | |
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 … | |
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: ']' … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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" … | |
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. | |
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 … | |
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(); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
hi all, i have some requirements to scrollpane, i am attached my requirements, please give some idea to do my requirements thankyou ganesh | |
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 … | |
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 … | |
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 | |
I have created URL object and through this i want to access the User and password and submit the request through URL. | |
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 … | |
I have created connection through URL. Now i want to validate user and password in the URl page. | |
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 … | |
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 … | |
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 … | |
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+ … ![]() | |
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 … | |
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 … | |
Hi, Can someone tell me how to identify a carriage return character in string | |
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 | |
Hi can we create an exe file in java and used it anywhere we want without using any jdk/jre deepti | |
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. … | |
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. | |
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 … | |
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; … | |
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 … | |
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 … ![]() | |
hi cany anyone help me how to upload and download an audio file using jsp | |
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 … |
The End.