35,618 Topics

Member Avatar for
Member Avatar for sanam_1
Member Avatar for jon.kiparsky
0
64
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
721
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
173
Member Avatar for Seshakumar

Hi guys! am new to this forum and this is my first thread :) am not sure if am posting at the correct forum, but its regarding servlets am doing a web application for 'online exam' using jsp, servlets and java bean. i've three serialized files holding my questions(questions.ser), options(options.ser) …

0
81
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
108
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
218
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
105
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
93
Member Avatar for titan5

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 …

Member Avatar for titan5
-1
124
Member Avatar for burningflower

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 …

Member Avatar for JamesCherrill
0
218
Member Avatar for smslive2

Hi Guys, Please i need someone who could hlp me write a simple ATM program for accepting PIN, Checking Balance and Withdrawing..

Member Avatar for Taywin
0
412
Member Avatar for demented_gurl

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 …

0
145
Member Avatar for rinizids
Member Avatar for sanam_1

I want to number the row and column . I get row number right around the left hand side ..I want the column number on the top..This is the code I have ..CAN PLLZZ HELP ME WID the column number plzz.. int[][] Board = new int[15][15]; for(int j=0;j<Board.length;j++) System.out.print(" "+j+" …

Member Avatar for sanam_1
0
508
Member Avatar for nramya82

Hello friends, I installed junit4.8.1 in my windows xp, while testing I see following errors.Below are my class path and the location of Junit where I installed. I would really appreciate if some one can help me on this CLASSPATH =.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip;C:\junit4.8.1\junit4.8.1\junit4.8.1.jar JAVA_HOME = C:\Java\jdk1.5.0\bin Junit installation path C:\junit4.8.1\junit4.8.1\junit\tests when …

Member Avatar for HelloMe
0
1K
Member Avatar for HelloMe

My problem is that i have a main menu Class and i want that a MIDI song plays in the background. I research a bit in the internet but i only found to make a sound class... But i dont want to make a own class for it. Isn't there …

0
121
Member Avatar for kaneyip

Given array: int[] dimension = { 1, 2, 3 }; That produces the output: 1 2 3 12 13 23 123 I'm new to array...i can't figure out the way on even how to start... any idea?...really appreaciate if someone could help...thanks!

Member Avatar for JamesCherrill
0
110
Member Avatar for compass

Hi, I need a code for a virtual compass that I would like to include in an application that I manufactured for my task in school.Can anyone help me please?? Tnx

0
124
Member Avatar for JavaNewbieEK

I have an assignment in which I have to read in a series of words using the nextLine method from the Scanner class and then count the number of words using the StringTokenizer class. I know you all like for people to show some initiative by starting the program but …

Member Avatar for anumash
0
192
Member Avatar for sanam_1

how you number the 2d array??i created a 2d array now i want to number the rouws and colums...here is the code i have now [CODE]int[][] Board = new int[15][15]; for (int r = 0; r < Board.length; r++) { for (int c = 0; c < Board.length; c++) { …

Member Avatar for Taywin
0
112
Member Avatar for Buffalo101

Hello, I'm trying to write a simple Clicker program to automate room-joining on GArena: 2 clicks to attempt to join, 1 attempt per 5 seconds. That means I have to simulate 2 x mouseButton1 clicks every 5 seconds - easy. The problem with my clicker, as well as with other …

Member Avatar for Buffalo101
0
196
Member Avatar for Matulin

cacn you help me with this one import java.awt.Graphics; import java.awt.Color; import javax.swing.JApplet; public class Smiley extends JApplet { public void paint (Graphics g) { super.paint(g); g.setColor(new Color (60,10,0)); //outline pants g.drawRect(393,275,199,80); g.drawRect(394,276,199,80); g.setColor(new Color (145,90,0)); //brown (pants) g.drawRect(395,300,197,54); g.fillRect(395,300,197,54); g.setColor(new Color (255,255,255)); g.fillRect(395,275,197,50); //fill white (pants) g.setColor(new Color (32,5,0)); …

Member Avatar for jon.kiparsky
0
457
Member Avatar for HelloMe

Hello... Like the title already says, i have a Panel with a TextField and when a text is entered, i want it to appear on a JLabel that is located on another Panel. Can someone give me the Syntax? Or is it more complicated to do? I do not use …

Member Avatar for ndeniche
0
1K
Member Avatar for elite01

There is a card game I was trying to make for the past two weeks in java. Can be played here => [url]http://www.angelfire...ardtrick02.html[/url] Basically the player picks a card and the program will ask which column contains their card. It than shuffles the cards back together. After doing that three …

Member Avatar for jon.kiparsky
0
527
Member Avatar for mangopearapples

Hey guys, I was wondering how I could make games with Java3D. I've used Java3D but only in static programs. How could I 'repaint' with Java3D (Make games and such)? Also, where could I learn more of Java3D? I've only learn't what I know so far from a few tutorials …

Member Avatar for elite01
0
292
Member Avatar for tj0101

[CODE]/* Problem 3 Writing User-defined Methods Programmer: Date: March 10,2011 ProgramName:Tuition.java */ import java.io.*; import java.text.DecimalFormat; public class Tuition { public static void main(String[] arg) throws IOException { //declare and construct variable int hours; double fees, rate, tuition; //call methods displayWelcome(); hours = getHours(); rate = getRate(hours); tuition = calcTuition(hours, …

Member Avatar for jon.kiparsky
0
347
Member Avatar for mangopearapples

Hey people, How could I make it so when I right click and file and click 'Open With..' and choose my program so it loads the file? I already know how to load the file from when the program is already running and you click 'load' ect... [B]But,[/B] I tried …

Member Avatar for mangopearapples
0
177
Member Avatar for drogba123

Hi, Currently i have an array list listing some bigram. and i would like to have the array list to be formatted like this [am] - [amazing, amber] and so on [bi] - [big, bigas] and so on how should i go about it?thanks for the suggestions. Thanks much

Member Avatar for drogba123
0
120
Member Avatar for mani2
Member Avatar for mukorera

I have a session bean that I am using to persist data to the database and I need to use Junit testing on the ejb,can someone help me with information on how this can be done maybe with a sample code .I am working on Rational Web-sphere Developer version 7.5

-1
57

The End.