I've just started back with Java again and the first thing I would like to do is create a Database Helper Class that would communicate directly with the database.
Anyone have any good tutor...
How can I check if any element on the form has changed?
i need a step by step, pictures if possible, from beginning to end on how to set environment variable to point Java_Home to 1.5.
I use IE6 and windows 2000 and it gets stuck when citi bank online application opens.
they try to load java and shows indicator and stops.
my co-worker use same environment works fine.
do y...
I have a doubt. i need a help in the concept .
Lets assume i have entities cat,dog,cow . they have several other properties apart from the primary key id's.
does these two gives differe...
What is the range of values that can be assigned to a variable of type short
Depends on the underlying hardware
0 through 2>16-1
-2>7 through 2>7-1
0 through 2>32-1
2>15 through 2>15-1
...
I am looking for a NAT Traversal library in java for using in my project. Can any one point me to some decent library which I can use.
Hello friends,
I am trying to develop a screen scraping program that will start a legacy emulator (which is using ALC protocol), run a few commands, and then return the result set (screen d...
Java Gurus - Help without using SwingTimer Class
In this application, I have some code that compiles and runs.... Counts down as user whacks buttons that 'pop' and earns scores with each h...
i want to be able tell when the ctrl key is being held down and the left mouse button is clicked on a jcombobox i.e. on the actionperformed i want to be check if the above condition is true an...
tutorial:
http://static.springsource.org/docs/Spring-MVC-step-by-step/part4.html
We have ....
<bean name="/priceincrease.htm" class="springapp.web.PriceIncreaseFormController">
...
I was wondering what would be the code to implement a recursive function to find the total size of the folder even if it contained subfolders.
if ( file.isDirectory() )
{
...
Anyone have a nice clean implementation of this? I have the loop logic, just running into trouble when the comparing rolls around.
I have some functions that I've tried using to swap float values received from a program running on another computer. The function works most of the time, but there have been some values that ...
When I compile the code below, I get a compilation error on line 25 that says:
C:\BIS Degree\Sales.java:25: possible loss of precision
found : double
required: int
switch ( salary ...
I have a very simple, but strikingly difficult problem while programming. In an odd situation, I need to deal with a 2D array, and find corresponding "blocks".
Consider the attached pictu...
I've view this:
http://today.java.net/pub/a/today/2004/04/19/varargs.html
I've try to do this on a constructor, but when I call it, I've this error:
java.lang.NoSuchMethodException: d...
I have got a assignment for doing something I dont understand. Could someone please show me an example of what I am supposted to do?
Analysis of three different data representations of the ...
Attached is some Java code that encrypts data and stores the generated key in a file (attached). The encryption method is 128 bit AES/CBC/PKCS5Padding.
The problem is that I am trying to de...
Hi all,
I'm working on a Java program that will:
1) Take user input for a file name with numers
2) Read numbers into an array
3) Apply the quickSort/partition methods to the array
4) ...
How would you write the equal function? It doesnt seem like mine is working. hmmmm
Hi,
I have a working PHP function that decrypts the following data as follows:
// $data = "¯WEÑ3àWS";
//$iv = "fa09edcb";
//$key = "ed75380662ee77f81655c150";
function pDecStrong($d...
say I originally have an array list of size 10 and I want to expand it to a size 1000 and copy all the existing elements in the size 10 to the one that is 1000, what's a fast way to do this?
I got this method:
/**
* Saves an Image to a given file of the type .jpg, .gif or .png.
*
* @param u Image to store.
* @param target result file.
* @return if su...
What will the random look like if I want to be able to generate a 0-999 number of ints?
Like this?
for(int i = 0; i < whatNumber; i++)
{
randomIndex = generator.nextInt( 999 );
...