Does anyone know an algorithm to find fields of close points?

318 byte By ricard.lopeza at 2007-10-3 10:32:06
Hi everybody,I have the following problem:I have some points in a 2D space, and I need to find fields of close points in it, the maximum distance between the points is given by the user, the algorithm needs to be fast because sometimes there are a lot of points.Thank you for your help! ...

basic - predicting stock market trend

244 byte By jigza at 2007-10-3 10:34:15
Does anyone know any basic algorithm that can be used to predict a company's share? I think there must be some formula or algorithm.I know one cannot predict stock martket trend but I'm sure someone must have made some attempts.

UML notation: Class operation return value multiplicity

1136 byte By a3cchana at 2007-10-3 10:39:02
Hallo,how would you write function from example below using UML notation on implementation level, please:class Coin { public String[] getSideNames() {return new String{ "Odd", "Even" }; }}Multiplicity in return value is troubling me. I've tried +getSideNames( ) : String [ 2 ] but my tool just ...

Java 6's rhino / javascript database connectivity

782 byte By tradercentrica at 2007-10-3 10:45:38
HiI am trying to load the Sybase database driver within the javascript and doesn't seem to get it working... Here are my sample command/code:command:jrunscript -classpath "c:\javascript\jconn2.jar" testdb.jssource code of testdb.js:1 importPackage(java.sql);2 importPackage(java.lang);3 4 ...

Java Hangman Game

12743 byte By yahwehagapea at 2007-10-3 10:48:26
Hi, I'm just about finished a hangman game in Java (eclipse). I getting a logical error that I can't find after 30 minutes of searching and testing. I would be very thankful if some could pinpoint the problem.When the user hits the spacebar it lets them enter the entire answer (hidden word), ...

I need help reviewing my mini-max algorithm

8368 byte By amir650a at 2007-10-3 10:50:51
Hi,I've created a game of chess bottom up - I've been working on it for about one year now. This is a for fun project that I'm working on for pleasure, not a homework assignment or some.I have reached the point where I'm interested in making a computer player who makes 'smart' decisions. ...

Deal or No Deal

374 byte By Supra06a at 2007-10-3 10:51:12
Hello, I am a student and I am taking programming, I was wondering how I would go about making a simple java version of the game show "Deal or No Deal". I am doing this for a project and I am using Netbeans, it doesnt have to be complex and I was just wondering where to start. Any help would be ...

Java EE design advice for a re-designed DB app

1981 byte By jayhawkstewa at 2007-10-3 10:51:42
I'm currently tasked with rewriting a legacy DB app in Java. The original was written in Delphi. It worked great for a number of years, but the powers that be have recently decided to redesign and rewrite it in Java. Basically I just have the same set of business requirements as the original ...

ChessBoard , my attempt and learning to develope chess board

