32,199 Topics
| |
Hello everyone, I am trying to get an ActionListener to work in Java. On lines 310 and 312 it says 'cannot find symbol: variable calcDisplayF'. I am a complete noob when it comes to Event Handling so any help on this subject would be greatly appreciated. Here is the code … | |
Hello I want to write a loop that quit the loop if the user hits Enter or there is negative number. this is what i have so far. it only quits the loop if user enter characters. [CODE] import java.util.Scanner; import java.util.ArrayList; public class loop { public static void main(String[] … | |
Hi there, Im stuck on my assigment :s the problem is everything is compiling but the program is not doing anything. 1st I need to call repaint() if slideBlock return true and I don't know how to. 2nd problem not sure if the slideBlock method is 100% right. [ICODE]boolean slideBlock(int … | |
Correct Sequence of brackets is always of primary importance both for written programs and mathematical expressions. By correct sequence we mean that for every opening bracket there is a closing bracket. The problem is to write a program that takes a random sized (size max 15) input of brackets from … | |
I would like to draw a curve between any two points using java...I have the points from a calculation result in the program, all I need is a function that helps me to draw a curve, can any one please help me out with dis, m kind of at a … | |
I was writing a program and I wasn't sure sure how to do letter b. I have the methods and constructor but I'm not sure how to format the float. 2. Create a class called Item. a. Item will need instance variables itemID, itemName, inStore, and Price (of types String, … | |
I know this is probably seem to be very easy for you guys. I have been trying to figure this out for three hours. The requirement ask me to write a method determine whether an integer is even or not. If it is true, return true. If it is false, … | |
eish am strugling with this binary tree.huffman code and i ave an assignment,have a look on that You are given a text file. Any printable character, including digits and punctuation can be present in the file. Newlines and blank spaces can be present as well. Your job is to write … | |
hi, i would like to ask opinion and comment about my situation.actually i dont know where to locate my thread because i dont know the specific of my question. im developing a web-base system.i use 3-tier architecture.im using html n php in gui,database mysql and for the application im using … | |
I have this Caesar Cipher program, but it's decoding function is buggy. When you try to decode ABCDEFGHIJKLMNOPQRSTUVWXYZ it should return NOPQRSTUVWXYZABCDEFGHIJKLM but instead it returns DEFGHIJKLMNOPABCDEFGHIJKLM. I believe the code is in lines 36, 37, 43, & 44 and occurs when c becomes negative but I don't know how … | |
i know that i should use this to compile all the java classes . i used these and its working great. but i dont understand all of this . i did some readings and i understand now that when i use "set" , it sets the varibale name to the … | |
Hi,everyone Im new to JAVA and not sure how does recursion work in JAVA I have to use JAVA Turtle to draw snowflake here is the pseudocode. procedure snowflakePart( S, N ) : if N is greater than 0: move turtle forward S units if N is greater than 1: … | |
How can i continue a very long sentence on the second line in a JLabel? /n does not work /t does not work as well I dont want the html thing cause i have a simple application. Thank you | |
I have a program that randomly flips a quarter 100 times. The results gives me a list of heads and tails. I need the results to look like this: 100 Flips resulted in 49 heads and 51 tails. With varing numbers for heads and tails. Thank you for any help … | |
though the maortgagae cals works correctly the answers are not i columns [code] import java.io.*; import static java.lang.Math.*; import java.util.Scanner; import java.text.DecimalFormat; import java.text.NumberFormat; /** * @(#)AmortWeek3.java * * AmortWeek3 application * * @author * Week 3-Service Request SR-mf-003 * Change Request 1 * Display breakdown of monthly payments * … | |
Im planing to have several Methods that will display the question and the answer choices to their coresponding labels and cmdButtons. But somehow i get the error message "void is an invalid type for the variable" when i want to create my method below of my code (i commented the … | |
(1,1) (1,2) (1,3) (2,1) (2,2) (2,3) (3,1) (3,2) (3,3) (1) (2) (3) (4) (5) (6) (7) (8) (9) | |
hi.. im an amateur in java and im having problems in switch statements.. i would appreciate if you would help me solve this problem.. [B]Problem:[COLOR="Red"] Write a java program that will let the user input 2 colors and display the result color..[/COLOR] [/B] [COLOR="Green"][B] This is what i come up … | |
| I am doing a servlet program that connects to a MSACCESS database,retrieves data and redirects the user to another page. I find the following error java.sql.SQLException: General error Login.java accesses esql.java which retrieves data from MSACCESS server. PLease help!!! My Servlet code: Login.java [CODE=java] import java.io.*; import java.sql.*; import java.io.*; … |
here is my code: [CODE]//if any of errprLists is not equal to 0, then initialWieght equals newWeight if(errorList[0]!=0 || errorList[1]!=0 || errorList[2]!=0 || errorList[3]!=0) { for(int i=0; i<row; i++) { initialWeight[i] = newWeight[i]; } } //break the loop if all errors equal 0 //--------------------------------------------------------------------------- else if(errorList[0]==0 && errorList[1]==0 && errorList[2]==0 … | |
Hi can someone please indicate where is the error in the php code i wanted to sort of translate from java to php pleaase help: This is the Java Code: [CODE]public class Break{ public static void main(String[] args){ int i,j; System.out.println("Prime numbers between 1 to 50 : "); for (i … | |
Hi everybody. I'm very new in programming languages and I have this project that from an input text file writes the frequency of the lemmas in the output file. I need to modify this and to make it work for an directory with text files as an input. I think … | |
any time a number is present in a word inflate its value by 1........ for eg, input anyone up four tennis output anytwo up five elevennis | |
i really need help with this program i am finding a saddle number of a 2-d array which is the min value in a particular column and maximum value in its row.......and my error with the code is arrayindexoutofboundexception eg input num=4 7 6 9 10 5 3 4 6 … | |
I have created to GUI interfaces using netbeans drag n drop. The first interface has a button upon clicking which opens the second interface. I want to close the 1st interface as soon as I click the button in it so that only the second interface is displayed. How can … | |
Hey peeps, I want to simply compile this program but i keep getting the error message: java.lang.ArrayIndexOutOfBoundsException Any help? :) [CODE] import java.util.ArrayList; import org.htmlparser.util.*; import org.htmlparser.*; import org.htmlparser.tags.*; import org.htmlparser.filters.*; public class you { static String s; static ArrayList <String> filter(String s,ArrayList <String> m) { ArrayList <String> m1= new … | |
| Hi Guys, Please i need someone who could hlp me write a simple ATM program for accepting PIN, Checking Balance and Withdrawing.. |
Hi, I have a web application using JBoss, Java and struts. I've managed to upload the file using struts, but is it possible to view the data from the uploaded file BEFORE inserting the data into database? or do I need to store them into a temp database first, then … | |
The End.