32,204 Topics

Member Avatar for
Member Avatar for sham
Member Avatar for smudge

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 …

0
97
Member Avatar for jwenting

[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 …

Member Avatar for meabed
0
360
Member Avatar for Gink

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

Member Avatar for paradox814
0
135
Member Avatar for nabil1983

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 …

Member Avatar for paradox814
0
148
Member Avatar for jengels

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(); …

Member Avatar for paradox814
0
198
Member Avatar for sridhar_reddapa

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 …

0
91
Member Avatar for George2

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 …

0
62
Member Avatar for Bud4java

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 …

Member Avatar for Bud4java
0
93
Member Avatar for grifflyn

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 …

Member Avatar for jwenting
0
155
Member Avatar for buggytoast

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 …

Member Avatar for jwenting
0
149
Member Avatar for ohnbabygal

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?

0
76
Member Avatar for George2

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

Member Avatar for George2
0
2K
Member Avatar for jimbob8472

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

Member Avatar for paradox814
0
154
Member Avatar for sham

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.

Member Avatar for paradox814
0
112
Member Avatar for NSCelica

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 …

Member Avatar for NSCelica
0
111
Member Avatar for jimbob8472

: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 …

Member Avatar for Phaelax
0
92
Member Avatar for jimbob8472

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 …

Member Avatar for jimbob8472
0
88
Member Avatar for peterb92

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 …

Member Avatar for peterb92
0
116
Member Avatar for drunkpanda

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 …

Member Avatar for aj.wh.ca
0
117
Member Avatar for jimbob8472

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. …

Member Avatar for freesoft_2000
0
138
Member Avatar for SyLk

does java have a ' system ("PAUSE") ' like c++....if so what is the syntax to do it. ty

Member Avatar for freesoft_2000
0
3K
Member Avatar for higherGround574

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?

Member Avatar for server_crash
0
178
Member Avatar for tat2dlady

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.

Member Avatar for tat2dlady
0
228
Member Avatar for nabil1983

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 …

Member Avatar for freesoft_2000
0
110
Member Avatar for tat2dlady

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 …

Member Avatar for freesoft_2000
0
104
Member Avatar for kev269

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 …

Member Avatar for freesoft_2000
0
170
Member Avatar for Bud4java

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 …

Member Avatar for server_crash
0
176
Member Avatar for stupidenator

Hey everyone. I was just wondering what people think is the best environment for editing and compiling code. Currently, I use JCreator.

Member Avatar for freesoft_2000
0
288
Member Avatar for Ghost

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++

Member Avatar for tonakai
0
197

The End.