32,204 Topics
| |
How can I make use of applets while developing web pages? | |
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 … | |
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 … | |
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. … | |
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++ |
The End.