32,204 Topics

Member Avatar for
Member Avatar for sanam_1

Ok!!i have a 2d array..n i created a letterTray which is taking 7 letters from the letterbag which was already created..now in the JoptionPane in the String by giving 3 numbers..the 3 numbers will represent the row number, column number and the letter number..how do i do it??here is my …

Member Avatar for dkalita
0
94
Member Avatar for minimi
Member Avatar for solomon_13000

Direct web remoting enables the Java Script in a web browser to interact with the Java code in a server and vice versa. Hence, the java object is serialize to the client and the client will deserialize the object. My Question: Is the Java script object serialize to the server …

0
65
Member Avatar for WolfShield

Okay, I'll just post my code and see what you guys can make of it. I'm getting the error that the 'main' class could not be found, but as you can see I have it in the code. Thanks for the help! [code=java] package macey; /** * @author Mike */ …

Member Avatar for Taywin
0
372
Member Avatar for Puertorro

Hey guys, my Professor want us to come up with this code: Create a class called Student. This class should have the following twelve private data elements: String studentName String studentEmail String studentLocation int projectGrade1 int projectGrade2 int projectGrade3 int projectGrade4 int quizGrade1 int quizGrade2 int finalExam int participationGrades This …

Member Avatar for Puertorro
0
122
Member Avatar for WolfShield

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 …

Member Avatar for WolfShield
0
164
Member Avatar for newbieha

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[] …

Member Avatar for newbieha
0
110
Member Avatar for pmrg

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 …

0
35
Member Avatar for desert564

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 …

Member Avatar for jon.kiparsky
0
192
Member Avatar for chetanbasuray

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 …

Member Avatar for chetanbasuray
0
83
Member Avatar for Na'Vi

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, …

Member Avatar for JamesCherrill
0
111
Member Avatar for nickliutw

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, …

Member Avatar for nickliutw
0
134
Member Avatar for lamanne

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 …

Member Avatar for lamanne
0
304
Member Avatar for ubi_ct83

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 …

Member Avatar for ubi_ct83
0
163
Member Avatar for desert564

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 …

0
62
Member Avatar for wonder_laptop

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 …

Member Avatar for JamesCherrill
0
164
Member Avatar for newbieha

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: …

Member Avatar for newbieha
0
564
Member Avatar for HelloMe

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

Member Avatar for HelloMe
0
145
Member Avatar for MollyGirl

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 …

Member Avatar for peter_budo
0
90
Member Avatar for desert564

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 * …

Member Avatar for mKorbel
0
173
Member Avatar for HelloMe

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 …

Member Avatar for HelloMe
0
4K
Member Avatar for code07

(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)

Member Avatar for Taywin
0
91
Member Avatar for Xan

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 …

Member Avatar for Taywin
0
912
Member Avatar for sanam_1
Member Avatar for jon.kiparsky
0
61
Member Avatar for vijiraghs

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.*; …

Member Avatar for vijiraghs
0
720
Member Avatar for gingerfish

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 …

Member Avatar for gingerfish
0
167
Member Avatar for rayden150

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 …

Member Avatar for kekkaishi
0
107
Member Avatar for Dee1004

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 …

Member Avatar for mKorbel
0
217
Member Avatar for desert564

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

Member Avatar for monarchmk
0
101
Member Avatar for desert564

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 …

Member Avatar for desert564
0
89

The End.