32,199 Topics

Member Avatar for
Member Avatar for oxhaksi

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 …

Member Avatar for aniseed
0
155
Member Avatar for com spec

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?

Member Avatar for aniseed
0
57
Member Avatar for jpeterc

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?

Member Avatar for aniseed
0
39
Member Avatar for charlesguo25

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

0
54
Member Avatar for charlesguo25
Member Avatar for knifegun

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 …

Member Avatar for Phaelax
0
94
Member Avatar for kenvin100

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 …

Member Avatar for Phaelax
0
207
Member Avatar for missg82

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 …

Member Avatar for Rashakil Fol
0
134
Member Avatar for ZEEPLE

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 …

Member Avatar for sonidhanni
0
160
Member Avatar for rpjanaka

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 …

Member Avatar for jwenting
0
140
Member Avatar for laurentmas

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 …

0
89
Member Avatar for ATS

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 …

Member Avatar for josh06
0
157
Member Avatar for RoseLadouce

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......:)

0
46
Member Avatar for jimbonk8e

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

Member Avatar for jwenting
0
116
Member Avatar for jeepj27

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 …

Member Avatar for katarey
0
81
Member Avatar for ms.marty

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

Member Avatar for DavidRyan
0
129
Member Avatar for dami06

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 …

Member Avatar for jwenting
0
58
Member Avatar for THK

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

Member Avatar for DavidRyan
0
189
Member Avatar for cms271828

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

Member Avatar for cms271828
0
91
Member Avatar for Cudmore

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

Member Avatar for jwenting
0
391
Member Avatar for WillisTi

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

Member Avatar for bommavj
0
147
Member Avatar for ThUgLoRd

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]

Member Avatar for bommavj
0
85
Member Avatar for Ghost

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 …

Member Avatar for jwenting
0
745
Member Avatar for rinoa04

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.

Member Avatar for qwest21
0
130
Member Avatar for THK

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

Member Avatar for DavidRyan
0
161
Member Avatar for fastmike

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 ] ); } …

Member Avatar for DavidRyan
0
105
Member Avatar for lpyyceb

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 …

Member Avatar for stymiee
0
39
Member Avatar for Goitse

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 …

Member Avatar for cms271828
0
84
Member Avatar for hexstar

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 …

Member Avatar for cms271828
0
92
Member Avatar for k_en

Does anyone know how to write a command to pop up the whole text file when a click a button?

Member Avatar for iamthwee
0
50

The End.