32,204 Topics

Member Avatar for
Member Avatar for treyd

Okay here is the just of my assignment: Write a test program that creates an Account object with an account ID of 1122, a balance of 20000, and an annual interest rate of 4.5%. Use the withdraw method to withdraw $2500, use the deposit method to deposit $3000, and print …

Member Avatar for masijade
0
288
Member Avatar for mrnutty

Does anyone know how to correctly add a 3rd party library to NetBeans? I have NetBeans 6.7.1 The library is from this site : [URL="http://wps.aw.com/aw_sanders_oopjava_1/36/9390/2403930.cw/index.html"]Link[/URL]. Its called wheels, and its for my class. It comes in a zip file. What I tried was this : 1) Set the zip file …

Member Avatar for masijade
0
866
Member Avatar for destined2bbless

You have been asked to develop an application that will read book information from a text file to determine which publishers you use. The application will print a report of all unique publishers used. Johnny Smith xxxxxxxxxx Harper Collins Freedie Jones xxxxxxxxxx Harper Collins Lilly Laine xxxxxxxx Penquin Bobby Crosby …

Member Avatar for ~s.o.s~
0
107
Member Avatar for imclumsy

Hi I am trying to sort a generic object. When the object is created, it is created with three generic parameters and I want the parameters to be sorted when it is created. Here is my code: [code] import java.util.*; public class SortedTrio<T> extends Trio { T firstST; T secondST; …

Member Avatar for ~s.o.s~
0
231
Member Avatar for LKH

my program cant be resert to ask the user input data again after while(ans.equalsIgnoreCase("y"); pls somebody can tell me!

Member Avatar for exception
0
43
Member Avatar for Nollyvenon

How do i recode a china phone to show customize features like startup images, animations and sounds. this is my midlet code for image [code]//MIDlet-Name: startupScreen //MIDlet-Version: 1.0 //MIDlet-Vendor: MyCompany //MIDlet-Jar-URL: StartupScreen.jar //MIDlet-1: startupScreen, startupScreen //MicroEdition-Configuration: CLDC-1.0 //MicroEdition-Profile: MIDP-1.0 //MIDlet-JAR-SIZE: 100 import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class startupScreen extends MIDlet …

0
64
Member Avatar for freelancelote

Hi, I'm trying to print a string on the center of a window using GridBagLayout. All I see printed is a part of the string I expect (the current month) instead of the whole string. I don't seem to be able to spot where the error is and I'd appreciate …

Member Avatar for freelancelote
0
207
Member Avatar for harshadap

how can i make os independent .exe file in java. I am using netbeans IDE for developing java project

Member Avatar for stephen84s
0
86
Member Avatar for jay1992
Member Avatar for masijade
0
231
Member Avatar for amitabhpandey

plz tell me that how we can call one frame window from another frame window

Member Avatar for masijade
0
107
Member Avatar for jrosh

When i run a java file through comand prompt it says.. "Unsupported class exception error"...Bad version number in .class file. (compilation is ok. this happens @ runtime) i checked the versions of jdk & jre . Both are same which is 1.6.0_01. When i compile and run the same code …

Member Avatar for peter_budo
0
105
Member Avatar for rajuchacha007

HI all, I would like to know about Network data mover used for Java APIs. Please do let me know where I can collect technical quality information about it? Thank you very much. Regards.

Member Avatar for masijade
0
498
Member Avatar for Little Bunny

Hello All. Can someone tell me how I can set the first day of the year in the Java Calender? For example, if the first day of the year was 16th September 2007, then that would be week 1. so the 24th september 2007 would lie in second week,so on …

Member Avatar for masijade
0
64
Member Avatar for T'Scoopz

Hello! So, I created my own Arraylist class called myArrayList. I need to read a file that contains strings (which are just short phrases) into myArrayList. I created a class called Phrase that are to be the objects that will be stored into the Arraylist. I also have a class …

Member Avatar for sneaker
0
82
Member Avatar for Abibina

I m creating the page which contains username n password.. I dont know how to store the username n password in a file n to display an error message if the username or password is wrong .. how to do this.. ll anyone explain me using a simple program..?

Member Avatar for javaAddict
0
112
Member Avatar for hery

Hello, all I want to question for all. How to i make script like monitoring real time market data using Java, ex: [url]http://www.rabotransact.com/wps/portal/rtwpub[/url]. Can you help me??? Thank's

0
66
Member Avatar for dewyShaikh

hi, m doing a project on java using matlab......but i dont know the connectivity between them........... can u plz tell me....... thx.

Member Avatar for masijade
0
179
Member Avatar for harshadap

I am developing sudoku. Random numbers are generating but i want to place rthem into particular fields. here is my code [code= java] package sudoku; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.GridLayout; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.util.Random; import javax.swing.BorderFactory; import javax.swing.JComponent; import javax.swing.JPanel; import javax.swing.JTextArea; import javax.swing.JTextField; import …

0
45
Member Avatar for nicolek808

hi :) This program requires me to read user input from the commandline (a int and a string) and use recursion to print out the the first letter of the string x times based on the int user input: I have this so far, but it seems print out just …

Member Avatar for VernonDozier
0
141
Member Avatar for javanub123

i started learning java yesterday and its my first programming language to learn. ive covered most of the basics and such but im stuck at one thing i have a program written that asks for a password i want it to compare the user input to the actual password using …

Member Avatar for javanub123
0
95
Member Avatar for herms14

guys..I'm in my senior year and I need to make a senior project by next semester. I'm planning to make a mobile application that will send the data to a computer and store it in a database and finally output it in a webpage or something. the problem is I …

Member Avatar for hansal
0
172
Member Avatar for droeph

Hello, I am new to the forum and to Java have no programming experience. try to write a program that enters a year and month as integers and displays the number of days in the month. here is what I have written any help would be much appericated. import java.util.Scanner; …

Member Avatar for javaAddict
0
165
Member Avatar for alsoumhi

Hi all, I am having a problem in JSP, it is very simple. I have a java class and a JSP program, my JSP program will call the a method of java program in order to work as one complete application .however, I got an error says undetermined method. Based …

Member Avatar for ~s.o.s~
0
58
Member Avatar for karen.tao

When I enter a string that it not in the list, I get this error in my enum CrimeType class: IllegalArgumentException, no enum const class CrimeType.a(in java.lang.Enum [code] public void enterCrime() { Crimes crimes = new Crimes(); System.out.print("\t\tEnter crime: "); crimeName = In.nextLine(); if("murder".equals(crimeName) || "arson".equals(crimeName) || "assault".equals(crimeName)) { crimes.daysToStay(3); …

Member Avatar for masijade
0
272
Member Avatar for anu_anu

Hi All, I am using jdk1.6, tomcat 5.5 and eclipse 3.3. While starting tomcat from eclipse i am getting an error as "Could not find main class.Program will exit". Please suggest. Thanks, Anu

Member Avatar for Salem
0
83
Member Avatar for heels

Hi, I am facing problem with my coding but can't seems to find the problem with it. Can someone guide me? [code] //for loop for (line=1; line <=height; line++) { for(col=1; col <=line; col++) { if (line%2 !=0)// odd line { if (col%2 != 0)//odd line,odd col System.out.print(A); else //(col%2 …

Member Avatar for heels
0
219
Member Avatar for topest1

Hello, I am beginner in Java we are going to develop a chat application But I don't know how to implement the network connectivity..././../ :confused: I googled, and I came to know something like Socket Programming.... Actually I don't know how the chat application works I want to store the …

0
85
Member Avatar for shikharana

Hi. I'm having alot of trouble completing this part of my assignment. can u please help me with it the ques is : Implement the following buttons: Rect, Oval, Image, Colour, and Clear. You do not need to have the Text button or its associated textField. Your Rect, Oval, and …

0
31
Member Avatar for masana1844
Member Avatar for masijade
0
43
Member Avatar for fareast87

Hi everyone! I'm developing some kind of program of handling an images and someone suggesting to me to use PixelGrabber class. I try to use it but I don't know what its return value. Is it some kind of integer value on pixel number 1 or any idea? And where …

Member Avatar for fareast87
0
99

The End.