36,051 Topics
![]() | |
I'm trying to read a xml file which contains two xml files in one file with java from a specific directory and then writing a response file with also two xml into one file which contains variables from the read xml file. XML Parser gives me an error "The processing … | |
Dear Gurus & Members, I am very new in Java. I wonder if it is possible to use Java to create a small application/plugin on my e-learning website that will record user's audio through microphone, save as .mp3 on the user's pc and enable user to playback the mp3s when … | |
I went to a Computer Science and Engineering Day at the University of Nebraska today and now I feel really motivated to program something. The only problem is, I don't have any idea of something to write. Is there some special trick to coming up with ideas for new programs? | |
Right, I have an app that basically copies images from a digi camera to the hdd, the user logs in and then it copies the images accross to the hdd and creates some thumbs and brings up a screen which has the thumbs so they can select what they want … | |
Here's a quick, stupid question... is it possible to make an executable file for Java Application? and if so, how? | |
Hello Everyone. Just a couple of questionsn i wanted to know. can someone explain what is meant by an index array and why its use can improve the efficiency of sorting? Can someone give me a more efficient verson of the sort algorithm below with reasons why its more efficient?? … | |
I have an application that has a fractal already drawn, but I have three JSliders that allow the user to zoom in out, shift the x axis, and shift the y axis. I think it's plotting around 160,000 points, and the refresh is quit noticible. I was wondering if there … | |
I uninstalled Java on my new Dell laptop. I realized I needed it back and did a system restore but now it is not working. Whenever I click on anything java, it causes IE to crash bringing up my desktop. Help! | |
I am making a game and need a hell of alot of varibles. it is all so GUI so I need alot of Jbuttons. can I do it like something what I have below??? char[] mine=new char[3]; for(int count=0;count<10;count++){ //String add = "one"+count; JButton mine[count] = new JButton(""); } heres … | |
Greetings all, I'm trying to use the Math.pow(2, b) in the following manner. The program prompts for a user input (int). It then takes the user int and puts it into a forumla that (amoung other things) computes the number 2 to the input's power. (Thus I'm using the Math.pow(2, … | |
can someone tell me why it is telling me that class Bomb doesn't exist because it does. here is my code: [CODE] import java.io.*; public class MineSweep1 { static BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); static private Bomb[] bmbArry1 = new Bomb[5]; static private Bomb[] bmbArry2 = new Bomb[5]; static … | |
Since I logged on to my computer 3 days ago, it showed that a registry file had been recovered successfully, but now Javascript has disappeares. I have tried a lot of the tips on here, but nothing works. What I really want to do is download the Microsoft Script thing, … | |
Hi guys, Im looking for a programmer that is familiar with the J2EE platform. [url]www.sams.com[/url] The above site will include a forum for users and a chat room. The site will be for persons thats have or know someone that has aspergers. We at sams do not have much funding … | |
Hello. As i couldnt work out my problem with my other version, i re-wrote it in a totally different form, now my program does display all the entries i make,, but the problem now is how do stop the dialog box from keep coming up. For example: i input 2 … | |
How can I make use of applets while developing web pages? | |
I am running Win98SE on a Pentium 350 box with 64MB RAM. I am not able to run JSP pages/scripts in Internet Explorer. Whenever I try to run one by pressing a hyperlink, I get a This Page Cannot Be Displayed error message. I have tried changing the setting of … | |
Hey there I am new to this game. I have to create a ball puzzle to display in a webpage it consists of a tube and 8 balls 4 black and 4 white the white balls are slightly larger than the black balls I need to be able to manipulate … | |
[B]Intro[/B] I've been fooling around with RMI today for fun and learning and got some serious headbanging when I couldn't get any of the examples I have in books by respected authors to work with JDK 1.5 (a.k.a. Tiger). All tutorials and examples on RMI say you should run rmic … | |
Just installed and ran Hijackthis (wow).. Here's my log, can somebody tell me if I should kill anything here :-| :D Thanks for any help!!! :cheesy: Logfile of HijackThis v1.99.1 Scan saved at 2:42:50 AM, on 4/9/2005 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180) Running … | |
Is it possible to view the java classes source code or to get it somehow? I'd really like to see how some of the classes work if its possible | |
Ok i've understood the use of arrays and most of it.... but my problem is no matter wat i do my program still only displays the last entry i make and not all. i've tried a for loop in the print method but no luck. Neone know what im doing … | |
Can someone look at my program. I am having a problem with my Scanner line. Does anyone know how to fix this problem?? I keep getting an error at this part: letter = scan.nextLine(); [code] import java.util.Scanner; public class ATMdriver { public static void main(String[] args) { ATM atm=new ATM(); … | |
The folloing question is my assaignment i never did network programming before after creating html page to access username and password how to read that information and can any one help me in writing cgi program for this assaignment Write an Java applet or Java application that can be used … | |
Hello everyone, I am wondering whether Java has asynchronized I/O (whether built-in core Java SDK or 3rd party release), which is similar as select or poll in UNIX. Current read/write will be blocked when underlying stream is not ready. For example, when retrieving data from remote machine, we will be … | |
Greetings all, I'm having a little bit of trouble with writing a method that returns the value of a given function. The method is designed to accept an input (int b), then take the input and return the value of a. a = b + b^2 + 2^b I've gotten … | |
I have written this bit of code is ArrayList better than Vector and if so how do i change it ???? i am thinking where ever vector is mentioned to change it to ArrayList [code] import java.util.Vector; import java.io.*; public class V_All_Std_Record { private Vector main_Vector = new Vector(); public … | |
I started reading this old book about jsp, and I'm having a few problems getting started. First of all, it says that I need to set these environment variables: Java_HOME, and J2EE_HOME. I don't see those, and I don't think their is a need for them, but I can't get … | |
my system is tomcat combinded apache. I want to do SEO by apache mod rewrite so as to hard pages likewise, and devided my company's applications into several modules/subdomain( hosting in one jsp server), so as to promote each individually, such as bussines, forum, blog, news, etc. after everything has … | |
WEll I'm kinda new to Java programming...but we got a major project coming up and I got stuck on one of the examples. This is for a validation code, to validate correct inputs....the errors are highlighted in red...Thanks to anyone that bothered to help :P I'm sure the answer is … | |
hi my applet has two fishes swimmin in opposite directions. the user should b able to control the speed of the fishes. everythin else except the speed control is workin. what am i doing wrong? | |
Hello everyone, I want to print out the string "Hello World!" to console at a random interval, and the average length of the random interval is 1 minute when the string is printed out hundreds of times. Anyone know how to accomplish this? Thanks in advance, George | |
hi i know this is a newb question, but how do i get doubles to display the end zeros after the decimal point for example i want to display 1.20 but i'm getting 1.2 cheers | |
I read about Java being multi-platform language but could not confirm this. If I compile and make .cla files in Windows OS and then run these on Unix OS will run fine ? Or I need to install some components. | |
For homework I was assigned the "non-attacking queens" problem. Now I have all_boards as a static variable and i was trying to store each step as a board. like row 1 board, row 2 board, etc, but for some reason all the boards are overwritten with the final board. My … | |
:o Yet another question to ask for the full assignment breif please look at [url]http://www.cems.uwe.ac.uk/~lrlang/java_html/assignment2.html[/url] it might make what i'm asking a bit clearer as i'm not very good at explaining myself. [CODE] private Booking [] bookingList; private int numberOfBookings; public Hotel () { } // Hotel () [/CODE] this … | |
I have an assignment which can be found at [url]http://www.cems.uwe.ac.uk/~lrlang/java_html/assignment2.html[/url] i have coded all the required classes apart from Hotel and HotelGui classes my problem is with the Hotel class the assignment says "The methods that you are required to implement are as follows: * public Hotel () The constructor … | |
hello experts!!! im just a beginer.. thats wants to know alot.. i want to program my own tictactoe game.. but i dont have visual basic..can anybody plz.. give me some codes that i can edit my self with javascript or html.. if possible? can you make a tictactoe game with … | |
hi everyone System.out.println(currentPlayer); it returns to me like this:[B]Player@7cbde6[/B] i know it was caused by toString() and it is suggested to ues overriding method but i don't know how to do it, so can somebody teach me how to use overiding method so System.out.println(currentPlayer); will display what i want thank … | |
i have an assignment to write a hotel booking system in java i have to write this class "The Booking class brings together all the details for a booking into a single object. When creating a Booking object, it is vital that: * The room availability has previously been checked. … | |
I'm desperately trying to finish of a site for my writers club and I know nothing about programing only got as far as I have care of WYSIWYG program. Anyway I want to insert a series of forms in one of the pages giving random Male Names, Female Names, Places, … | |
does java have a ' system ("PAUSE") ' like c++....if so what is the syntax to do it. ty | |
in the past i have been able to run dos commands thru C++... for example: system("cls") in C++ used to clear the screen... does anyone know if this can be done in java? | |
I have a program that uses blocking/non-blocking direct and indirect communication. I need to have it randomly choose whether or not it should do the blocking or non-blocking method and I do not know how. Does anyone have any suggestions? Thank you. | |
Hi all, This program below sorts arrays of integers. It counts the number of times it compares pieces of data to do the sort.With the array size set at 4 it always takes 9 comparisons. Does neone know how i can Modify it to read in a series of four … | |
Does anyone know how to have a thread randomly decide if it wants to do blocking or non-blocking mode with direct communication? I am using a bounded buffer with size of 5. I have the non-blocking mode right but I am not sure how exactly to change it to accommodate … | |
Hi, I have a fileoutput method which when called, should output the array into a text file. The array is stored in the same public class as the fileoutput method and I am using a constructor for the array, which is in the Cd class. I would like to know … | |
Greetings all...long time reader, first time poster. I have 2 java files, one that contains methods that do conversions, the other contains a loop that allows a user to select "what" they want to convert. The program works, but one of the conversions is to multiply by 0.0092. When I … | |
Hey everyone. I was just wondering what people think is the best environment for editing and compiling code. Currently, I use JCreator. | |
Hey Everybody, I'm making a Java applet and trying to post it online. Whenever I open the HTML page where the applet is, i get an error message. Here's the website with the applet on it: [URL=http://www.inquirybio.com/quiz.html]Applet Website Link[/URL] Thanks in advanced, C++ | |
What I'm trying to do is format input from a text area so that it is all uppercase letters and numbers, eliminating all punctuatoin and whitespace. I want to use a method format() to loop through all the characters in the text and use a switch statement to determine whether … |
The End.