1727 byte By Bilal_El_Uneisa at 2007-10-3 10:52:14
this is my attempt to learn how to create simple chessboard in java.. ill post my code as i progress, any suggestions is greate.i use netbeans :) and jdk1.6rc. peace/* * ChessBoard.java * * Created on November 26, 2006, 10:06 PM * * To change this template, choose Tools | Template Manager * and ...

Regular Expression Question

619 byte By popohomaa at 2007-10-3 10:53:49
Hi all, I am suffering in java regular expression, and I hope you guys can help me out. I want to use the String api ".matches" to find out any string pattern like "xxxx.xxxx" where xxx can be only english word(both upper and lower case). Actually I will use this kind of expression to represent ...

help

105 byte By WAQAS_786a at 2007-10-3 10:54:37
write a java program to convert binary numbers to decial numbers. the input is a string of zeroes.

Java spaceshooter design

811 byte By Astrofa at 2007-10-3 10:57:13
Hey all, i've been making a spaceshooter in java, but now i'm having design problems. my code is apparantly inefficient and lags like crazy on certain comps, but works fine on good comps. i've experimented with threading, but dont know an efficient way to thread. So far i have a thread to ...

Best OO design

976 byte By popohomaa at 2007-10-3 10:57:25
Hi, I am currently developing a online system that has front end and back end server. The front end server will send a request to back end thru web service. THe request header contains some critical Transfer objects like Bank Account, Customer Account....etc. ALl of them extends the super class ...

Where to start

326 byte By 2tone3a at 2007-10-3 10:57:39
I know making a game is very hard that is why I was wondering where to start on making graphics? Like land, houses, trees, ect. Also what languages should I start to study for gaming programing? But the main thing I would like to know is where to start on making graphics. I would really ...

what is the best way to support High availability

647 byte By Meirya at 2007-10-3 10:58:54
Hello all i have application that making remote application invocation using some times corba and sometimes web services but this is not the impotent issue the issue is that i need support High availability with the application server . that is how to detect when the application server is down ...

Question about the Value List Handler Pattern

678 byte By fmarchioniscreena at 2007-10-3 11:00:18
Hi all,I'd like to implement the Value List handler Pattern for displaying result of a search.Basically the Collection is made of 2 elementsTravelDepartures which holds a Collection of Itinerariesand TravelReturns which holds a Collection of Itineraries too.What is the correct way to implement ...

BufferStrategy and two monitors

852 byte By -WildChild-a at 2007-10-3 11:01:36
Hey I have a problem with hardware accelerated Java2D, not sure that this is the correct sub-forum so if not please move my message post. I have this application that creates a JFrame with a Sweing GUi and then when pressing a button I open another JFrame that has a double buffered canvas ...

DAO/DTO help

2821 byte By BoozDetroita at 2007-10-3 11:03:25
Hi,I have been struggling quite some time now with a certain DAO/DTO question.I have been looking all over the web but found no satisfying answer. What I did find was a forum post which formulates my question exactly:Where does your DAO/DTO implementation draw the line?For example:Let's say I ...

Opinions on the Transfer Object pattern

487 byte By jds@ku.edua at 2007-10-3 11:05:34
http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.htmlThe URL given is Sun's writeup on the Transfer Object pattern. If I understand it correctly, it recommends copying data from persistent entity objects to POJOs that can be passed to the presentation layer.It seems like ...

need Help on a Celphone game T.T

504 byte By Zedkiela at 2007-10-3 11:05:45
hi uhm im new here and well i started with a lil program but when i compile it gives me this erros :Building "Sub3"C:\WTK20\apps\Sub3\src\M1945.java:6: package java.applet does not existimport java.applet.*;^1 errorcom.sun.kvem.ktools.ExecutionExceptionBuild failedim using Java jdk 1.5.0_09 and ...

Retrieve multiple objects with MVC/FrontController for view in JSP.

1822 byte By aagaard1a at 2007-10-3 11:07:29
I have made a MVC system (front-end only); a link call the url: ?page=createSomething to the FrontController, that is implemented as a Servlet, and then dispatch to createSomething.jsp. That抯 all fine, but I need to retrieve 2-3 list to use in dropdowns, and that抯 here I give up!A simple ...

A design problem

2921 byte By sri1025a at 2007-10-3 11:08:02
I have a client/server application in which the client sends a request (in the form of xml) and the expects a response to come back from the server for that particular request.Let's say the client sends a "login" request to the server, then it expects a "login" response. This part is very ...

My Ambitions! :-)

1030 byte By Beatles4a at 2007-10-3 11:09:21
Ok, my ambition is to have my own 3d MMORPG!But I need some help, first off I have done some programing in Realmcrafter ( http://www.realmcrafter.com/) and I have learned some HTML too. But my life is kind of rubbish at moment lol so I want something to do and that is to learn JAVA!Now I would ...

A basic game engine

581 byte By xennya at 2007-10-3 11:09:24
HeyI've only been learning Java a couple of weeks and a friend suggested a good way to learn would be to write simple board games. It's going fine and just for practice I now want to write a really basic game engine for the sort of stuff I've been doing.I've been looking online to try and ...

Complete separation of client data from the business model?

1119 byte By bayareadavea at 2007-10-3 11:17:29
Do current J2EE best practices provide for complete separation of client data from the business model? Typically, any significant change to data used at or by the client will result in changes to the data model and vise versa. This necessitates changing all of the logic and beans that touch ...

Object With the same functionality but defferent Parameters

1787 byte By dave123a at 2007-10-3 11:20:55
Hi All,i'll directly come to the problem.i've one class name VoterListCallBack -class VoterListCallback implements ListFieldCallback {private Vector listElements = new Vector();public VoterListCallback(boolean show, String userType){}public void drawListRow(ListField list, Graphics g, int ...

Multiple (independent) Image Rotation

1790 byte By Agent616a at 2007-10-3 11:24:09
Usually I'm good at finding information to solve problems by searching the forums. but honestly I've never seen this problem solved or ever heard any mention of it. . . . here goes.I'm writing a space shooter that uses images as the hero and enemy ships.My problem is this.I've written the ...

regard-puyo-game

254 byte By vikaskodaria at 2007-10-3 11:25:20
Hello,my name is vikas.k ,I had a test to develop puyo game,in order to do so i need to refer the one developed before so that i can get a idea to start .so, please send me the source of puyo game as quickly as possible, bye..

Fastest way and Efficientiest way to find the Date withtin the Date Array

525 byte By popohomaa at 2007-10-3 11:27:40
Hi all Java Expert, I am currently writting an web application and I will retrieve couple dates within a range and put them into the Date Array Date[] by using java.util.Date. The user will input the date from screen, and I need to check whether the input Date is within that range(within the ...

Queary Regarding Developing a Game on Mobile

581 byte By facinate_on_JAVAa at 2007-10-3 11:29:59
Hello Frends,I am planning to develop a game on mobile using J2ME.i know how to develop applications on Mobile,but i didn't develop any game on Mobile till stage.so i need the basic information regarding the game developement like what r the packages do we need to import and what packages are ...

Relationship design problem

791 byte By Zjga at 2007-10-3 11:31:42
Hi,I have a design problem with two classes, just say class A and class B. The relationship of A and B is 1:n, which means one A object can hold many B objects. It is a aggregation not a composition, so one B object can be hold by different A objects. Both A and B are entity classes. Here is ...

Graph layout

199 byte By conscripta at 2007-10-3 11:32:00
Hi,Can anyone help to create an algorithm for arranging a graph as http://www.spss.com/research/wilkinson/Applets/graphlayout.html the "Network" layout on this page.Thanks a lot.

regular expression & XML

373 byte By oturcoa at 2007-10-3 11:32:22
Hi all,I have a simple XML to parse (I dont need XML parser just fir such thing). The XML is as below<element name="uuid"><value>1.0.199999102</value></element>I need to read the value, which is 1.0.199999102. Could anyone give me the regular expression code to achieve ...

a suggestion about Java programmers

187 byte By java1357a at 2007-10-3 11:32:53
Hi allHow about the java programmers call each other "my friend" ? this makes a tight and close relationship among java developers.providing a high cohesion ;)

Finding closest array in a set of arrays

1460 byte By tbpckisaa at 2007-10-3 11:36:30
I have two sets of arrays, one which i will call the source set S, and another set called A. I need to match every array in A to its closest array in S. Closeness is determined by the euclidean distance if you were to consider the arrays to be n-tuple coordinates. The arrays consist of bytes, ...

java script memory game

11105 byte By 05023246a at 2007-10-3 11:40:03
hey, im new at this java script lark and am trying to add a timer to a memory game in order to present a list of high scores complete with their time. Below is my code, any help would be appreciated. Thanks x<html><BODY bgcolor="#FFFFFF"></BODY><TITLE>Might Boosh Card ...

java object reference index..

942 byte By ayusman_dikshita at 2007-10-3 11:47:00
Hi All,I have two doubts, it will be great if I could be suggested any thing on these.1. Is it a good idea to create an java object in the memory, may be 1-2 Mb in size and keep it in the server for a long period? The reason is the server restart may be once in 50-60 days.2. If the component ...

random number generator

530 byte By sali_dia at 2007-10-3 11:48:45
Hi,using the java built-in random number generator, I generated from an original dataset 100 pseudo-datasets of the same size of my original datasetHow likely it is that the pseudo-datasets are similar/ the same?(original dataset contains data for 600 cases, each case have data associted with, ...

Should I model this object as Entity Bean ?

885 byte By fmarchioniscreena at 2007-10-3 11:51:22
Hi all !I'm modelling an application for selling tickets on-line.Tickets are booked on-line then the user navigates to the payment page and pays with credit card.The business analyst decided to allow a 30 minutes reservation time for people who booked the ticket to pay with credit card.If time ...

Separating Layers physically

397 byte By JamesSelvakumara at 2007-10-3 11:51:37
Hi,Under what circumstances should we provide physical separation of different layers such as presentation, business logic?Does it make sense to keep the presentation layer in a web server (tomcat) and the business logic layer in an application server (glassfish, jboss)?Or should everything ...

DCT in audio coding

378 byte By Xterma at 2007-10-3 11:54:10
Hi!I'm trying to make a codec in order to stream audio over the internet.I'm interested in transform the raw PCM data into DCT coefficients and then make some processing.The problem is that I can't find any Java DCT and IDCT code for audio.Someone knows something about this topic?Thanks in ...

Help with a 2D array maze

2207 byte By Gatchasama at 2007-10-3 11:54:51
Hi, I'm trying to create a maze that characters can run around in, I think that I've got the basics done but I need more specific help. My code:public class maze {/** Creates a new instance of maze */public void maze(String[] args) {int[][]maze = new ...

Advice on how to implement Transfer Object for a couple of entity classes

3729 byte By codebooka at 2007-10-3 12:01:13
This is more of a "Look what I wrote and make any general comments" kind of post. I will reward thoughtful comments with Dukes (even though nobody cares about them).Let's say I have two entity classes, Person and Address. For the sake of this discussion, let's assume the relationship is ...

Java Side Scroller

4665 byte By Terrax at 2007-11-26 12:03:59
Hey can anyone please help me out? I'm trying to create a side scroller game but having some difficulties with the ribbons and making it appear as though the my character is moving. I created this code below but I cannot test if the ribbons work because when I click compile it says there ...

Wrapping Session Beans with Web Services - A good approach?

680 byte By JamesSelvakumara at 2007-11-26 12:23:05
Hi,I always had this concern about accessing session beans located in a remote app server.EJB uses rmi-iiop for networking and as such the end user cannot have precise control over the ports opened to communicate with the remote beans.Yes, with patterns like business delegate and session ...

Need some help how to sort the bean data

462 byte By Sarayu_Geethajalia at 2007-11-26 12:26:44
Hi,I need to sort the values from the Bean.For Eg: List list;list = Sample.getList(); // returns list of bean objects.for (int i= 0; i < list.size(); i++) {TestBean bean = (TestBean)list.get(i);name = bean.getDisplayMibName();}I need to sort the names from the bean and assign to new list.New ...

Request for expanation

280 byte By norbulingaa at 2007-11-26 12:37:28
Hi,Can anyone explain the algorithm in the relax() method found in http://java.sun.com/products/plugin/1.5.0/demos/plugin/applets/GraphLayout/Graph.javaWhat is the theory behind this algorithm?Does anyone know a suitable link ?Thanks a lot

Help needed for new developer

438 byte By Bosco2085a at 2007-11-26 12:40:04
Hey,I'm new to java development and I'm trying to write a game. I've made a map for the player to move around written in excel/notepad.Pretty simple, everything's numbered 1-25, e.g.111113311111would be building 3surrounded by a path.Could anyone help me figure out how to get this into a ...

Should all the input parameters to a method be final?

3089 byte By sri1025a at 2007-11-26 12:41:57
Many good-programming-practice-related books say that the parameter to a method should be declared final.For ex, like this:public void foo(final int bar) {}The argument those books defend is that, what if you change the variable somewhere in the middle and you want the original value that ...

Performance enhancement

913 byte By dave123a at 2007-11-26 12:47:26
Hi All,i'm accessing data from the server through HttpConnection to Blackberry mobile unit in the following format -| 123 | abc | newyork | xxxx | 111 | dfgr |....|....|....|...............| 234 | aaa | rock | gggg |... ....| ..... | .......each pipe separated data elements represents a ...