2046 byte By
Narka at 2007-10-2 19:19:05
hi there,At University we need to add an algorithm to calculate the balance factor of each node in an AVL tree without using the hight to calculate it.All we are alloud to use is the int bal attribute and the matching int getBalance() and chageBalance(int bal) Methods supplied in the node ...
729 byte By
SWAT296a at 2007-10-2 19:20:12
hey guys i am in computer science A AP that i am taking at my local high school. We have a project were we have to create some kind of game as a group. What we decided to do is make a paintball game where we have drawn bunkers and have two guys that we can move with different keys fireing at ...
hi everyone!!!im creating an online rts game (like rome total war) and wanted to know if there are any online tutorials explaining how to create the game and how to put it on the internet. If anyone can help me out i would be very grateful. If possible could the tutorial be very detailed and ...
278 byte By
alta at 2007-10-2 19:20:46
I have math algorithms in recursive form and I want information on how to convert it to transform it into iterative for faster execution.I also want information on how to convert iterative to recursive algorithms so the code would be more readable.Thank you
I wanted to create Items and be able to display it. The user will do some selection based on what i had displayed. But the constraint was when am asked to add new items i should do it without modifying existing code. I thought factory pattern would solve the issue. I was able to create a ...
1779 byte By
faitha at 2007-10-2 19:23:24
Hi there,I have a program that is using 2 classes in the same package.Oneis called Add_Word,the other is Edit_Word.Both have a seperate GUI.I have created one class(Add_Word) with a reference to (Edit_Word).The idea is to allow the user to enter a list of words through a text field and pressing ...
Hello everybody,Could some one help me with an example of how to convert midi files to wave files, or with some suggestions on how to do it?Thaks a lot
14577 byte By
Sailua at 2007-10-2 19:25:00
HiI will appreciate if any of the experts here can take a quick look here and share some input which might be useful. I have made a post here earlier: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=385522&SiteID=1Any help will be appreciate.Thanks,Sailu.Here is some details of the ...
428 byte By
dedonaa at 2007-10-2 19:25:42
I'm trying to get JOGL running on my windows xp machine. I've followed the instructions of many setup tutorials but I still can't compile w/ any JOGL classes in my code. I'm putting the jogl.jar file in my jre lib\ext, and im putting jogl.dll and jogl_cg.dll in my jre bin directory. I've ...
Hello,I want to store huge amount of combinations in memory. For each combination I want to store an integer value.A combination looks like: 2,4,3,8. For this combination I build a tree composed of nodes: 2, 4, 3, 8. Then for node 8, I set the int value to be 1. if the same combination is ...
349 byte By
qghara at 2007-10-2 19:28:23
1. Sorry for my english :)2. I have same images on the screen. First is in bacground second is on the top. I click. I want to know on which image i clicked.3. I know, my english is terrible :) Sorry.4. Here is a sample: http://qghar.lcm.pl/Kaczki/index.html I want to know if i clicked on tree ...
2605 byte By
ktm5124a at 2007-10-2 19:30:57
I have been thinking about whether passing parameters as a Map of objects is a good idea or not when one is simply using POJOs. Of course, I am only talking about doing this in a few select cases. An example is an online service that keeps track of its users in a database. Think about the ...
734 byte By
alta at 2007-10-2 19:31:00
Hello,I am writing a computer algebra system and I need help solving a variable in an equation from an abstract syntax tree.How can I make something like a Term Rewriting System that rewrites equation in simplist form? Is there any way to automatically let the computer to combine like terms?How ...
212 byte By
thenerda at 2007-10-2 19:34:54
Hi, im new to this whole game programming thing and I was wondering if someone can send me to a simple game with graphics to start with. I want reference to understand further programs to make games later.
437 byte By
Adi.Ma at 2007-10-2 19:37:39
Hello,Does anyone know what can I use to calculate the SVD frome a large Matrix? I used Jama Api but for my Matrix (8464 rows and 400 columns) it gives me an Heap memory error at this line:SingularValueDecomposition s = new SingularValueDecomposition(A);I know it is a large Matrix, but Matlab ...
Hi,I am currently working on a problem where I have to do maze navigationwith obstacles in the maze. I have to implement a TSP algorithm to visit a specific number of locations in the maze in the fastest possible time. I am not quite sure how to start, can anyone give me some help on how should ...
The following is the design for a reporting module. Any suggestions on the same would be appreciated.1) ChartGenerator implements Generator.Attributes ? private int ncompID = UNDEFprivate int njobId = UNDEFprivate String storedproc = ""private java.util.Date fromdt = nullprivate java.util.Date ...
165 byte By
sri444a at 2007-10-2 19:40:39
I know this is a very simple thing but my teacher didnt teach us anything in our class. But how do u convert an image from paint into a png file? Help us pls.
hi, I'm really trying hard to getting into modeling my applications before coding. So far I've found it to be very useful, especially class diagrams and sequence diagrams. However, sometimes I find that after a long day of coding I begin to get lost inbetween method calls within the same ...
90 byte By
knyaza at 2007-10-2 19:43:05
Can I create dynamic object?Please answer as soon as possible...............
168 byte By
knyaza at 2007-10-2 19:43:51
I don't know how realize dynamic object.For example:Location loc=new Location();I want like this--: Location loc[variable] =new Location();
i dont know about encryption algorithm but, in my project i want to do cryptography both encryption and decryption
hi, i am working on a JSP/Java/Database application. fyi, i use JBuilder. how can i figure out what is the type of architecture/model used for this project?also, it seems that it uses "Persistence" and "Object Model" concepts. where can i learn more about this type of architecture?also ...
please suggest how to read content from PDF file.. If possible with Sample CODEThanks & RegardsRAHUL
852 byte By
xplodesa at 2007-10-2 19:50:30
HiI am writing a program that involves the following skeletal structure: The constructor initializes the main panel, which contains a Canvas, to which I've attached a KeyListener. Then, in another panel there is a button that starts a ``Thread'' (a while loop that keeps repeating with a ...
Hello friends,Should I say that the Manager acts as a Facade ?public class A{ public void methodInClassA() { }}public class B{ public void methodInClassB() { }}public class Manager{ private final A a; private final B b; public Manager() {a = new A();b = new B(); } public static void main(String ...
633 byte By
n_azmana at 2007-10-2 19:50:48
Hi,I'm doing research on MST using GA. I have a problem with the encoding to represent the allele. I'm using Determinant Encoding and i don;t know how to get all the combination of determinant code.My problem:i have an array(2D) as below 1231 223453nullnull65null4nullnull7null ...
Hi to all,I have to create a server. Server will be bridge between clients and another server. I want to make architecture with worker threads. When selector selects a key it is passed to worker thread, if available. If worker thread is not available selection continue until worker thread is ...
Assume that we're going to create a lot of instances of a class. Further assume that they're all going to store a value that is encoded somehow. Therefore in addition to accessor methods, methods need to be created to encode & decode the data.My question is, in terms of performance & ...
I wrote a simple algorithm to create Julia and Mandelbrot sets, but it always gets the same runtime error.This is my code:/** Gets the set for a rectangle.* Careful with Y coordinates! upwards is greater, not as in programming graphics!*/public boolean[] getSet(int width, int height, double ...
hey,So, I am making this airplane game for my Computer Science class, and I come across that I need to use the key class. I never really learn anything about the Key class and also how to load a image from my computer on to the JAVA applet? Thanks a lot if you can help me.
212 byte By
Chikua at 2007-10-2 19:59:38
I want to comapre two images, the second image here is a part of the first image i.e. a sub-image . I want an algorithm with which I would be able to check whether the subimage is a part of the first image
707 byte By
vlad123a at 2007-10-2 20:01:32
Hey well i have to make a project for my grade 11 computer science class and i wanted to do something hard. i was thinking of a game called tank wars. Here is an example of the game i want to recreate: http://www.addictinggames.com/tankwars.html. I just need to know any ideas any of u might ...
When I'm coding my apps and I'm going through lists ( very often ). I find it tiring to create an iterator or for loop for every little thing. I'd love to send "Code Blocks" to a List, a la Ruby / Smalltalk; and every element in that list has the code block executed on it. Is this in some ...
Hii JavaitesI have developed a application in Struts, EJB in Weblogic.Now i need to create the class diagrams of my application.I am thinking of reverse enginerring it using Enterprise Architect.Now i want to know in my class diagrams, wht classes will come ?Will it include my action classes, ...
Hello All!First off let me apologize if this is the incorrect forum to post this question. Now on to the question, I抳e been searching for a program that could give me a visual representation of the dependencies required for my program (much like a spider web looking diagram).I抳e done a bit of ...
993 byte By
stdouta at 2007-10-2 20:06:50
I am currently in the midst of migrating my existing C apps to sit on a Java platform. The app is legacy and interfaces largely with numerous hardware devices via RS232 with a main controlling program that sequences the business logic. Imagine a manufacturing system with many conveyor belts, ...
Our application runs in Fullscreen Exclusive mode and uses JOGL. We want the user to be able to access right-click Popup menus like in other applications. (Obviously, this isn't a game; but I figured I'd post here because game developers are the only ones likely to be familiar with Fullscreen ...
Alright, i'm using Murach's Beginning java 2 book thingy and well i'm having a small bit of trouble with using the rounding features. I'm only into chapter 6ish so i'm absolutely confused about most java termonology and cant figure what enumerations are or how to use them but anyways. i ...
125 byte By
incaa at 2007-10-2 20:10:15
I was wondering if any one can architect a online virtual trading system. Volunteers would be compensated financially.
856 byte By
Kovicaa at 2007-10-2 20:11:42
Is there any product out there that alows me to index objects?It should behaive much like an database index.What I want is this:I have an object that has four fields(formName, fieldName, propertyName, propertyValue) and I'd like to index this object in order to retrieve it.There are caching ...
We're making a game for our Java course and we're thinking of making something like Flash Flash Revolution, only in Java. Is this anywhere near possible? Or should we just make a tile-based game like Spyhunter...?I'd really appreciate some help or comments. ^^
Hi, I'm currently makin a program for an independent study project for school and am stumped as to how to set up a certain part of the program. I'm setting up a match card game and I need it to randomly arrange the cards when it starts off. I'm trying to figure out the best way to get random ...
751 byte By
Dim3a at 2007-10-2 20:15:16
Hi! I need some help :).I have 2 Vectors. The first is vDirs and that vector contains names of dirs, like this: 1|New Folder;2|New Folder 2; ... The number before the dir is the index of the dir, !not the index of the vector.The second vector is vFiles amd it contains names of files, like this: ...
Hello.I'm working on a project where I need to create Class objects out of all of the .class files in a directory and in any subdirectory. I'm trying to use the Class.forName() method.My problem is that I'm not able to pass a path to the .class file in the Class.forName() method. But I ...
1251 byte By
GKimseya at 2007-10-2 20:15:26
I'm a Computer Engineering student, so I have minimal experience with programming (200 level C and Java), however, I have a problem I'd like to tackle.I have read about the Glass Pane overlays that exist in every JFrame. I've also read how to make it visible, and I imagine drawing on it is ...
388 byte By
truehhha at 2007-10-2 20:17:32
Hello everyone!In a DOS-based console,if I want to encypt a file "m",I just use an exe file named "crypt" followed by the file name which is going to be encrypt.The command is: crypt m.Then press Enter,that is all.How can I do this in java? I know how to call an exe file in java,but how can I ...
dear all, i have a very important assignment and i require help badly.i have a program that connects to a server, the server works fine however i have a problem with some of the client code. my problem is that the client uses a function to connect and the same function to receive the code using ...
Lets say in an application there are the following componentsDatabase | |VDAOLayer | |VBO LAYER||VServlets|| VJSPsWhat design patterns does the above incorporate?My guess - DAO pattern.Is this a good enough design for a SAAS(Software as a service) application?What would be the drawbacks of this ...
6457 byte By
h3nrya at 2007-10-2 20:27:15
Hi, I have written a short program in Java that takes as input a text file containing an arbitrary number of mathematical sets (presumably with the property that none of the sets can be formed by union of any of the other sets, although thats not really important) and finds all possible ...