36,051 Topics
![]() | |
How can I load an xml file and show it as a treeview control in my HTML page | |
Program 1 A Salesperson at a company receives a set salary each month plus commission based on the number of products sold during the month. Create a Payroll program that can do the following 1. Enter the Salesperson’s name, employee number and basic monthly salary. 2. Enter the number of … | |
[code=java] import java.io.*; public class ACMICPCContestScoring { public static void main(String[] args) throws IOException { BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in)); BufferedReader br = new BufferedReader(new FileReader (" ")); String s = br.readLine(); String[] array1 = s.split(" "); int numberOfTeams = Integer.parseInt(array1[0]); int numberOfProblems = Integer.parseInt(array1[1]); String[] timeStarted = array1[2].split(":"); … | |
Sorry if this is the wrong group to post in - I couldn't think of another suitable one. I'm applying for a job which talks about 'experience using Java/J2EE', I've used Java but not sure if by putting J2EE that they are expecting anything particular? Thanks Nige | |
Hi, Tillnow am using notepad.I want to use Jcreator editor.I haven't any idea about how to use jsp in Jcreator.Now Am using ApacheTmacat4.0 is my Webserver. Anyone help me to this Query. Thanx in advance | |
can any one tell me, how to run applet programs at netbean5.0 | |
Does any one have a recommendation for a basic Java book for someone who is new to anything other than web development (Javascript and XML). Perhaps something that might include servlet or J2EE? Thanks a lot! THT | |
HI all, been messing around with this game for a while now. last thing I need to do is get the score(bals dodged) to display in the main menu.Now I have had some helpful advice regarding this issue but I have notbeen able to implement it myself. Nevertheless I am … | |
Ok, I had a lab assigned to me which detailed many different situations in which I had to use recursion in order to solve them. Most of them were pretty simple. However I've been stuck on this Palindrome problem for hours. I know most people's Palindrome issues are with proving … | |
Hi i've class project with textfilds id,name.no... when i click ok here another window (another class) opens with same fields but not editable. and when i submit here data goes to db. then how to get values of textfields in project class into current class which i've to send to … | |
Hi all, I am a final year student of a Computing Degree and have an idea of doing a Distributed File System for the Final Year Project. I am mainly consider only Distribution of files across a LAN and Replication of data. So any idea of how to split the … | |
sup ya'll, i've been doing this Triangle class homework for a couple of days and have ended up having to change how i am attacking it like 2wice but anyway. i've hit the last wall i think i can hit. this code is all wrong & i don't even know … | |
Hello everyone, I need to change the value of a jsp variable in javascript. I have got this code in my .jsp page: <c:set var="searchType" value="jobsearch" /> the value of the "searchType" should change depending on which link the user click on. I though if I put this variable in … | |
hi all. I was wondering if anybody out there knew how to implement a high score system for this game(saucer). SaucerMenu is a gui class where i want the high scores to appear (up to 5 highest). saucer is the class where the game resides. many thanks in advance. [CODE]/* … | |
hi everyone, i need ur help, how to count the no of pages in a pdf file using java, is it possible to do this. if anybody knows pls send the code. advance thanks hidash | |
Java specification tells that we cannot have static methods in interface.Can anyone explain me Why? :-O | |
calculate the date difference between two dates exclude the saturday and sunday(Please dont calculate saturday and sunday between two dates) | |
I am having an issue getting my program to run. It is a program to add an address to a text file. If the user does not know the zip code or city, they can enter the one they do know and it searches a 2d array for the corresponding … | |
This is more of a JSF problem, but the solution I want is in Java (beans). I want to build a session based application and I'm having trouble finding a good tutorial which states all the steps, from the beginning to the end, leaves no gaps for me to fill … | |
Hi, my name is sunny, i need help with my java project urgently. Could anyone help me? i would be grateful if anyone could help. here is a link to the task [URL]http://n.1asphost.com/jaz08/[/URL] | |
hi everyone i hope you could help me out i need to develop a software for the library system we are currently using a manual system and i would like to generate a java code that will capture my reqirements could you help me with a simple code | |
ok, what i have is a parent class, eployee, with 5 child classes, Doctor Surgeon Nurse Janitor and Receptionist. on my form i have a buttongroup for when the user selects one of those 5 jobs. when the user selects one i want to create an instance of that object, … | |
Hey i have to write a program that will prompt the user to write sentences and those sentences will be written until the user type "stop". i though of doing such a thing but its not doing what i want because i want each input to be on a new … | |
Hey i have to create a 2D array of rows and columns which will takes a row and a columns as a paremeter and enters a string into that positions. I managed [i think so] to create the array but i cant find a way of getting from the user … | |
I cannot get the bullseye to replicate itself 5 times even though I've already set the count to 5... any suggestions? import java.awt.*; public class Bullseye { /** Creates a new instance of Main */ public Bullseye() { DrawingPanel Target = new DrawingPanel(300,400); Graphics g = Target.getGraphics(); bullseye(g,100,100,50,5); } public … | |
HI all, this app is a simple game where the objective is to avoid incoming balls (adversaries) however at present I can only figure out how to get one ball on screen at a time. What I'd really like is, when a player hits 100 points, a second ball is … | |
The brief ive been given is to write a Java prg to take some command line arguements of the form JavaProg -n[anInt] -o[inputFileName] -o[outputFileName] -s[aStringWord] and then use them. Now I understand very basic args[] use. But in the brief there may be missing args and placed out of order. … | |
| |
hai, I need complete java code for image to binary conversion. Please help me. | |
I'm having a session problem with jsf. I've googled abut sessions and none of the results answer this question: what happens when a user logs in, copies the link, logs out and pastes the link in the browser? They say that I should validate the user when the page loads … | |
hi, i'm trying to build a web page which permits the user to login before accessing the contents of the site. the login works fine (i did it using jsp), but i am not able to logout properly, that is, when i click on a "logout" hyperlink, it sends me … | |
hi, my problem is that i have a database where i have stored information month wise of various user and i want that user details in month wise and its shows too but when its move to another column like means in next month like jan to feb its creats … | |
does anyone knows how can i create an array that will get parameters from the user row and column and with a method to fill with strings the rows and columns and after that to print it out. i tried several things BUT nothing works :( if anyone knows how … | |
Hi all, would need your help on unzipping message which is zipped with java.util.zip. For your information my module was written in c++. Currently i am trying to unzip with zlib, how ever it failed with "Z_DATA_ERROR" error. Please advice.. thanks a lot. regards brandon | |
Hi all, I am new to java. I am writing a program and I would like to read some inputs from user, when the program is run. Can someone give me some hints on how can do this... Thanks. | |
Please i need help with a code that can help me add an item to cart take me to the next page and i will still see thesame item i choose on the shooping cart. | |
Hi there, I am experimenting with game design and have met an obstacle. I am trying to paint the background of this simple game I have coded but cannot seem to find out how! any help would be much appreciated! | |
Hello friends , i am jimm . I have some doubts regarding Java Basics. If anyone interested in Java basics..please help me out to find out the answers. What is a java source file ? can you please describe ? | |
I reterived a set of records from the database using a j2ee applciation. i want to delete a record in from the ones that are displayed. is it possible to delete just by clicking a button on the same page where the results are displayed? can someone help me on … | |
hi all, in the below code is used to open a file with its corresponding application.the file with application is opening but the data is corrupted. pls help to open the file without data corruption. advance thanks <% // fname is the file name String filePath=savefile; File f = new … | |
Hi all , I had created a Document using jTextPane which I will use as a Template to create customize ones . For eg : I will create something like this in a Document using jTextPane Hi [B][I][U]<name>[/U][/I][/B] and I will open this Document in another jTextPane to replace <name> … | |
Hey i want to create a [B][U]vector[/U][/B] in order to store circles in it. i did something but im getting a warning error "java uses unchecked or unsafe operations" if anyone knows whats going wrong let me know thanks in advance! [CODE] import java.util.Vector; import java.awt.*; import java.awt.geom.*; public class … | |
Hello everyone, please i am new to progamming in general and i have a project to submit this friday i have been trying to find a way to write the codes but all i keep getting is errors and another problem is one of the program i have to write … | |
what may be the reason for the following message? D:\program files\Java\jdk1.5.0\bin>java FindNoun java.lang.NullPointerException at java.io.Writer.write(Writer.java:126) at ReplaceText.saveOutput(FindNoun.java:92) at FindNoun.main(FindNoun.java:109) | |
Hai . I'm Smith. In this section We have to discuss about JSP. I want to know more about JSP.I thnk the people interested in JSP will help me out to find out some answers. How is a JSP processed ? | |
Hi guys, I am working on an encryption/decryption vigenere cipher at present. Ive been reading and writing to text files using integer arrays and then modding them together in order to get the full ASCII character set. the problem i am facing is, when i am encrypting, the spaces dissapear … | |
Hi everyone! I want to secure my URL to my webapplication so that nobody can get straight to the maps on the server wich are in the url. Can anyone help me with this? Thx | |
Could any one pleace tell me, can I run a java program on a system that does not have a java virtual machine?if yes,how could I do it? | |
I'm a neewbie in this help what's wrong with this one.. <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %> <%@ page import="java.sql.*" %> <% //create a Connection, Statement, and ResultSet object to connect to the database Connection con = null; Statement stmt = null; ResultSet rs = null; String queryText … | |
hi all, I am trying to design a game app that uses a swing gui as a main menu. so far I have been a little confused as to how I get my 'start new game' button to actually launch the game. I have googled event handlers and cannot seem … |
The End.