32,199 Topics

Member Avatar for
Member Avatar for bonafos
Member Avatar for bonafos
Member Avatar for Kimmelivim

Hi! I'm creating a guessing game where I ask the user to guess a number between 1-1000. The output where the computer asks the user for a number is contained in a [I][COLOR="Green"]do loop[/COLOR][/I]. The problem I'm having is that I have a high score list and in the high …

Member Avatar for Kimmelivim
0
164
Member Avatar for johndoe444

In the J2EE tutorial from sum site, it is often mentioned this term. For example, the timersession example: "Because it's a business method, setTimer is exposed to the local, no-interface view of TimerSessionBean and can be invoked by the client." Thanks.

Member Avatar for swosh
0
155
Member Avatar for nwalser

So i am suppose to write two methods called superPop and superPush. superPop() pops a StarLine object from the stack, sends it to System.out.print, and returns it. superPush() pushes a StarLine object onto the stack, sends it to System.out.print, and returns it. I am continuing to try new things but …

Member Avatar for kramerd
0
197
Member Avatar for bonafos

Salary calculator: this program will ask for the number of hours you have worked and compute the salary including the overtime. Note: working hour over 45 is considered an overtime on this example. plss!.. give me the code. pls!..

Member Avatar for sirlink99
-1
73
Member Avatar for john7890

