32,199 Topics

Member Avatar for
Member Avatar for MichaelCJ10

I need my overall data to all be output as double, but my counter is an int, and i imagine you cant use a double as a counter, so when it goes to compute my data, theres a mismatch between my counter and the rest . i need a way …

Member Avatar for stultuske
0
298
Member Avatar for MichaelCJ10

I need everything to come out as a double rather than an int. I dont know how to do this other than creating lots of variables! Is there a way i can convert? my counter is causing the problem but i dont think theres another way to do it.The program …

Member Avatar for MichaelCJ10
0
331
Member Avatar for makehaste

Greetings Everyone. I'm working on a program that will take the number of calories and grams of fat, and give the user the percent of calories from fat. The problem arises when I use the Calculate button. [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; public class FatGramsPanel extends JPanel { …

Member Avatar for makehaste
0
297
Member Avatar for MichaelCJ10

I want to create a code that will allow me to calculate bonuses based on the 10 salarys. i need if statements for this, i need to then assign the new value to my other array i have set up called total, and then i need to display that as …

Member Avatar for zeroliken
0
317
Member Avatar for syfr

Hello. I got an assignment and I've ran into some troubles. I have 3 classes. The first class could be labeled as the main class, and the other two classes must be linked to the first one. The 1st class is named "Holiday" and has 2 key attributes: tour_guide and …

Member Avatar for syfr
0
421
Member Avatar for javaprog200

Hello, I am working with the AudioClip class. It has methods for playing, stopping and looping an audio file (.wav/.au). Is there a way I can check when an audio file has completed playing? The stop() method is void. Is there any other class I can use? Thank you!

Member Avatar for javaprog200
0
85
Member Avatar for raul8

