36,051 Topics

Member Avatar for
Member Avatar for stilldancin12

yet again right? Ok, so this time, the task is to write an application that asks the user for his or her birth date and replies with the day of the week on which they were born. So here is the code i have. [ICODE] package Ch2Scanner; import java.text.SimpleDateFormat; import …

Member Avatar for di2daer
0
102
Member Avatar for SyLk

how do i declare a scanner object, filescan publicly so that i may use filescan in varios functions i found this statement in a forum----> private static Scanner scanner = new Scanner (1 3 4 4"); when I modified it to-----> public static Scanner filescan = new Scanner(new File("inputdata.txt")); //declared …

Member Avatar for Ezzaral
0
383
Member Avatar for Kamal_Java

Hi ... [ Need ur suggestion NOT code .... ] This is one part of my assignment .. I need your help on how to do this . Below is my short description of my problem ... I have two classes Named Passenger class and container class . Passenger class …

Member Avatar for stultuske
0
2K
Member Avatar for KarthigaB

Hi All, I have some log messages and sysout statments in my java code. I am executing my code through a shell script. I could able to see all my sysout statments since I have redirected stdout message to a file. Now I need to see the log messages to …

Member Avatar for Salem
0
95
Member Avatar for Atif Azmi

Differentiate switch and if statements in java. Explain nested switch with example. how can we use break as a form of GOTO statements

Member Avatar for stultuske
0
96
Member Avatar for chenmanalo

:'( please help.... can you give me a full program of a game using java? i don't know it... please give me some idea... give me game program, the important is it is a game... please thank you and God bless!!

Member Avatar for stultuske
0
79
Member Avatar for dnmoore

I have to create a program to calculate the number of years it will take to become a millionaire if i invest a certain amount and receive interest on it. I need a little help on how to start it, the only thing i have so far is we have …

Member Avatar for stultuske
0
527
Member Avatar for adiel224
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
96
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 samurai83

How to create this table : Yellow Balloons [INDENT] [/INDENT]Cat Red Apple [INDENT][/INDENT]House Blue Jeans [INDENT][/INDENT]Tie Instead of this kind of table: Yellow Balloons Yellow Cat Red Apple Red House Blue Jeans Blue Tie

Member Avatar for peter_budo
0
28
Member Avatar for TheProfessional

I've created a jsp that will download a file for the user when its loaded. When this file is downloaded and opened, the end of the file contains this funny character - [B]ÿ[/B] Does any one have any idea how to remove this character or prevent this from happening. Here's …

0
54
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
146
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
135
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
122
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
57
Member Avatar for avsparmar

Hi, i am building a web chatting app. for mobiles. can anyone help me that how to get mobile no. when user submit the form. or when user request. I want to keep in record that page is opened on which mobile number. I have come to know that mobile …

0
45
Member Avatar for cybernaut09

I have a jsp page to take input from user and want to store values in database with the confirmation message on the same jsp page . But I already have stored an array list in session during processing of other pages of other modules of my project . Now …

Member Avatar for peter_budo
0
94
Member Avatar for cybernaut09

I read jsp tutorial by peter_budo on database connectivity using MVC model in jsp then I tried to create a registration page but I have errors on my page . Please help me correct them. I here have 1. registration.jsp - as interface for taking input 2. RegisterServlet.java - as …

Member Avatar for peter_budo
0
2K
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
216
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
165
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
127
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
58
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
118
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
698
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
111
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
161
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
97
Member Avatar for comsec

I have a collections to be populated in a JSP combo box. Now suppose there is a different page for each user which displays user specific values in a combo box in that page. The combobox should display the value from the collection specific to the user. But my combo …

Member Avatar for peter_budo
0
627
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
55
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
85
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
60
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
58
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
103
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
84
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
347
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
158
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
123
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
95
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
115
Member Avatar for nitric0

hey guys new here and i'm also new to JAVA. i'm taking a class and am kind of stumped in my first assignment i basically have to write a program that will give the total due a user using an internet cafe. each full hour = $5.00 each m inute …

Member Avatar for VernonDozier
0
89
Member Avatar for BlackPearl

I have been assigned ot developa simple Java paint program whis allows the user to: 1.Create simple shapes on many layers 2.Draw line 3.Fill the selected shapes and lines (using color chooser) 3.Copy and paster the selected shape 4.write selected sahpe to a file and load the file to the …

Member Avatar for akhilagarwal87
0
212
Member Avatar for llemes4011

Hi, I need to create a huge array of (up to 160,000) points on a grid ex. (4, 23). First of all, I have no idea how to create an array, I looked on the Java API, but I was helplessly and hopelessly confused. And after a create the array, …

Member Avatar for Alex Edwards
0
88
Member Avatar for guerreronoli

Any body can help me with this problem!.... I want my program to communicate to Windows Registry!.... anybody know?

Member Avatar for Phaelax
0
44
Member Avatar for Phaelax

I need to create table with expandable rows. Each row in the table can be expanded to display a secondary row. While I have managed this in the past for other projects, this problem is slightly unique. For the rows that are always visible, I want them to be only …

Member Avatar for Phaelax
0
125
Member Avatar for avsparmar

I want to build a web chat application for mobile and i build it in the same manner as it build for desktop browser but that is not supported by mobile browser. Please java developer let me know how to build front end pages that will be compatible with mobile …

Member Avatar for peter_budo
0
90

The End.