32,204 Topics

Member Avatar for
Member Avatar for iwlu

I'm not getting any errors but can't get the print out I should. Any Idea's? Pseudo code first, then Program Code, and the printout look; [B]Design, code and thoroughly test the following programming problem: A company pays its salespeople a base weekly salary plus a commission based on gross sales …

Member Avatar for peter_budo
0
151
Member Avatar for sarahavickers

Hi All, I am a total java novice and i am having a real problem running the following code: [code=java] import java.util.*; public class Methods { public static void main( String [] args) { Date independenceDay = new Date ( 7, 4, 1776 ); int independenceMonth = independenceDay.getMonth(); System.out.println("Independence day …

Member Avatar for peter_budo
0
105
Member Avatar for crestaldin

Hi everyone, Can somene please explain to me how to run a [B]telnet[/B] command using Java.I mean how can I achieve the following in Java : [B]telnet mailServer PORT[/B] (where mailServer and PORT will be supplied)...and subequently capture response from the server. Thanks .

Member Avatar for crestaldin
0
108
Member Avatar for laurentmas

Hi there, i'm trying to convert a C++ code about Hashtable in Java but i get these errors messages: - array required, but java.lang.String found & - array required, but java.util.Vector. Here is the C++ code first : [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] "Hash.h"[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <cmath>[/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] key;[/COLOR] [COLOR=#0000ff]char[/COLOR][COLOR=#000000] z;[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] …

Member Avatar for laurentmas
0
1K
Member Avatar for mikki2

hi, i'm new to java (being studying for a few days now) and i'm stuck on the following program. it's supposed to bring up a screen and ask me to input a number...but it always say there's something wrong with the line [inlinecode]userInput = TextIO.getInt();[/inlinecode]. can anyone help me out...thanks …

Member Avatar for iwlu
0
95
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
208
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
161
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
148
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
162

The End.