32,199 Topics

Member Avatar for
Member Avatar for ryy705

Hi, I just installed MySQL on my computer and went though a decent MySQL tutorial. Now I need you guys help me out so I can get my java programs to connect to MySQL. I am using the following code from a book to connect. [code] import java.sql.*; public class …

Member Avatar for ryy705
0
452
Member Avatar for Cudmore

Hi! I'm looking to learn something today, and I have just the question. In writing a recent program, I found no Java method suited to compare two byte arrays. Maybe the method exists, or maybe not. In any case, this is a learning expedition, and I came up with a …

Member Avatar for jwenting
0
121
Member Avatar for Talon

Hi, I've got a project in which I need the program to reject a sentence if it has a certain word in it using StringTokenizer. Here is what I have so far [code] import TerminalIO.*; import java.util.*; public class Censor { public static void main(String args[]) { KeyboardReader reader = …

Member Avatar for Talon
0
141
Member Avatar for sandeepmuleymca

hi , i got project which already developed in c/c++ as visual studio project so i have to convert it into the java so can u give any information regarding whether any tool is available for conversion or suggest me any way to do this in short time waiting for …

Member Avatar for vegaseat
-1
107
Member Avatar for jlord05

:cheesy: pls help me on my project!!! you must input 5 numbers and the program must find the smallest from the five inputs then subtract the smallest from the other inputs..pls help me and pls show the source code:cheesy:

Member Avatar for jwenting
0
70
Member Avatar for cassyjack

Can someone take a look at this. Create a method called findElement, which takes an integer value and a two-dimensional integer array as inputs and returns true if the value is in the array. If the value is not in the array, the method should return false. This is what …

Member Avatar for Infarction
0
149
Member Avatar for dami06

Hi guys, I have a problem in a GUI i am trying to build. Below is the question and I was hoping you could help me out with what to do. Basically, I have do the first program which is to create a GUI but I am having a problem …

Member Avatar for iamthwee
0
102
Member Avatar for mzd12111

Hi everyone , my problem is that : i Wrote a game program (applet) but when the Applet starts , user must click on it to activate it , how can i do to my applet that when it starts , it Activate itself automatically Thanks in anyhelp

Member Avatar for iamthwee
0
62
Member Avatar for V KUMAR

var head = headElement.firstChild; var headTable = headElement.firstChild; var body = bodyElement.firstChild; var bodyTable = bodyElement.firstChild; var a = body.offsetWidth; alert(a); var scrollBarWidth = body.offsetWidth - body.clientWidth; headTable.style.width = Math.max(0, bodyTable.offsetWidth + scrollBarWidth);

Member Avatar for hollystyles
0
90
Member Avatar for Klitzy

Hi guys...I am currently writing a program and it compiles fine but when I run it it says... Problem with input/output IOException:Null Problem with input/output IOException:Null I have two files in it and I dont know what to check anymore...Anyone have any idea on what I need to look at?

Member Avatar for mzd12111
0
109
Member Avatar for Thinka

Hi, I am new to Java, and have been trying to write a program that calculates the square root of a number using the Babylonian/Heron method. I have been able to make it work, largely due to a lot of help from a PhD student. So yeah, what I'm trying …

Member Avatar for Thinka
0
155
Member Avatar for umadas

