dice rolling occurences

3242 byte By JP_Traininga at 2007-10-2 17:09:41
Could someone help me a little problem i am having with the double that appears most, I already have the occurences showing and a histogram but am unsure as to how to display the most frequent double(s), my code so far is:import cs1.*;import java.util.*; public class TestDice {public static ...

why jvm crashes if I invoke GC every 20000 allocations

614 byte By terryxiana at 2007-10-2 17:09:54
I am doing a project related to object's lifetime. I modified JVM code to force garbage collection every 20000 allocations (i.e., every 20000 objects have been allocated). In my code, I used a global variable total_objs to track how many objects have been allocated so far.I added the following ...

interesting problem

3385 byte By maciej80a at 2007-10-2 17:11:43
Hi!I've got code which changed text from BufferedReader and save in another txt file, thats the sample of the text from txt filesome text one, two, 3,4...another line of textand another some text one, two, 3,4...another line of textand another .....some text one, two, 3,4........another line ...

regarding configuration tools

346 byte By fun-braina at 2007-10-2 17:12:52
hi,i developed a web application..now i want to develope configuration wizards,which configures my product at client side.it should take care of available modules in my product.it should add selected modules,and if need it should add plug-ins too......any tools available to develope such a ...

regarding configuration tools

346 byte By fun-braina at 2007-10-2 17:12:54
hi,i developed a web application..now i want to develope configuration wizards,which configures my product at client side.it should take care of available modules in my product.it should add selected modules,and if need it should add plug-ins too......any tools available to develope such a ...

help Connect4 game in j2me

104 byte By tiloma at 2007-10-2 17:13:13
hello everyone. i am new to j2me. does anyone has codes for connect4 game in j2me? thx in advance

Facade, DAO, DO

317 byte By Manoj_Screena at 2007-10-2 17:13:25
I want to know about:-1) Facade2) DAO3) DO, terms.and how they are linked with each other.Can u reflect any relationship / architecture between them?A whitepaper or an e-book would be very helpful for me.e-mail: manub22@rediffmail.comThanks, Manoj ...

Collision in Sloped Tiles (Tile based games)

