35,618 Topics

Member Avatar for
Member Avatar for sandawg

When I printout the array contents, it prints null rather than the expected entered data. Will someone please tell me what I am doing wrong? Thanks. My code follows; [code=java] import java.util.Scanner; public class Inventory { public static void main(String[] args) { Scanner input = new Scanner( System.in ); boolean …

Member Avatar for Antenka
0
120
Member Avatar for Intelrate
Member Avatar for Intelrate
0
98
Member Avatar for poggie

Need some help where to start...what to do???? The objective of this program is to simulate playing the game of Bingo. A Bingo card basically consists of a 2-d array of 5 rows and 5 columns containing integers. The first column contains integers in the range 1-15, the second column …

Member Avatar for stultuske
0
114
Member Avatar for johntayler

Hi I am John Tayler, new to this topic. This is a my first post. I want to make a website, will anybody tel me from where to start. Ive selected dreamweaver 8 to build my site. Is this suitable tool? Any tutorial about dreamweaver will be appriciated. Tayler

Member Avatar for stultuske
0
74
Member Avatar for laki234

hi can anybody tell me how ti skip blank spaces in java.Is there any function for that.Or we have to write code for that. thanks

Member Avatar for ~s.o.s~
0
147
Member Avatar for mahaboob Basha

Hi iam developing one application where i need to to send simple sms from to tomcat server .. can any one help me in this.. if possible plz send me the sample code...how to configure port number and mobilenumber.. thanks&Regards Basha

Member Avatar for masijade
0
236
Member Avatar for goyofoyo

hey everyone i am pretty new to programming and i need a little help with a code that i am writting it is a pacMan and i need it to open and close its mouth but i am not sure how to do that i started an array with the …

Member Avatar for stultuske
0
91
Member Avatar for goodluck4287

I need to make a java app that computes and prints mean and standard deviation for a list of integers x1 through xn. If anyone can help out, point me in the right direction even, that would be awesome, I get intimidated by these math problems when it comes to …

Member Avatar for Fuze
0
303
Member Avatar for Dan Bois

Every time i try and run this program it gives me an error saying "cannot find symbol constructor AnimationThread" The error occures on line 26 I was woundering if someone could please please help me with this Thx!! import java.awt.*; import java.applet.*; import javax.swing.*; import java.awt.geom.*; import java.util.concurrent.*; import java.awt.event.*; …

Member Avatar for quuba
0
100
Member Avatar for javaAddict

Hi there, Does anyone know any good books for Struts 2? I have tried reading: Struts 2 In Action, but I wasn't very thrilled about it Thanks

Member Avatar for javaAddict
0
92
Member Avatar for mahaboob Basha

Hi i created one jsp form with 2 fields..now in the first servlet i want check whether those 2 fields values are presented in the Database or not..if not then i want move those values to another servlet .. how can i do this?how to get the values (parameter values …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for Aman0711

[code=JSP]<td><c:out value="${varApm_qpay.METRICS_IN_SLA}"/></td> <td><c:out value="${varApm_qpay.METRICS_OUT_OF_SLA}" /></td> <td><c:out value="${varApm_qpay.TOTAL_METRICS}" /></td>[/code] I am using the above mentioned code to access a data and then display it on my jsp page. My problem is that I want to truncate the decimal values that are being displayed on my jsp page. for example 15.0 should …

Member Avatar for ~s.o.s~
0
63
Member Avatar for myndcraft

I have a JSP page that creates a link to a php page. (..:: I have ZERO JSP experience ::..) and I need to do some encoding or string substitution because a '&' is being passed and interpreted by the php as a separate variable rather then part of a …

Member Avatar for ~s.o.s~
0
176
Member Avatar for zatin

I have a Person Class, binarySearch needs to be performed on surnames. I need help with binarySearch algorithm. This is what I have so far: public class Person implements Comparable { private String firstName; private String lastName; public Person(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; } …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for architact

Hello, I am trying to develop a calender using the flash's built-in date chooser component, what I want to do is that I want to pass an array of dates to flash from javascript and then disable that dates in the calender component, Please help me in doing this. Thanks

0
64
Member Avatar for miso66

Hi guys! I wrote program, which read data from file(you can modify this file) and than it paints in to JPanel containing Canvas.But it doesn't work. [COLOR="Red"][B]class MainWindow:[/B][/COLOR] [code] package my; import my.MyCanvas; import my.Rectangle; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; import javax.swing.*; import javax.swing.border.*; import katka.Circle; import …

Member Avatar for peter_budo
0
108
Member Avatar for jbennet

Okay, i have two classes. One needs to access (public) methods within the other . If i declare [code]ClassB objectName = new ClassB(); [/code] in one method of class A , then use objectName.methodname() in that method then it works fine. Butif i then try and call objectName.methodname() from another …

Member Avatar for masijade
0
102
Member Avatar for nopaso

I was looking at this wobbly java applet and wanted to make it a link on my website, hot do I do that so it uses the "#Bottom" link to go to the bottom of the webpage its on: [url]http://www.javascriptkit.com/java/java13.shtml[/url] I found this forum from that website, so I apologise …

Member Avatar for nopaso
0
146
Member Avatar for merooo0ooo

drop down menu task hi all i'm working in jsp & servlet project now i need a help in code for jsp page I had a drop down menu which is dynamically reloaded from my database records waht i need is to link each item in the that menu to …

Member Avatar for javaAddict
0
110
Member Avatar for kitsune

Hi all, I'm developing a chat application using multicast in netbeans. i did the send and receive classes and it works fine by its on, but when i want to call them in the GUI it gives me the messages when i have to push the send button and i …

0
46
Member Avatar for pokahantos

Hello all, I have a very stupid problem... unfortunately i can not find any way to solve it.. I am using JDeveloper to design & implement JSP page.. I have an input field "text field" where the user enter his name.. I wanna check if the text field is empty …

Member Avatar for pokahantos
0
163
Member Avatar for Laidler

ok heres my code [CODE]import java.util.Scanner; class TestTelevisionV3 { public static void main(String [] args) { Television tv = new Television (4, 8, true); tv.printImage(); Scanner myInput = new Scanner(System.in); String Input1 = myInput.next(); String s1="P"; String s2="C"; String s3="V"; String s4="Q"; do { tv.printImage(); System.out.println(""); System.out.println("Press P to turn …

Member Avatar for Laidler
0
121
Member Avatar for larryperl

Hi , I am usinga code to connect to database. here is the code-- [CODE] <html> <head> <title>Obtaining a Connection</title> </head> <body> <h1>This Page Obtains a Connection to a Database and executes a query</h1> <% Connection conn = null; ResultSet result = null; Statement stmt = null; try { Class …

Member Avatar for javaAddict
0
110
Member Avatar for Laidler

import java.util.Scanner; class TestTelevisionV3 { public static void main(String [] args) { Television tv = new Television (4, 8, true); tv.printImage(); System.out.println(""); System.out.println("Press P to turn Power On or Off"); System.out.println("Press C to Change the Channel"); System.out.println("Press V to Change the Volume"); System.out.println("Press Q to quit"); System.out.println(""); Scanner myInput = …

Member Avatar for Laidler
0
174
Member Avatar for java_programmer

Hi, While loading IBM WebSphere6.1.0, I am getting the following error suitable JVM not found. Run again with parameter is:javahome. I am using java 1.5 and it is installed in c:\Program Files\Java1.5 and my JAVA_HOME set as "c:\Program Files\Java1.5". Could anyone please help regarding this? Thanks in advance...

Member Avatar for masijade
0
39
Member Avatar for allang

I put together a simple color chooser and havce one other thing I want to accomplish but can't figure out. I want the individual scrollbar to change color to reflect the amount of that particular color ie red (255,0,0) Also, in playing with this I have realized that it is …

Member Avatar for allang
0
109
Member Avatar for cproud21

The following applet that I have displays a house with two windows and a door that are colored in black. I want to display these items with window panes in them to show that they are open when the user clicks on them. I know that I need to use …

Member Avatar for Antenka
0
140
Member Avatar for KPS

im creating a java program using Jgrasp and im completely stuck on how to apply my random operator to calculate two random numbers? heres my code: //Import Random Generator import java.util.Random; import java.util.*; //Program name class TimesTableTestTimer {//open main public static void main(String[] args) {//Create while loop to restart char …

Member Avatar for Antenka
0
118
Member Avatar for MxDev

I've a simple question, i wonna make a program using access database to store the entered data and making some calculations on it to get the total income per day and per week, how could i backup the old data and save it in a separate database at the runtime …

Member Avatar for dickersonka
0
97
Member Avatar for mahaboob Basha

i have a jsp it has two fileds..mobileno and password..when i enterd values its storing in DB.But when iam retriving its retriving and comparing only with newly inserted values only.. it is comparing only last inserted values in Db only ..here is my code.. package com; import java.io.*; import java.util.*; …

Member Avatar for peter_budo
0
1K

The End.