35,617 Topics

Member Avatar for
Member Avatar for hurdy011

the code that is attached it what i have done so far but dont seem to be able to get the test file to get it to display the informationthe code i have is shown below import java.io.*; import java.util.*; public class league{ private static final int MAX_TEAMS = 50; …

Member Avatar for hurdy011
0
105
Member Avatar for Dounia

:!: Please look at all my message it is not long as it seems. My question is at the end and thank you in advance. Here is a small class called Record that is a utility class for the InventorySet class. final class Record implements Comparable { /** * The …

Member Avatar for Dounia
0
167
Member Avatar for MrScruff

I guys and girls - im a MrScruff and found your forums when searching for some java problems. It looked like a nice place so i decided to join up! Heres my first java question which has had me perplexed for 2 days considering im sure it should be simple. …

Member Avatar for jwenting
0
271
Member Avatar for Eclipse

[QUOTE]P = R*P*(1-P) Input: R (growth rate parameter) Double values between 0 and 10. Input: P (population) Double values between 0 and 1. Output: P (New population) on the console in rows of five numbers the exit conditions are the population becomes extinct or stable. Extinction occurs when the new …

Member Avatar for jerbo
0
158
Member Avatar for George2

Hello everyone, I am wondering what is the most effective approach of retrieving key by value in a Java build-in Hashtable. Can anyone provide sample source codes? Thanks in advance, George

0
62
Member Avatar for George2

Hello everyone, Using join can control how much time will we wait for a specific thread to accomplish its execution. I am meeting with a new scenario, which is a little different. My requirement is that I want my main thread starts several threads at the same time, which will …

Member Avatar for George2
0
142
Member Avatar for rohit_macharlra

[COLOR=Navy]hello everybody i developed a player using JMF in java. it is unable to play MPEG4 format. any one help me how to make my player to play MPEG4 format files[/COLOR]

Member Avatar for vrc_sekhar
0
133
Member Avatar for billfrost

Hi I have this html page in the same directory as the ilookpano.zip file as well as the int.caddy.jpg, why is it not working? I would be most gratefull if some one can help. I found this applet on someone else's site and just downloaded the .zip file which has …

Member Avatar for billfrost
0
92
Member Avatar for vrc_sekhar

Hello EveryBody, I ve Created a JMF supported Audio/Video Player, now i want to set presets like Rock,Jazz,etc. for my player using JMF API. Can anyone help me out in this regard.

0
53
Member Avatar for matt_5104

I'm having a problem with a GUI i'm building. I have a separate class called Calculations.class which does nothing except hold certain variables and do calculations with them. One of my classes requires a user to enter numerical data, and when a button is pressed, these variables are set in …

Member Avatar for tozaheer
0
124
Member Avatar for joey15

I have to add to an exisitng Java program the code for the DSW algorithm to balance a binary tree. I am relatively new to programming so I dont know where to start. Does anyone know where I can find an example of the code? Thanks Joey :-|

Member Avatar for joey15
0
995
Member Avatar for grifflyn

Hi i have written a program to identify all the vowels in a sentance and need to output the number as Stars. at the moment it is outputting the number how would i tell the program to output 5 stars instead of the number 5 this is what i have …

Member Avatar for grifflyn
0
110
Member Avatar for psylocke

i have a public class named as clsbanking using JFrame, and then this frame has a menubar, that has FILE menuitem in it. the FILE menu has an Exit option which will actually close the whole frame for termination, unfortunately my codes doesnt work, what should be my code then. …

Member Avatar for psylocke
0
140
Member Avatar for alexis

OK here is the deal...ive looked and looked at my java book...i am in oracle 2 this year this will be my 1st year...i am doing allright in it...as long as the book can help me...but see i cant find these answers...i have found 1, 2, 3 but not the …

Member Avatar for jwenting
0
105
Member Avatar for Programming sta

i have been asked to write a program to detect 3 classes of virus worm etc.. and remove them in any language of my choice but i do not have an idea how to do this and would much appreciate if some one please advise me!!!!

Member Avatar for BountyX
0
188
Member Avatar for Darkfoxx

Hello. I have made a program that rolls a pair of dice and then calculates the percentage of time a number has come up (see output on image). I am having a problem getting the percentages right...mostly because I calculate the average...how would I get the percent??? However, the main …

Member Avatar for Darkfoxx
0
120
Member Avatar for LoLo

Need help with making this work. I can't get the System.format (prepayment) to work. class Mortgage { static NumberFormat fmat = NumberFormat.getCurrencyInstance(); public static void main(String args[]) { String input_amt = JOptionPane.showInputDialog("Enter loan amount: "); double loanAmount = Double.valueOf(input_amt).doubleValue(); String input_rate = JOptionPane.showInputDialog("Enter rate: "); double interestRate = Double.valueOf(input_rate).doubleValue(); String …

Member Avatar for LoLo
0
119
Member Avatar for Dounia

:confused: Hi, I have this homework to do and I have to solve a method called: public Collection toCollection(). Here is what i solved so far: final class InventorySet { private Map _data; int thesize; InventorySet() { // TODO _data = new HashMap(); } /** * Return the number of …

Member Avatar for Dounia
0
168
Member Avatar for cltc72

i need to a sub class for the boat rental but i am not sure how to do it i will give the code and it needs to inherit to the parent class can somw help out

Member Avatar for Narue
0
116
Member Avatar for mellinda

hia, the below program is a Simulation of Producer-Consumer Problem using Race Condition.Please can anyone help me to finish this program in java language.Thanks a lot lux melxxx Producer/Consumer code int BUFFER_SIZE = 100; int count = 0; void producer(void) { int item; while(TRUE) { produce_item(&item); if(count == BUFFER_SIZE) …

Member Avatar for jwenting
0
135
Member Avatar for freesoft_2000

Hi everyone, I am trying to export a jcomponent as an image. The program all works but seriously the the quality of the saved image is really disgusting. The words seems to be blurred. I think i have to use rendereing hints but i am not sure how there work …

Member Avatar for jwenting
0
115
Member Avatar for freesoft_2000

Hi everyone, I am trying to use the kernel class to brighten and blur jpeg images but it does not seem to work although the the program compiles without any errors. Here is the function i use to sharpen my jpeg images public BufferedImage imagesharper(BufferedImage SourceImage2) { BufferedImage Image4 = …

0
61
Member Avatar for freesoft_2000

Hi everyone, I am trying to do a simple copy and paste function for a jtable I am sometimes able to copy and the paste function does not work at all. The class i have implements the ClipboardOwner. I am using the default table model as the model of the …

0
52
Member Avatar for freesoft_2000

Hi everyone, I am trying to rotate a jpeg image but it seems that the image gets clipped and there seems to be an ugly black rectangle drawn behind the image after it has been rotated by me. I am really not very sure what i am doind wrong. Here …

0
117
Member Avatar for LoLo

double prepaymentAmt = Double.valueOf(input_prepayment).doubleValue(); This is what I have and is not working: String message = String.format("Loan Amount:"+" "+fmat.format(loanAmount)+"\n"+ "Interest Rate:"+" "+ interestRate +" %% \n"+ "Term:"+" "+years+" years\n\n")+"\n"+ "Prepayment: "+" "\n";

0
59
Member Avatar for humphries1

hi i have problem with link through in hotmail the email is from times online if i click on link line i cant get news and on the botton of the page it showes javascript:openwith( thats all that happens thanks in advance humph

Member Avatar for humphries1
0
91
Member Avatar for Maria5683

I am getting the following syntax messages: `illegal start of expression public void display_menu()` (with arrow pointing to the 'p') and also `';' expected } (with arrow also pointing to the })` This is my code for the first error: public class InsyStudent extends Student { public InsyStudent( String fName, …

Member Avatar for jwenting
0
178
Member Avatar for psylocke
Member Avatar for nanosani
0
102
Member Avatar for cuckoo

hi, i am doing a project on steganography,and here ,i've gotta browse and then display images in the window.i dont know how to get the image as it is an application and not an applet.hence,i cant use getImage().plz help me.

Member Avatar for Phaelax
0
114
Member Avatar for freesoft_2000

Hi everyone, I am trying to write a simple program in which i can either mak an image sharper or darker. The thing is my program always crashes when it is run although it compiles without any errors. The error is as follows: An unexpected exception has been detected in …

0
57

The End.