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! ...
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.
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 ...
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 ...
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), ...
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. ...
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 ...
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 ...
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 ...
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 ...
write a java program to convert binary numbers to decial numbers. the input is a string of zeroes.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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..
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 ...
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 ...
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 ...
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.
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 ...
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 ;)
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, ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...