.how would able to show monthly balance .would like to charge a fixed a fee each month .would like to charge withdrawal fee import java.awt.*; import java.awt.event.*; import javax.swing.*; class GuiAccTest extends Frame implements ActionListener { Label lab=new Label(" "); Label lab1=new Label(" "); TextField t[]=new TextField [4]; Label l[]=new …

Member Avatar for Akill10
0
104
Member Avatar for ssubnel

This is my homework for a Java class. I get a perfect score followed by a query as to why I didn't use a void method. The answer is I don't understand the difference. Can someone illustrate for me how it would look. I need a better grasp of this. …

Member Avatar for ssubnel
0
160
Member Avatar for john butler

Hi Everybody, I am a new joinee as an Android Application Developer. Now I have a duobt that "Does the Android Application Development uses the J2ME platform, I mean can we call the Android Programming as the J2ME programmimg or the Android Programming has nothing to do with J2ME or …

Member Avatar for Hasan_DMT
0
220
Member Avatar for stamford47

how would i be able to show the end of month balance using pop up window and also would like to charge a fixed a fee each month and withdrawal fee import java.awt.*; import java.awt.event.*; import javax.swing.*; class GuiAccTest extends Frame implements ActionListener { Label lab=new Label(" "); Label lab1=new …

Member Avatar for cale.macdonald
0
364
Member Avatar for y0yie_333
Member Avatar for kosalaudara

hello iam a student of following computer engineering in srilanka.I haven't a good knowledge about java.Can you help me to learn it from begining.O.K.Thankyou.

Member Avatar for dragonshadow001
0
81
Member Avatar for selfuser

i need to develop a java project (UNO card game) using Graphical user interface and Database access... i dont knw how to do it... can any1 help me solve out this problem... am new to java... plz help me :) asap

Member Avatar for masijade
-1
54
Member Avatar for mahes_

I was reading through my text book on Java Programming...It showed two class methods compareTo() and equals()...It seems to be that there is no difference between this two...Can someone pls clear me on this..Thank You!

Member Avatar for rvntdhillon
0
220
Member Avatar for jenzelcarmel

will someone help me pls with my case study, i need it very urgent this is my code for shortest remaining time first or the preemptive sjf. i need to know how to make gantt chart. [CODE]import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class SRTF extends Applet implements …

Member Avatar for javaAddict
0
2K
Member Avatar for Dean_Grobler

Hello! Attached is a file (GUI.png), I quickly did this in excel so.. It looks pretty crappy obviously. But when you take a look at the image and the layout of the components etc. What would you say is the best LayoutManager to use with this? GUI design is fun, …

Member Avatar for Adil Ahmed Zeb
0
131
Member Avatar for aravind rao

Hello Consider this scenario: [CODE]File file;[/CODE] and later [CODE]file = new File("Hello.txt");[/CODE] [CODE]file = new File("hi.txt");[/CODE] As you all know, this will create two text files in java. How do I delete one of these files, as in if I only wanted to delete hi.txt?

Member Avatar for javaAddict
0
89
Member Avatar for Jobie111

Hello, First off, thank you to anyone who helps me in advance. I am about as new as one can be to Java, and am having some troubles. In the below code, the goal is to create a fraction. The rules are the denominator has to remain positive and I …

Member Avatar for javaAddict
0
111
Member Avatar for bonafos
Member Avatar for javaAddict
0
318
Member Avatar for pankajagar2002

Hi, I am working with drools guvnor. Basically drools is a rule engine that helps to create rules. I want to calculate the nodes or find the flow of rule path that is taken by the guvnor to make any decision in rule. Please help if possible. Thanks in advance.

Member Avatar for masijade
0
73
Member Avatar for rob3097

Exception in thread "main" java.lang.IllegalArgumentException: Cannot format given Object as a Number at java.text.DecimalFormat.format(DecimalFormat.java:487) at java.text.Format.format(Format.java:140) at McVrideMortgageCalculator.Main.main(Main.java:69) The above statement is the error that occurs when running code. [CODE]package McVrideMortgageCalculator; import java.text.*; //Allows text formatting and used for formatting currency in this program public class Main { public static …

Member Avatar for hmho
0
138
Member Avatar for Katana24

Hi guys - quick question I have created a class that creates an array of JButtons and places them onto the panel. That all works well but what I want is for the panel, placed on a frame container, to resize to fit the amount of buttons added. The total …

Member Avatar for masijade
0
63
Member Avatar for Guna16

Can anyone send me the code for downloading software using java in a search engine? Thank you in advance.

-1
57
Member Avatar for hazeeel

Hey guys How do I do a calculation of coordinates X,Y,Z between 2 files. Eg. File 1 has about 1000 lines and so does File 2 I have done the pre processing for the coordinates that are needed to be extracted out. They are kept in my 2D arrays. This …

0
52
Member Avatar for musikluver4

I would like to be able to divide this java code up into more than one file, so I can reuse the code for other programs, but I'm not sure what I can grab. Right now, I can't make another program using this code, as you see the WHOLE program …

Member Avatar for musikluver4
0
168
Member Avatar for notuserfriendly

I am reading from a file and while i know how to work with those i am trying to read the line. get all the fields. then store them in a class with those fields. then store that object in a vector. Heres how i deal with reading the stuff …

Member Avatar for notuserfriendly
0
143
Member Avatar for jems5

Why does parsing a float into array cause precision loss error. I am trying to sort data from a text file that contains text, integers and float numbers. Using the for statement causes loss of precision errors. How do I correct this please. [CODE] float y; for (float k = …

Member Avatar for BestJewSinceJC
0
121
Member Avatar for Fadam360

Hello all, i have a homework lab/assignment due by 12 tonight. It needs to print out a drawing panel and request 2 names from the user. It should then have a way to take the 2 names entered and create 2 new names in the drawing panel: e.i. "John" would …

Member Avatar for Fadam360
0
192
Member Avatar for bookworm619

I am having problem with calculating the angle using sin. So far, I got the literal of numbers, which is not making sense. I am supposed to match my answers with this: Set up new triangle with coordinates (0.0, 0.0), (3.0, 0.0), (3.0, 4.0) Area: 6.0 Parimeter: 12.0 Length side …

Member Avatar for tong1
0
156
Member Avatar for sciprog1

Hello Members, I have an Applet which calls a JFrame. Once the JFrame shows up, is there a way to make the Applet invisible? Thank you!! sciprog1

Member Avatar for sciprog1
0
33

The End.