package umadas.examples; import java.io.*; import java.util.*; class Counters { int iCount = 1; } public class Wordfreq { public static Reader r; private static String str=""; public static void main(String args[]) { try { r = new BufferedReader(new FileReader(args[0])); fnWordFrequency(); r.close(); } catch (IOException e) { System.err.println(e); } } public …

0
76
Member Avatar for Covinus

i need to access a variable from a class to another class currently running at the same time. my plan is to: Save the values of the variable to a file and access it from the other class other options i have Use a database use RMI what other features …

Member Avatar for Covinus
0
100
Member Avatar for umadas

package umadas.examples;import java.io.*;import java.util.*;class Counters{int iCount = 1;} public class Wordfreq { public static Reader r; private static String str=""; public static void main(String args[]) { try { r = new BufferedReader(new FileReader(args[0])); fnWordFrequency(); r.close(); } catch (IOException e) { System.err.println(e); } } public static void fnWordFrequency() { HashMap map …

Member Avatar for jwenting
0
154
Member Avatar for cassyjack

Can someone please take a look at this for me. I have to create a program that models a simple card game. I have to shuffle the card and deal 1 card at a time and display the card that I have dealt. Not sure how to do this. The …

Member Avatar for peter_budo
0
303
Member Avatar for fawadhusain

Hi everyone, Does anyone knows, where i could find a java implementation for the Latent semantic analysis technique/algorithm ( eg for word/document) or even just how to decompose a matrix using SVD(singular valued decomposition). I need the code preferably in jave ( or c/c++ and i will code in java …

0
33
Member Avatar for dowen

and when i add a new int data type my program has an error and yet when i add a new String data type it has no error // objectSort.java // demonstrates sorting objects (uses insertion sort) // to run this program: C>java libmainsys //////////////////////////////////////////////////////////////// [code] class libary { private …

Member Avatar for Phaelax
0
96
Member Avatar for rpjanaka

hi all, i am using the tomcat server.. can i show the java out puts(System.out.println) on the browser that is issude from java classes, not from the jsp pages. i think there may be a way to change the configuration in the tomcat server.. thanks..

Member Avatar for masijade
0
568
Member Avatar for ronakp25

My application is running over websphere. Now I want to run my application over JBoss.I don't have any idea about JBoss deployment process.My whole application is in .ear file which contains my frontend part.Backend is in seprate .jar file.Which is created during build.Now how can I deploy my application.What changes …

Member Avatar for masijade
-1
90
Member Avatar for parthiban

Hi all , I'm having problem during parsing xml files using DOM API due to whitespace characters. Here is my sample XML File ,coding and output : XML File : [code]<demo> <empid>e100</empid> </demo>[/code] Coding : [code]import java.io.*; import org.w3c.dom.*; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.DocumentBuilder; class demo{ public …

Member Avatar for jwenting
0
235
Member Avatar for ankit_the_hawk

I am going to start off with Java, already knowing C/C++ So i needed to know which compiler should i download for the purpose of programming on Java ( for the Windows platform). (which consists of the editor, compiler,etc.) I need something i can download from the internet like Dev …

Member Avatar for aniseed
0
153
Member Avatar for Katrin

:!::!::!::!: I have an Assignment and Iam very new In [COLOR=DarkRed][U][B]JAVA LANGAUGE [/B][/U][/COLOR] , Anyways I need some help if someone can help me i will be very thankful, really i need it !!! :?: I need a code in Java , that maked a [U][B]SMall[/B][/U] program , that let …

Member Avatar for jwenting
0
98
Member Avatar for vergopi

Hi, I have a very difficult problem.Perhaps a good Java programmer can solve it. I want to open a Java chart (it can found on [url]www.wdsoftware.com[/url]) not from a computer but from a PDA.I have a Fujitsu-Siemens Loox 720 (520Mhz CPU,128 RAM,64 ROM).I use Netfront 3.3 with JV-Lite2 as web …

Member Avatar for jwenting
0
101
Member Avatar for skol10

I have already turned this so my grade will off anyway but I just need to know. I cannot get the right figure for this calculation, here is what I have and it gives me the wrong calculation of 7178. when its supossed to be 1167. Any help would greatly …

Member Avatar for skol10
0
190
Member Avatar for Covinus

--------------------Configuration: <Default>-------------------- C:\Documents and Settings\mykel\Desktop\auto.java:4: unexpected type found : char required: reference Set <char>setAlpha = new HashSet<char>(); ^ C:\Documents and Settings\mykel\Desktop\auto.java:4: unexpected type found : char required: reference Set <char>setAlpha = new HashSet<char>(); ^ 2 errors how come i cant cast a char on a set??? it works well with …

Member Avatar for jwenting
0
199
Member Avatar for parthiban

Hi all, I have download Apache POI(2.5.1) to convert a Excel file to XML using NetBeans5.0 . After Unzipping i got three Executable JAR files 1.poi-2.5.1-final 2.poi-contrib-2.5.1 3.poi-scratch-2.5.1 Please tell what steps i have to do to install it (or) just it's enough to just point out that JAR files …

Member Avatar for parthiban
0
504
Member Avatar for jdk1.5

Hello everyone i m having three swings textboxes mm.dd.yyyy i want a simple code for validating date & leap years plz help me

Member Avatar for peter_budo
0
57
Member Avatar for rpjanaka

hi all, i want to know about simple java concept, public class Operator{ //this is a bean class and there is a method to insert object of this class, into the database. public int saveObject(Operator _operator){ //here are codes for insert the given object in the database. }//end of the …

Member Avatar for aniseed
0
107
Member Avatar for jaden403

I am trying to write a recursive function that will produce a fractal snowflake, but am not getting the correct results. For some reason it gets caught in an infinte loop, but I cannot figure out why. Any help is appreciated. [code] [COLOR=#941edf]private[/COLOR] [COLOR=#941edf]void[/COLOR] recursiveDraw([COLOR=#941edf]double[/COLOR] x1, [COLOR=#941edf]double[/COLOR] y1, [COLOR=#941edf]double[/COLOR] x2, …

Member Avatar for jaden403
0
98
Member Avatar for parthiban

Hi all, I download JOnAS 4.8.4-tomcat5.5.17, APACHE Ant 1.7.0 and installed by setting JONAS_ROOT and ANT_HOME. When i check the environment using "jonas check" I'm getting following message [B]" The system cannot find the path specified. The system cannot find the path specified. JONAS_BASE is set to '-Dinstall.root' is not …

Member Avatar for parthiban
0
83

The End.