513 byte By klyff.harlley@gmail.coma at 2007-10-2 17:15:27
Hello my friends...This my first post (Sorry, my english vocabulary is little, I'm from Brazil)!Let's go problem...i'm building a mobile game style Sonyc (Sega), i implement all collision with simple tiles, actors and agents of my game...But i have problem with test collision with sloped ...

Searching, graphs, trees... aargh!

1193 byte By Steve_wa at 2007-10-2 17:15:28
Hi,I am having a bit of a problem and would love some pointers. This is what I need to do:I need to create a bi-directional graph. The nodes are cities, the links are roads. The data is read in from a text file, and I have classes for the cities and the roads. I am currently storing all of the ...

Multiple Versions of a Spec: Decorate, Inherit or Transform?

1416 byte By Saisha at 2007-10-2 17:16:49
All,We are trying to do a mapping component between our object model and a third-party standard (XML-based). There is an organization in my industry that has created a XSD specification for the transmission of data. It is full-blown with every conceivable aspect of our business contained ...

Need Help Developing Simple Program

483 byte By justaregulara at 2007-10-2 17:19:09
I need to:Develop a program that uses recursion to create all permutations of a string argument and prints the permutations, one permutation per line. The string argument must be supplied as the first argument of the program execution call.If an argument is not supplied whenever the program is ...

I want to run java program on windows environment as background process

1348 byte By ravindra.shuklaa at 2007-10-2 17:22:06
Hi all I want to run java program on windows environment as background processSo command promptreturn after executing java command and program on background In Linux we can do this easily 卋ut I do not how to do this in windows for example look this programe import java.io.*;import ...

System scalability issue

813 byte By amit230978a at 2007-10-2 17:22:31
Hi,We are in the process of developing one application which will be used to upload several feed files (Excel and CSV format). These files will be processed at the application server side using POI (to read excel format) and than after certain processing, it will be stored in the staging tables ...

Design Issue

919 byte By Robbie_Ca at 2007-10-2 17:23:15
I am half way through a project and I have a design issue. I need my Java program to generate a html page. I have designed a servlet that will do this for me. It basically takes input from a file and generates the html page. The html file is expected to be different each time as the input from ...

implementing first person mouse view?

929 byte By AlbertSLindberga at 2007-10-2 17:23:47
Hi!My first person mouse view is functional and working but its very slow. The reason why its slow is that im using the Robot class to center the mouse pointer in each frame after I have processed the info from the MouseMotionListerner.The Robot-class has a mouseMove method that allows you to ...

Screenshot of Duke Display Page

294 byte By at 2007-10-2 17:24:12
Please fix this bug... Please.<a href=" http://img424.imageshack.us/my.php?image=brokenscreenshot3fq.gif" target="_blank"><img src=" http://img424.imageshack.us/img424/6649/brokenscreenshot3fq.th.gif" border="0" alt="Free Image Hosting at www.ImageShack.us" /></a>

[Help] how can i rotate my tank?

280 byte By cjrena at 2007-10-2 17:25:00
Hi guys here!I'm making a tank battle game with java2D. I need the tank can move forward or backward, that is not difficilt, but I need it can rotate an angle, which is hard for me. I don't know how i can do it , can anyone here give me some adivice?! Thank you !!

Please tell the right tool for managing the Version of JSP pages

228 byte By jaitsaha67a at 2007-10-2 17:27:08
Hello Friends We are developing a software for hospital, we need to maintain versioning of the software. Can you give information about the open source version management softwareThanking YouAjit Saha

Binary trees

4390 byte By Lisa_ga at 2007-10-2 17:29:14
I haven't been doing Java long and now getting into the more difficult things. I am simply trying to program a binary tree and insert nodes with data. The code I have so far is: class tree_node{private Object data;//data stored in nodeprivate tree_node left;//reference to left nodeprivate ...

Get map values by by row or key

842 byte By javvvaa at 2007-10-2 17:29:43
I need to get linked map values by row or key. Row numbers are sequential and simply correspond to order the values inserted into map.An example:ROW...KEY......VALUE======================0.....GOOG.....GOOGLE1.....SUNW.....SUN2.....ORCL.....ORACLE/* Get value by key */get("GOOG") = ...

Combinations of integers

3297 byte By some1stolemyusernamea at 2007-10-2 17:30:12
Hello is there anyone there who can help me? I am writing a program that evaluates poker hands. I need a way of creating all 2 card combinations from the list of all cards not yet dealt.I have 4 arrays that store the undealt cards off each suit. I now need to search one of the arrays and find ...

I would appreciate advice on technical choices for a large web application.

1741 byte By jtp512a at 2007-10-2 17:30:24
Application Server: Sun Java System Application Server Platform 8.2JDK: J2EE 1.4Database platform: Oracle 9iI am currently in the middle of designing a large, not enterprise, web application.At this point, I have the requirements, ERDs, UML diagrams, several initial JavaBeans and POJOs ...

Sorry for asking, but i'm confuse.

558 byte By yantoa at 2007-10-2 17:30:34
hi i'm quite new with java. and just recently i learn about J2EE pattern.but when i try to implement it to JSF. i got confuse. so my webpage have all coding put into 2 bean. one for access database. and one for other. Can anybody please explain to me how to connect a Front Controller, View ...

Returning a ratio

1873 byte By syncroa at 2007-10-2 17:34:35
Hey allI am trying to calculate the "popularity" of an item. Items can be rated using integers from 0 to 5. What I do now is that I only calculate the average of all the ratings for an item, this is of course not enough because the number of times an item has been rated should also be an ...

Game Panels and bounds

1198 byte By csc165a at 2007-10-2 17:35:32
Hey all,I created four different backgrounds for a project I am creating. (The background are a top down view of a road with sidewalks). I have them named as road1, road2, road3, and road4.I have two questions. My first and most important is if I have a little box I want to move around the ...

Beta distribution

89 byte By Mickael_javafana at 2007-10-2 17:35:39
Is there anyone who know a function to compute a beta distribution ?Thanks.

Security

72 byte By Raghavaa at 2007-10-2 17:36:55
I would like to fetch CPU id. Could i get any algorithm to Fetch.

Velocity initialization and use logs

253 byte By gelorta at 2007-10-2 17:38:47
Hi, allI have several questions1. When i initialize Velocity, procedure init() generate logs file(default name velocity.log). Is it possible use Velocity without log file? 2.How do cut off log file for Velocity? Thanks

How to develop a GUI in my game

756 byte By belingueresa at 2007-10-2 17:40:25
Hi,I'm working on a multiplayer game in Java 1.4. This is more like a prototype than a commercial quality game, and since the focus of my work is on the networking capabilities of the game, I want to spend the least possible time with mundane things like how to type information and select ...

factory question

3029 byte By LumpyNosea at 2007-10-2 17:44:54
I have this interface:public interfaceUserInfo {public StringgetUid();public StringgetKps();public StringgetName();public List<String> getRoles();public StringgetMainRole();public StringgetClientHost();public floatgetBalance();public List<ChargeKey>getCharges();public ...

Examples of 2d array in games

214 byte By melkiora at 2007-10-2 17:48:18
I have been looking (and without any luck so far) of examples of java games that use 2d arrays.Does anyone know where or can get source code for java games so that I can see how it all works together.

Drawing Triangle

633 byte By secret_codera at 2007-10-2 17:50:08
Having Trouble below.....where the astericks are.....any help would be greatprivate int side1;private int side2;private int side3;private boolean firstTime = true;public DrawingJPanel( String name){ super(); setBackground( Color.white ); setBorder( BorderFactory.createTitledBorder( name ) ...

How to Apply a Project to JCP

312 byte By java2usufa at 2007-10-2 17:51:05
Hi every one. My Name Mohammed Yousuff, i am working in Java for the Last 2 years. i Have Different Innovation idea for bulding new Java Tools . i like to know what are steps we have to follow to submit a Project to Java Community to get APPROVAL .if u have any info let me know ...

Singleton Question

1501 byte By Hrishikesh_Ghatnekara at 2007-10-2 17:51:33
Hi,I am trying to create one singleton class and planning to use it in my application.My question is what will be difference if I try to access the methods of the singletone class in following ways1)Singletone.getInstance().methodName()2)Singletone.methodName()In Second case how come the ...

class diagram design problem

412 byte By Java12a at 2007-10-2 17:52:38
hi everyone,I am doing an application in java and it is not web based, it is a client and server based application.If i want to draw a class diagram for a client and server based application, would i only draw the client side or both sides?i am a little confused, because when i read about class ...

need of j2me game

62 byte By shweta_parihara at 2007-10-2 17:54:49
please send me a j2me game with code its really urgent.

Question about static methods.

133 byte By ssv45324a at 2007-10-2 17:54:52
Is there any other advantage of using static methods, other than the reason that it is not required to instantiate the object?

Design question.

851 byte By ssv45324a at 2007-10-2 17:55:06
Which is a better design?We need to present data to a user. So to do this we decided to create a view(database) which is join of two tables so that we can avoid some heavy duty computution in the presentation layer. There is one more information which we need to present in this layer. This ...

yahoo chess

902 byte By fly-girl_pc12a at 2007-10-2 17:55:27
Hi guys,I'm just an average chess player who discovered yahoo chess a few months ago. i love playing but have found out that many of the players cheat. i'm not a programer nor am i looking for lessons in java but i just want some straightforward answers on how i can prevent people from ...

baseball game

92 byte By marizaa at 2007-10-2 17:56:20
I need to develop a format to develop a baseball game and I have no clue how to do it

How to match?

530 byte By luqiyia at 2007-10-2 17:56:34
Say if I have a set A of people, each person in this set has knowledge on some of subjects. Now I have a new comer, with knowledge of some subjects. I want to find the person in A whose knowledge set is best to match the new comer. Is there good method or algorithm to do this job.Further more, ...

Can we call this design pattern as session facade?

613 byte By itechminda at 2007-10-2 17:57:34
Hi,In my application, I am using struts framework and EJBs.My Action Servlet accesses session beans which are developed to access Entity Beans.My problem is, I have some well built Business logic classes with methods accessing Database to fetch, update so on. I want to use use these methods ...

Output format?

649 byte By patucosa at 2007-10-2 17:58:02
Hi everyone in the forum,I do not know if i should post this question here, but i think is the best place. Sorry if i were wrong.just a question because i have no idea how to format the output i need.I have a REAL *8 and the output restrictions shows that it should be: 1.0000 D-08 if the value ...

Handling multiple DAOs

1725 byte By svevoa at 2007-10-2 17:59:00
I've been asked to develope an ejb module to handle online orders for an e-commerce site.When in production the module will interact with other modules that handle customer profiles etcetera but it must have absolutely no dependency to other modules and it must be decuopled from the business ...

Design Question

579 byte By dumsa at 2007-10-2 17:59:53
I am working on a web applictaion where the user applies for a loan and it is a 12 step process . We are using front end struts, ejbs ,dao layer and oracle database for persistence. I need to persist the data for each client during the loan application process for each step of the process, ...

Data Modeling - Forecasting (Probability)? Question

1273 byte By orozcoma at 2007-10-2 18:00:00
Ok, First of all I took a probability and queuing class back in college ages ago, and I don't remember any of it?! My boss want to create a data modeling - forecasting application for our company. Now our company is very big, and is spread out accross the world. We are a company that deals ...

Newbie inheritance question

514 byte By kalantvaa at 2007-10-2 18:00:28
I have created a base class which implements cloneable (and I know the clone function works). I have also created two classes derived from the base class (which don't have cloneable implemented).Is it possible to "clone" the base class components of both derived classes. Here is what I ...

How prolific should I be with classes? (A-Life example)

1486 byte By Asbestosa at 2007-10-2 18:00:47
I'm currently writing an artificial life program. Currently I have classes related to neurons, networks, creatures, and environments.Now I'm putting together my creatures. Creatures have eyes, ears, touch sensors, wheels... there's no limit to what a creature can have. Each of these ...

Capturing Current Screen State

1312 byte By Phibreda at 2007-10-2 18:02:40
Hey, I'm working on an RPG right now and I was wondering if anyone knows how to basically save the state of the screen into an image.I want to do proper fading from black back into the screens previous state but I have been having issues finding any way to do this.I am using a typical JFrame ...

replaceAll method

315 byte By samraa at 2007-10-2 18:03:40
helloi am new to jsp i am writing a code for sortingbut when i compile it gives me the error i am using jbuilder 7"SORT.jsp": Error #: 300 : method replaceAll(java.lang.String, java.lang.String) not found in class java.lang.String at line 40please tell me ...