35,617 Topics

Member Avatar for
Member Avatar for Bud4java

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

Member Avatar for Bud4java
0
147
Member Avatar for bluesmiley

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 …

Member Avatar for paradox814
0
163
Member Avatar for Janistalis

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

Member Avatar for dlh6213
0
163
Member Avatar for JGee

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 …

Member Avatar for jwenting
0
137
Member Avatar for nabil1983

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 …

Member Avatar for Nandus
0
363
Member Avatar for sham
Member Avatar for rational611

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 …

Member Avatar for JGee
0
2K
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
362
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
137
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
202
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
156
Member Avatar for server_crash

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 …

Member Avatar for server_crash
0
190
Member Avatar for Zcoral

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 …

Member Avatar for jwenting
0
78
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
113
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
91
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
117
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
118
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 kah22

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

Member Avatar for jwenting
0
104

The End.