32,199 Topics

Member Avatar for
Member Avatar for emilio

my class has an enum definition as property, and an enums type array as property like this: [CODE=java]public class GameBoard implements Serializable , Cloneable { private final int N = 8; public State[][] Board = new State[N][N]; public enum State { empty,player1,player2; }[/CODE] i want to write a clone method …

Member Avatar for emilio
0
94
Member Avatar for W@n

Hi, i am facing a problem with storing data into linked list. I have previously store the data read from the text file into an array but now my assignment require me to store all this record into a linked list. Can anyone help? May i know how to do …

Member Avatar for W@n
0
3K
Member Avatar for letlet_pogs

hello guyz,,who knows how to tokenize???i mean,,i am about to start to make "String Calculator" but i don't know how to tokenize,,,do you know any sites that could explain best about tokens??thank you ahead,,,,

Member Avatar for Ezzaral
0
143
Member Avatar for dickersonka

I am determining what method to call by using the runtime class. My problem is whenever I pass in a null object, obviously it will throw a null reference exception. How are you able to determine at runtime the class of a null object. Although its null i need to …

Member Avatar for dickersonka
0
1K
Member Avatar for BlackNinja

hi im new to java and just need a little help in the right direction. I am trying to display an input of int on number at a time. So for example the user would enter 1998 and the output would be: 1 9 9 8 and we have to …

Member Avatar for Ezzaral
0
131
Member Avatar for renoss

Hi, My problem is that I need to tell class A to repaint, but from class B. Class B will be a thread that updates components of class A and will eventually tell A to repaint. The basic idea of my code is as follows: [CODE] class A extends JPanel{ …

Member Avatar for Ezzaral
0
121
Member Avatar for puneetkay

Hello, Im planning to design a software that will send SMS to a group of numbers. Users will be able to create unlimited group and add unlimited numbers. It will work same as Nokia PC Suite SMS Sender. Just connect mobile to PC, Open application, Select Group and send SMS. …

0
55
Member Avatar for cproud21

I am new to programming and was thrown into an online java course before I took the prerequisite course. I love programming so far, but am lost in java and would appreciate any help that anyone has. I have the following programming challenge to complete. As well as creating a …

Member Avatar for stephen84s
0
213
Member Avatar for PRob99

Ok, I am having trouble getting this loop to continue. It just asks once and that's it. Here is my code: // ---------------------------------------------------------- // ExamScores.java (Application) // // Author: // Entered by: -- -- // Classes: ExamScores (list all the class files related to this problem) // Date: September 22, …

Member Avatar for kingvjack
0
160
Member Avatar for subhra_mca
Member Avatar for intelli

i have to write a simple java program write an application that determines the value of coins in a jar and prints the total in dollars and cents. Read integer values that represent the number of quarters, dimes, nickels and pennies so i did it i don't know where to …

Member Avatar for intelli
0
2K
Member Avatar for ravikiran032

i would like to how a host name is stored and it's structure in dns (domain name service) along with ipaddress.by which name a normal client computer is given it's hostname in the dns. here the client availing particular host name does not pay for it. in my computer i …

Member Avatar for ravikiran032
0
125
Member Avatar for aloplop

Hi all, I have developed an application in C++ using Borland Builder 6. In this app I load a html file which contains an applet stored in a wifi robot so that in my app I receive the image from an IP camera installed on it. The fact is that …

0
55
Member Avatar for tanha

Hi. I am using netBeans 6.1 on windows XP, and when I create a java class and I create a frame inside that class? why I can not see the design of that class? I mean why I can not see the frame and also the control like buttons, text, …

Member Avatar for tanha
0
115
Member Avatar for W@n

Hi, i am facing a problem with reading of duplicate element in an array. I was told to ignore the duplicate element in a text file and continue read in data from the text file at the same time store the data in an object array and diaplay it. However, …

Member Avatar for BestJewSinceJC
0
695
Member Avatar for yooobaaby

Hi All, i need yr help guys, i am developing a software in which i want to add one class object in MySql table, since there is no datatype available in MySql so that i can write object in to it, please do me a fever, what i should do …

Member Avatar for Ezzaral
0
107
Member Avatar for zwench

I have 3 applets like this one that have walkers. What I need help with is adding an action listener to the buttons. I have tried several times and keep getting this error. I did have oneWalkerButton.addActionListener(this); [B]in java.awt.Button cannot be applied to walking[/B] What is supposed to happen is …

Member Avatar for zwench
0
158
Member Avatar for Tyster

I have a problem that I've been poking at for 2 weeks and I'm stumped. The basic problem is this: If you have an array of objects (an ArrayList in this case), and each of these objects has more than one instance variable (3 variables in this case), how the …

Member Avatar for Tyster
0
96
Member Avatar for tanha
Member Avatar for bozovilla

Can anyone recommend any sample code for a GUI design for an aircraft instrument panel?

Member Avatar for Ezzaral
0
51
Member Avatar for codered152

Hi All I have a about java. and my question is i have a window open and in that window there is a add button when user click on the add button then a form window opens up and in that form window user can input anything thing want and …

Member Avatar for Ezzaral
0
80
Member Avatar for sivakumarl

Hi Friends.. Please solve my problem, I want to display values by reading the properties files basing on locale,I known it but my problem without using unicodes, For example i want to display telugu language, [B]hello=హెల్లొ: instead on wrting unicode..(hello=\uc047)[/B]i want to read direct telugu language.. Please tell me friends …

0
58
Member Avatar for vinithktp

Hi All, Iam new to Connection Pooling in Java. I need to create connection pooling for my MySQL Database with JSP using Bean Class. Please help me.. Thanks in advance. -- Vinikz

0
57
Member Avatar for Easter Bunny

i have a small app that reads a forecourt program's database. i want to get the current shift's info from that and display/print it out. SELECT name, liters, amount FROM salemast ORDER BY name the above statement was my first idea, but that didn't add them. just got a long …

Member Avatar for Easter Bunny
0
100
Member Avatar for ajithraj

hai friends, I want to convert a general expression into excel formula for eg: Grade="A1" OR Grade="A2" OR Grade="A3" convert this expression into =IF(OR(Grade="A1";Grade="A2";Grade="A3"); thank you

Member Avatar for javaAddict
0
81
Member Avatar for letlet_pogs

hello guy,,can you really help me understand more about "stack" in java?? i am still confused about stack.push or stack.pop.....can you help me understand it more??..thank you again...

Member Avatar for letlet_pogs
0
342
Member Avatar for ezkonekgal

hello, it's me again. As you have noticed, i am working on an assignment that my teacher gave me. It's 20% of my midterm exam. I posted the threads "Need urgent help! please", "I need help with my program", and the "Help with my main method." I am having problems …

Member Avatar for fireheart1024
0
156
Member Avatar for abhi_elementx

Hello folks, I have a Netbeans desktop application with a frame. I have a menu called SALES. Under that i have a menu-item "Import". I have added a mouseclicked event where i call a function. When i click on Import, nothing happens... Plz help. Thanks

Member Avatar for fireheart1024
0
119
Member Avatar for prateeknigamk

please tell me under what condition we should we use abstract classes and main difference between interface and abstract classes

Member Avatar for fireheart1024
0
92
Member Avatar for ezkonekgal

[code=JAVA] import java.io.*; import java.util.*; import javax.swing.*; public class Calculator { private static Stack operators = new Stack(); private static Stack operands = new Stack(); public static void main(String args[]) throws IOException { JOptionPane.showMessageDialog(null, "Hello user! I hope you have a great time using this. = ]", "Welcome", JOptionPane.PLAIN_MESSAGE); JOptionPane.showMessageDialog(null, …

Member Avatar for ezkonekgal
0
113

The End.