intersection of hyper-rectangles

255 byte By cunfua at 2007-10-2 13:56:10
Hi,If I define two hyper-rectanges in n-dimentional space by specifying their coordinates of lower-left corner and upeer-right corner, how can I determine if these two recs intersect with each other?Any hint appreciated!Thanks.

All 4 digit combinations

1407 byte By berta at 2007-10-2 13:56:24
Hello all I recently found a piece of code here I altered it slightly to serve my purpose.I want it to list out all possible combinations of 4 numbers out of from 0 to 9. The code below will do this but the problem is it repeats the same combinations over and over. Can anyone alter the code to ...

Finding the next largest number for any given number format

2190 byte By fragorla at 2007-10-2 13:57:34
Hello. I am writing some java code to model open and closed intervals, as well as a few other areas to do with set theory.More specifically, I have written a class that models a range of numbers. The class is generic in that it allows any subclass of Number for its lower and upper bounds, and ...

Architecting multi-threaded applications in Java

8601 byte By WorkForFooda at 2007-10-2 13:57:59
Please let me apologize up front for the length of this post. I feel that if someone is willing to take their time to respond (and I hope someone will) I need to respect their time by providing a reasonably complete posting. If this is too much for you or you are time constrained, please feel ...

How to Design this Class while Reding a Csv File.

