32,199 Topics
| |
hi i need some help developing a rationaltest project in java. package rationaltest; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; public class RationalDH extends Rational{ // fields protected int top; protected int bottom; BufferedReader in = new BufferedReader( new InputStreamReader(System.in)); public RationalDH(){ super(); } public RationalDH(int numerator){ super(numerator); } public RationalDH(int … | |
What is API in Java? and does C programming and C++ has it? or all software like C,C++, C#, JSP, ASP, ASP.NET has API? And what is software Library? | |
can any one tell me how to get EJB related jar files... import javax.ejb.* - showing error in eclipse 3.2.0 ide.... hw to solve it? | |
How do you find average from the following code? On average, how many stars would be displayed by the following algoithm? On average, how many stars would be displayed if nNum was doubled? [code=java]static Random randNumGen = new Random(); public static void main(String[]args) { int nNum = 10; printStar(nNum); } … | |
Hi all, I need to find a bar code reader that works with Java. Essentially, the bar code reader is going to be used to read hardware asset barcodes. The reader will be connected to a laptop. I need to be able to write Java code on the laptop that … | |
hi..im new here and to java...im supposed to align the prices of a receipt in a system.out.println..and i dont kno how. i am supposed to align the prices on the right hand side, considering the length of the item name and length of price. Again, i dont use things such … | |
This sounds awful but I've never ever done programming before in my life and I'm being forced to design 2 games (or applications maybe..) One is supposed to evaluate a maths expression (using composite design method whatever that is...) and the second is a simple Connect 4 game using either … | |
Hello, This may not be the right forum for this but here goes...I am a student and am taking programming classes( JAVA ). It seems that I can compile my programs but cannot run them. My professor said my path was incorrect and gave me the correct path settings. I … | |
hi all. i am going through the hibernate tutorials from http://www.hibernate.org but i cant build my project with the ant as specified, i have used ant befor now .there is no problem with ant. the error given is as follow ; compile: [javac] Compiling 2 source files to C:\Documents and … | |
Hi there, I try to implement a Hash class but i get these errors: - array required, but java.lang.String found & - array required, but java.util.Vector found. here is my code: [COLOR=#0000ff]import[/COLOR][COLOR=#000000] java.io.*;[/COLOR] [COLOR=#0000ff]import[/COLOR][COLOR=#000000] java.text.*;[/COLOR] [COLOR=#0000ff]import[/COLOR][COLOR=#000000] java.lang.*;[/COLOR] [COLOR=#0000ff]import[/COLOR][COLOR=#000000] java.util.*;[/COLOR] [COLOR=#0000ff]import[/COLOR][COLOR=#000000] java.util.Vector;[/COLOR] [COLOR=#0000ff]import[/COLOR][COLOR=#000000] essential.*;[/COLOR] [COLOR=#008000]//import keyboard.*; [/COLOR][COLOR=#0000ff]public[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]class[/COLOR][COLOR=#000000] HashCode[/COLOR] { [COLOR=#008000]//public … | |
I have a customer that I am designing a website for. Part of his business is he films commercials. What he wants is to be able upload a compressed version of a customers commercial to his website for them to view. However, he doesn't want the world to be able … | |
got to develop a project on gig seats booking system.just help me to know how to start with user requirements, i have some i don't if they are enough to start with need help urgently.help......:) | |
heres what i have but it wont paste the letters to the corresponding digit public String Hex(int z) { num=z; while(num>=1) { z = num % 16; hex = z + hex; num /= 16; switch (z) { case 10: hex ="a"; break; case 11: hex ="b"; break; case 12: … | |
Hi All - Can you please look at this code for me? I need to be able to have this script LOAD A URL when the checkbox is checked and the SUBMIT is pressed.... Thanks so much!!! [html]<head> <script> var checkobj function agreesubmit(el){ checkobj=el if (document.all||document.getElementById){ for (i=0;i<checkobj.form.length;i++){ //hunt down … | |
I am doing my homework and I have to create a payroll program that will loop until the user enters "stop" as the the employee's name. I also have to make the program say that only positive numbers are accepted in the event of the user entering a negative number. … | |
Help ANYONE PLEASE.. I HAVE THIS COURSEWORK WHICH IS DUE BY NEXT WEEK AND I KNOW I SOUND SORT OF UNSERIOUS BY SAYING THIS BUT I WISH I COULD UNDERSTAND JAVA LIKE PEOPLE DO BUT ITS TOO HARD.IT'S TOO LATE TO CHANGE MY COURSE AS I THOT I WUD GROW … | |
Write a conditional that decreases the variable [B]shelfLife[/B] by [B]4[/B] if the variable [B]outsideTemperature[/B] is greater than [B]90[/B] . if(outsdieTemperature > 90){ shelfLife-4; } something is wrong..can you help..? | |
I've knocked up this rubiks cube, its not fully complete. If you click and drag on the space, you can rotate the cube in any axis. If you click any of the 12 rotation buttons, you can rotate the cube, note that you can still rotate the cube with mouse, … | |
I installed Ubuntu Linux this morning and got java jdk 1.5.0_09 installed, along with Eclipse, and then I imported a project I've been working on into the Eclipse workbench. All configuration is fine, as far as I can say. My problem: The program I am working on uses the Enum. … | |
[FONT=Verdana]Hi, Fairly new to java and programming. Could anyone explain the difference between a for loop and a do while loop in relation to writing a program and typing in numbers and displaying the total. Thanks[/FONT] | |
ok i just started loops in my java class and im stuck on getting this loop working i dunno what all math to do to get these numbers for the output [I][B]97, 84, 72, 61, 51, ... 1[/B][/I] | |
Hi Everybody: I've attempted at getting Java Sun certified twice (failing both times). My first score was a 22% and my second score was a 44% (big improvement :D ). I was wondering if anybody had any help or tips for taking the exam. I really want to pass next … | |
Hello. Can anyone recommend any good Java IDE software(preferable freeware) that support latest jdk packages with user friendly environment for java development? Thank you. | |
Write a conditional that assigns the boolean value true to the variable fever if the variable temperature is greater than 98.6 . i dont understand what i'm suppose to do... can you explain what i am suppose to do please.. | |
hi. well can anyone please tell me y am i getting this error and how can i get rid of it.. [code] import java.io.RandomAccessFile; import java.io.IOException; import java.util.StringTokenizer; import java.util.NoSuchElementException; public class routing{ public static void main( String args[] ){ routing app = new routing( args[ 0 ] ); } … | |
Hi, I've been having major problems with my Internet Explorer for a while now. Anything that is a popup or requires JavaScript simply will not open- I've tried downloading Java and it doesn't make any difference, as well as fiddling about with my Internet Options. There was a website recommended … | |
I have an array below, the concept is to allow the user to enter a number and if the number is contained in the array, the program should display the number as well as the position of the number. But if the number is not present, the message program should … | |
Hi, I would like to make a terminal (non gui, the dos texty type interface) snake game and have a general idea of what to do but would like some help with the following: how do I make the walls? and how do I catch the keyboard input to move … | |
Does anyone know how to write a command to pop up the whole text file when a click a button? |
The End.