35,617 Topics
![]() | |
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 … | |
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, … |
The End.