16178 byte By rajpuniaa at 2007-10-2 13:58:24
i want to make this more Design orinted. This code is for reading A csv file and scnning it for Duplicate data in that Csv file.public Vector upLoadCsv(String csvFile) throws Exception {boolean flag =false; Connection conn= null; PreparedStatement stmt= null; Vector upload_data=new Vector(); ...

Looping around an arraylist of strings to find matches(more complicated!)

1180 byte By delboya at 2007-10-2 14:00:57
Total Posts: 1Help developing an algortimPosted: 03-05-2006 07:11 AMHi,I have been bashing my head with this for a while, so any help is much appreciated!I bascially have ONE arraylist which contains filenames as strings (e.g. file.txt, file1.xml, file2.doc, file2.xml, file2.txt)The arraylist ...

Help with sound in games

457 byte By alex_zak_ila at 2007-10-2 14:01:16
Hi.I recently started programming games in Java, and distributing them on the web.I have a problem with sounds: wav sound files take far too much space, while I can not manage to get Java work with mp3 files.I have heard that there is a package or something that makes Java work with mp3 files, ...

Java Function To Predict future Co-ordinates of line

947 byte By e-darda at 2007-10-2 14:01:39
Hi all this is my first post so first of all i would like to say hi!I am wondering if there is a java method which can help me.Given a straight line consisting of two cartesian points - (x1,y1) and (x2,y2) how do i predic predict a new value if i want to theoretically extend it?Maybe this will ...

3d submarine game

286 byte By raven92a at 2007-10-2 14:02:08
Hi everybody!i am working on a JOGL (openGL) supported 3d submarine game,programmed in Java.If you want to have a look at a pre-Alpha version, take thefollowing link: http://www.rz.fh-ulm.de/~hasbarge/greet.htmhave a nice day!raven

HELP how do i math with tokenizing

1558 byte By ekimffora at 2007-10-2 14:03:01
I have a code that can input an equation ie: 1+4*3; i want it to solve in order of the equation not operations, only the problem is i cant figure out how to store any variables from the tokenizerheres my codeimport java.io.*;import java.util.StringTokenizer;public class Calculator{ public ...

Web database application design examples wanted

844 byte By NemomeNa at 2007-10-2 14:04:07
Hi! I抳e written a couple of smaller web database applications in Java but I抦 not completely satisfied with my design, especially where and how to put the database code. Now I抦 looking for small open source examples of good design of web database applications in Java. I would appreciate if you ...

Hash of regions

381 byte By psna at 2007-10-2 14:16:19
Hi,I need to hash a set of regions. Each region is a set of "start" and "end" coordinates.class Region{ int posStart; int posEnd;}Now the task is to find all regions that contain coordinate "pos" in log time. Regions in the set may intersect.Does anyone have an idea how to do it?Thanks in ...

Inherit Features From Two Concrete Classes

227 byte By sathyana at 2007-10-2 14:16:36
Hi ,Greetings.How should i use the features from two classes ? That is Class A should use features of Class X and Class Y.How should the Design Be ?Thanks and Regards , SATHYAN .

Help for simple JAVA game

19131 byte By Les1984a at 2007-10-2 14:21:05
I am having trouble with a JAVA blackjack game I have been making for a school project and it completely stupifies me.When I run it and it comes to the point were it should calculate your winning or loses it comes up with completely redicules numbers.I want to appolagies for the messy ...

Image loading problem on internet Explorer

705 byte By srikanta at 2007-10-2 14:21:49
Hello EveryBody I am doing an java game.My starting class is a class that extends JApplet.Then I am calling a class that extends JFrame.Then i am calling a class which extends a canvas.In the constructor of my canvas class i call a method loadImage(),which loads all the images used in my ...

dynamic number of functioons - need for a pattern

1786 byte By bestama at 2007-10-2 14:22:13
Hey all!I'm currently developing web based game, with a quite original core system. You can skip the details to the point who brings me troubles.In this game, players sends units in the "wolrd", to fetch gold packs. Players have no real-time view of what's happening to their units; instead, ...

Advice on side scrolling

646 byte By uraknaia at 2007-10-2 14:23:59
hi,I'm thinking of making a side scrolling game for my final project (either platform game or side scrolling shooter).Before I formally choose the project I want to make a small simple demo just to get in perspective the scale of what I'm letting myself in for.I'll probably be using JPanel ...

Mouse position capturing

593 byte By lakyboya at 2007-10-2 14:27:18
Hi All,There is a problem which I faced when developing a remote desktop handling application using java.How do I recieve the mouse pointer coordinations when Im out of the java GUI component's boundary in a platform independent approach? (ex. when the mouse pointer move out from the JFrame)? ...

JTextArea question..

517 byte By shadowssssa at 2007-10-2 14:29:09
well i have write a program to compare 2 documents in a text area..for an example,JTextarea a;string doc1= "i love u";string doc2= "love";the output will be print out the matched word in textarea where the "love" will be highlight with colour...how 2 write the code to print out the whole ...

Globalization of Dates

337 byte By ssv45324a at 2007-10-2 14:30:08
The application we are developing is used from multiple countries. We would like to display the dates according to the country a user is accessing from. One way we could think of is to assign the user the country he is from in the database and then display the date accordingly. I am wondering ...

WAV's

491 byte By Melosa at 2007-10-2 14:31:06
In my game, I'm running WAV's but notice how much memory it takes. Thus I tried to run MP3s and looks for source code on google but couldn't find a working way to do it. I then decided to take a look at the source code, but they were many, many large classes. Is there an easier way to do ...

problem about translating c++ to java

14501 byte By tailianga at 2007-10-2 14:32:03
I have a problem about translate c++ code to java code.someone says use the JNI,someone just trans it directly and someone use jobject or jint..etc...I have no ideal about choicing which way.and tihs code is what i want#ifndef SC_BIT_H#define SC_BIT_H#include ...

Can two ArrayLists be used on a single JSP?

439 byte By simmyka at 2007-10-2 14:32:47
Hello All,I am facing a problem in displaying data on JSP.The scenario is as follows:I m retrieving some data to display from one DTO and some data from another DTO and adding them to an ArrayList. now the main problem arise whn I have to return two arraylists on a single JSP.How I can use two ...

create different instance ?

435 byte By PuneetSrivastava_Lko_Indiaa at 2007-10-2 14:33:20
on the basis of some values(1,2,3,4..) i hav to create different objects ..if any one can suggest me any way to do it apart from..IF ELSESWITCHthe list is long so i can't create instances and store them in hashtable or any other list..is there any design pattern for ...

AWT, how to do.

1203 byte By rageicea at 2007-10-2 14:37:07
Hello, first of all, sorry for my English that is probably (very) bad.This is my problem, I'm trying to move components in an applet with the mouse. I have no problem for move components using the setLocation method in a "null" Layout, but not with the mouse.The problem is that, to dragg the ...

how to install cldc and imaps

128 byte By meas.sokhoeuta at 2007-10-2 14:38:21
All every one please help me, How to install the cldc and imaps.I download already but i don't know how to install them.

calculate number of different characters between two equal length strings

1043 byte By analogAIa at 2007-10-2 14:40:10
Can anyone think of a more efficient algorithm to calculate # of char differences between two EQUAL-LENGTH strings?Basically I'm trying to avoid function calls such as String.charAt() or even for loops. Since i'm comparing large number of equal length strings, it would be best if there's a ...

Training a classifier

550 byte By oraistea at 2007-10-2 14:41:22
HeyFor a learning classifier is common practice to use the same dataset as the training data and the test data? I am asking because i did a college assignment which involved creating just the one dataset which was used as the training data and the test data.If this is a bad approach then when ...

Any pattern or nice solution to this ...

1022 byte By jfreebsda at 2007-10-2 14:41:26
I have an app which goal is to model UML graphically and generate code from models.My doubt is explained next:I have the graphical base component where UML components are drawn. For example Class Diagrams, Interfaces, just the same than Rational Rose. If I want to create a Class on the ...

Types of dependency injection.

573 byte By Hi_i_am_Amita at 2007-10-2 14:41:37
Hi,I wanted to know some details about difference between setter and constructor based dependency injection(IOC)I didnt understood the foll things :1. "setter based IOC is good for object that take optional parameters and objects that need to change their parameters many times during their ...

Will Struts or any other framework work for this?

554 byte By tasneem93a at 2007-10-2 14:42:37
Here is the bird's eye view of the project. We have data coming in from different sources in different format. We need to process this data into our my own standard format and load them into database. We built our own Java classes to solve this but now we have too many classes and maintaining ...

how to implement lottery program ?

318 byte By bruslia at 2007-10-2 14:42:45
Hello everyone,can someone tell me the approach to implement a lottery program. I want to print out all the possible lottery number of 13.983.816 combinations. The number which i mean is the number of possible combinations of 6 numbers selected from 49 without repetition. Any help would be ...

actionPerformed problems

219 byte By Kruser14a at 2007-10-2 14:43:15
so i'm writing a GUI with an Action Listener, and i have the actionPreformed in it, but it seems to just be skipping over the entire method, and I have no idea why? if you have any ideas, please share!!! thanks!

Converting values

372 byte By patucosa at 2007-10-2 14:44:48
Hi everybody,I have a problem: i am implementing a java app which is becoming some range values from an algorithm but with this format: .10000E+01 to.10000E+26 .27000E+01 to.10000E+05Plase apologize my ignorance but i do not remember how to convert the values into decimal, to use them in the ...

Systems Analysis

266 byte By nantucketa at 2007-10-2 14:49:00
I'd like to learn more about systems analysis. What is systems analysis... Are there any good books or links one would recommend I look at.. I'm interested in it as it applies to the process of software development of course. Thanks for any feedback.

how remove duplication in the array

1572 byte By shadowssssa at 2007-10-2 14:50:51
import java.util.*;public class stringlength{public static void main(String[] args){String p = "i love java very much.but i like it";String t = "i love java very much.but i like it";String[] sentence1 = p.split("\\.");String[] sentence2 = t.split("\\.");String[] EachLine1;String[] ...

making a "ray" animation

403 byte By Themuffinman_swea at 2007-10-2 14:52:37
Hi!I am trying to make a simple game, using the Grahpics object and the drawLine method. I want to make a line, starting at the bottom, center of the window, and going to where the mosuse clicks (the pointer is a cross hair). It's easy to just draw a line, but I want this "ray" to grow ...

High performance in memory database supporting C++ and JAVA

592 byte By Huntera at 2007-10-2 14:52:49
Hi,I am considering to build a Java compatible In memory database to speed up the application of JAVA. We have now the C++ version of the database, named MTDB, which is hundreds of times faster than phisical database. The in memory database runs on solaris, linux and windows system. MTDB ...

TFIDF

311 byte By oraistea at 2007-10-2 14:53:10
Ive been reading an article on the TFIDF algoirthm as an incremental learner, because when analysing text documents it maintains a table of word frequencies for each new document. Just wondering if the algoirthm in itself is an incremental learner or if this depends on how it is ...

bisection algorihthm

388 byte By zurka at 2007-10-2 14:54:38
Hi! my english is very bad so dont be surprised, i have many mistakes in grammar.i am using the bisection algorithm in my program, but i have a problem.i tried to call bisection for function "x^3/(x^2-3)-x-7" in interval -1,-2 (the root is in interval -1.something).but it didnt work, can ...

pls I need ur assistance

374 byte By latimoorea at 2007-10-2 14:55:26
Am writing a java program,how do I include validation check on all input?My program is designed to manipulate input in double and integer only.The validation check has to return an error if the user inputs nothing(i.e. blank space) or inputs a string character e.g(a,b h...),who can help me with ...

Java 2D Robot Maze

684 byte By asciia at 2007-10-2 14:56:16
Can anyone provide some guidance or perhaps a working solution to this problem as I need this very urgently:Implement an animation program based on Java 2D which simulates the navigation of a tiled maze by a robot.The maze should be splitted into N x N cells (for example 100 x 100 tiles).The ...

Java 2D Robot Maze

1451 byte By asciia at 2007-10-2 14:57:54
Can anyone provide some guidance or perhaps a working solution to this problem as I need this very urgently:Implement an animation program based on Java 2D which simulates the navigation of a tiled maze by a robot.The maze should be splitted into N x N cells (for example 100 x 100 tiles).The ...

tree pattern matcher

115 byte By thomasRa at 2007-10-2 14:59:58
Does anybody know if there are tree pattern matching algorithms available in Java ?Thanks in advance.

Axis tick mark algorithm

971 byte By Dylberta at 2007-10-2 15:07:04
Hi all,I've been struggling trying to come up with a suitable algorithm for determining tick marks on an axis based on the range of values the axis should display.For example, if my initial data set contains the values[5,20,29,51,60,63,79,95]I can get the Range of 90I can specify I want, say, ...

Network Game Problems

1264 byte By Jamisona at 2007-10-2 15:07:53
Okay, I only wanted to post this as a last resort... but I can't figure anything else out.I'm trying to create a Multiplayer RTS (Real Time Strategy) game, at the moment it's just Pong. Yes, it's my first ever multiplayer game, however, it's not anywhere near my first game. Anyway, I'm ...

Adding in a Chat Box to a game?

177 byte By Melosa at 2007-10-2 15:08:30
I was wondering if anyone has any example code on how to add a chat box in a 2D game. I was looking on Google and couldn't find any outside of Applets and HTML/PhP code.

abstract class method polymorphically using constructors?

1012 byte By arabotha at 2007-10-2 15:08:46
how can i have a method defined in an abstract superclass call a constructor of the actual class running the method?abstract class A { public List getMultple() {List l = new ArrayList();for (short i=0;i<4;i++) {l.add(this());//<obviously this breaks}return l}}or something like that.A ...

observing algorithm iterations

539 byte By f1technicala at 2007-10-2 15:08:53
hello,I'm building a graph display program and I have created a Layouter class that holds an iterative algorithm to move nodes.My Layouter is an interface, and my question is: how (what structure, pattern, ...) should I use to allow: - getting notification when an iteration is done, so that ...

messagedigesit help

642 byte By Tjirpovfa at 2007-10-2 15:09:00
Heey.. posting here since I think it falls under secerity.Im setting up an image database for over 1000 images. to be certain an image isnt used twice a friend of me advised to use message digest. I tried googling for tutorials and examples. googled this forum and read several docs I still cant ...