Hi, please look the following code and help me solve the question I mentioned in Comment([B]Line number 85[/B]) below: [CODE]import java.io.InputStream; import java.util.HashMap; import java.util.Map; import org.jacoco.core.analysis.Analyzer; import org.jacoco.core.analysis.CoverageBuilder; import org.jacoco.core.analysis.IClassCoverage; import org.jacoco.core.analysis.ICounter; import org.jacoco.core.data.ExecutionDataStore; import org.jacoco.core.instr.Instrumenter; import org.jacoco.core.runtime.IRuntime; import org.jacoco.core.runtime.LoggerRuntime; public class TestClass { public static class TrgClass { …

Member Avatar for NormR1
0
209
Member Avatar for javaprog200

Hello, The following is a bouncing ball applet. When I do double buffering (variables, g1 and image), I still see the flickering . I would be grateful for any help. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.lang.Thread; public class Ball_Bounce extends JApplet implements Runnable { private Thread blueBall, redBall; …

Member Avatar for javaprog200
0
200
Member Avatar for bhallarahul

javax.naming.NameNotFoundException: Name evn is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:770) at org.apache.naming.NamingContext.lookup(NamingContext.java:140) at org.apache.naming.NamingContext.lookup(NamingContext.java:781) at org.apache.naming.NamingContext.lookup(NamingContext.java:153) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152) at javax.naming.InitialContext.lookup(Unknown Source) at listener.MyContextListener.contextInitialized(Unknown Source) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at …

Member Avatar for bhallarahul
0
340
Member Avatar for ujjwale

How to we know that there is the error of javac. "I studied that javac is not internal or external command". This is the error so how do we know that this error has evolved?

Member Avatar for javalover
0
135
Member Avatar for libran

The code on which I am working, suppose to read the contents of a file "applicants.txt" linewise and store it in a string array. Each element of array should hold one line and so on. I also want to automate the code so that when end of file is reached …

Member Avatar for stultuske
0
1K
Member Avatar for shootingrubber

Code 1: [CODE]public class Ticket { private int nextSerialNumber = 100; private int serialNumber ; public Ticket () { serialNumber = nextSerialNumber; nextSerialNumber = nextSerialNumber + 1; } public int getSerialNumber () { return serialNumber ; } public static void main( String [ ] args ) { Ticket t1, t2, …

Member Avatar for stultuske
0
147
Member Avatar for TrickyT

I need to use a GUI for a program (with a main, superclass and subclass) that I've already written (am quite proud of actually. LOL). I'm super new at this so I want to keep it simple and just display the output of my program (an array of inventory objects) …

Member Avatar for stultuske
0
137
Member Avatar for jadeplaza

Pls. help me to revised my code , i base my java calculator code on youtube tutorial but it was denied because almost half of our class base their code on the youtube tutorial and i need to pass the code by monday.or if possible , can you give me …

Member Avatar for stultuske
0
213
Member Avatar for raym.mart

can anyone help me out with the errors .. please [CODE]import java.io.*; import java.util.*; class Directory implements Comparable { int id; String name; String address; int phoneNo; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } …

Member Avatar for raym.mart
-1
249
Member Avatar for TIM_M_91

Hi guys well I have two class's 1 class for my methods and another class for my GUI. In my method class I have my update statements for my database and in my GUI class I have obviously my gui and all my buttons that will produce a result when …

Member Avatar for stephen84s
0
181
Member Avatar for vgpans

Hi, I've used g.drawRect(----) and some other stuffs and happily accepted o/p but really want to enhance myself in knowing how to code it if I want to draw the same figure in reverse direction.

Member Avatar for stephen84s
0
85
Member Avatar for xeffer
Member Avatar for raym.mart

NEED HELP .. where can I do start if I want to create a simple application that do have a record file and a java file ? any suggestions or recommendations

Member Avatar for raym.mart
0
223
Member Avatar for asif49

I need some help with a project that I'm working on. I have to make a program which can store hierarchical data to represent an employee referral system (and who has referred who/who was referred by whom). This needs to be able to traverse both ways, I.E. Bill has referred …

Member Avatar for asif49
0
101
Member Avatar for LdaXy

i was writing some code for a small project i'm working on and form somke reason, it never displays the main function. it just makes the user input 7 times before crashing. any ideas? i can't seem to locate my error. [CODE]package rtnasm; /* * RTNASM - n64 assembler * …

Member Avatar for ejosiah
0
287
Member Avatar for nilay84

Hi Everyone, Does anyone know how to add the user input into an array in java. for instance I have a table of 3 columns and 4 rows the 3 column is designed to allow the user to input 1 or 0. so whenever they typed in anything I want …

Member Avatar for Syrne
0
127
Member Avatar for wonderlandslost

So I'm writing a program that has a main class ArrayDrawer and two classes; square and triangle. Currently, this is what I have; [CODE] public abstract class ArrayDrawer { //Global Data /** * Create array with object scope to store squares in */ protected Square[] squares = new Square[10]; /** …

Member Avatar for NormR1
0
239
Member Avatar for lena1990
Member Avatar for 03hasnam

want to append information onto a file based on user selection of minutes (1 min, 15, 30, 45min etc) through radio buttons. for each radio button there are case in switch statement. I am finding it difficult to update the file on a regular interval, continously, does anyone know how …

Member Avatar for NormR1
0
88
Member Avatar for nidheeshkumar.r

hey, im doing a project on processing images and i'd like to extract the features of an image stored in databse.How can i do that? anyone help..,please..

Member Avatar for NormR1
0
1K
Member Avatar for MohEzzat

I ask for help if any one know how to filter words from text file. if the file contain(book,books,booking,..)I want the filter to retrieve only book and booking also if it contain(get and got)choose only the verb "get". any help Thanks.

Member Avatar for stultuske
0
188
Member Avatar for jackbauer24

Here is my problem:- On my desktop, there is a folder called "Test." In Test, there is a folder called "toUse." In "toUse," there is a java source file called "Test" and three folders, namely "Print," "SwingFrame" and "TextFileWriter." The source file for "Test.":- [CODE]package Test.toUse; import Test.toUse.Print.Printer; public class …

Member Avatar for NormR1
0
108
Member Avatar for javitis

Hello to everyone! I am working on a simple application like a search engine.It searches in an index(a txt file with filenames). If a match is found, it displays the complete path where the keyword is contained and opens the path. It's a movie catalog and searches for the movie …

Member Avatar for stultuske
1
297
Member Avatar for XTMercenary

I'm creating a tv schedule for a hotel and need to be able to fill the schedule with particular programs that take up various amounts of time each slot is 30 mins so a film with a 1hr 30 min run time would take up 3 slots but i'm not …

Member Avatar for XTMercenary
0
182

The End.