332 byte By
fdepinea at 2007-9-28 1:28:34
Hi.I have a big problema: float type is not supported by MicroEdition.Well, I need to do a multiplicate and a division, so I need to emulate by anyway...For example:(4,75 / 30) * 3600The result for this need to be = 570How can I do that?Please, help me if u ...
922 byte By
jenny_a at 2007-9-28 1:32:36
Hi everybody!I have a delicate sorting problem and may know how to solve it, but my brain gets stuck with the implementation! I have a sorted LinkedList. The listed objects are sorted after an attribute: MyObject.time and looks like: [lowest .... highest]. Dynamically I want to (during runtime) ...
1546 byte By
roibma at 2007-9-28 1:37:11
Hello there,I need to code a function that returns the value of the next id fieldin a table(something like sequence.nextVal does in Oracle).This might look pretty easy but there are many different ways to do it.I'll list bellow some I've thought of:1) I create for each table that has an ...
Technology can be seen as intention amplification rising at an exponential rate. Research and development opportunities exist in the developement of "right use of will" to help the dna achieve its implicit agenda at an accerated rate. Soon, in our world, we will experience an explosion of ...
a code segment:********************************.....class Point{public int x; public int y;public Point(int x,int y){this.x=x;this.y=y;}.....Vector points=new Vector();points.addElement(new Point(1,1));.....******************************How to determine that vector points contains ...
119 byte By
cgpenga at 2007-9-28 2:02:16
i face a problem to writing the java code regarding data mining...association technique...any recommendation?thx
148 byte By
StuBluea at 2007-9-28 2:09:31
I have an assignment due soon in Java. My problem is i can read the code, but unfortunately cannot problem solve. If interested get in touch.
Hey people! I'd really appreciate any help you may be able to give me on this problem, I'm not too far off tearing my hair out :)Basically what i need to do is find the longest possible path through a Graph data structure (edge list implimented), I've looked all over the web for information, ...
1530 byte By
Tykena at 2007-9-28 2:16:42
Hi!This is a long one, but please bare with me. :)I'm currently written an application that does the roundpairing of a chess tournament. I have a class Managerthat handles the pairing. I also have a class, Analysis, that issuppose to analyse the possible place a player can get.This option gets ...
896 byte By
chj1a at 2007-9-28 2:17:24
Hi,i want to implement a method for arithmetical addition or substraction of integers stored in a byte array.The integer data will be received ascii coded, byte per byte and theoperation must be done also byte per byte (but short values are also possible)!Sample interface:public byte[] ...
364 byte By
D-Gena at 2007-9-28 2:24:34
hey, i am writing a plagiarism detection application within Java, for my Honours Degree, and was looking for help on which algorithm a can use for comparing two text documents, for textual similarities.i dont really know much about this field of computing (text compaarison), so any relevant ...
I need to access data from a 3rd party source but the numeric fields are stored in Microsoft Binary Format. Does anybody has a java source code of procedure that does conversion between MSBinary float to IEEE float (Java float)?
408 byte By
rapsysa at 2007-9-28 2:44:04
I'm just curious how the JDK reads the contents of the JCreator Editor Environment...Meaning..int length=0;..is read by the compiler as a integer variable length with 0..Ifever, is there a way for a programmer to throw a string equation to the compiler.... string sample = "int length=0";and ...
295 byte By
miciulia at 2007-9-28 2:48:54
I need some motion detection functionality.As far as I can see, this will mean comparing successive frame-grabs (i.e. still images) obtained with JMF.Wondering if anyone can direct me to any published algorithms or useful literature regarding image comparison.Thanks.
I've been learning Java for 3 months and I want it to be my whole new world. I'm trying to get a job in Indonesia EuronetWorld. They need Java Wireless programmer. I want to learn about it but where to start?I only got right now is JAVA 2 Weekend Crash Course by Julio Sanchez and Maria ...
I am trying to get an example of a search algorithm called a push down atomina I think that is the name but not sure.thanks,steve
347 byte By
fooFiga at 2007-9-28 3:09:25
I'm writing a compression utility for university but I don't have lotsa ideas.Does anyone have good ideas for a easy-and-a-bit-smart compression? (not just CSSD - I mean the one that squeezes just files that are like AAAAAAAAABBBBBBBBCCCCCC etc...) I read Houffman, Saucerman and the Sandwich ...
724 byte By
ADBROWNa at 2007-9-28 3:14:51
Hi there,Can anyone suggest a layout for an algorithm which will allow a shared editor to handle keytyped events and have that mirrored in the listening client?So far the received packets get added to a JEditorPane by a setText() call, but this is useless as it overwrites anything in the ...
568 byte By
ellogia at 2007-9-28 3:15:44
Hi!I'm trying to develope a point sorting algorithm, but I need to do it lexicographically, and I don't know how. I have a set of segments, and I need to sort its points according to the next rule:(x,e,y) , where x and y are the usual coordinates and e=0 for a left endpoint of the segment and ...
please help me to sort out my if statement. Because, my if statement never ends. It goes on to the next else statement after completing the task of the if statement.Below is the coding:if ( Age<25){price = inputBox.getDouble("Enter Destination Price");subtotal = (tickets * price);Total= ...
652 byte By
EMdYa at 2007-9-28 3:32:06
Hi, i齧 having trouble trying to write a methode to unpack a string packed with the following methode.can some one tell me how to write the unpack methode ?thanks.public String pack(String s) { byte[] a = new byte[16]; //If the string is an odd length then pack with an F if ( s.length() % 2 == 1 ...
242 byte By
RudolfHa at 2007-9-28 3:34:34
Hello To all in the forum,Will anyone please send me any web urls' or book isbn numbers you might have on algorithm design, explanation or just plain existing algorithms.It would be much appreciated, thanks.Cheers
453 byte By
nille40a at 2007-9-28 3:50:24
Is there any good algorithm for comparing two strings? For instance, - 'hello' compared to 'hello' would return 1. - 'hello' compared to 'hallo' would return something like 0.95. - 'hello' compared to 'It seems like the wind's kicking up' (Jay Leno's on - I quoted him) would ...
323 byte By
prshyama at 2007-9-28 4:05:30
I have a byte array of size 4. Say for example byte[] arr = new byte[4].How can i assign an int which is > than 127 to the array.say arr[0] = 200 cannot be done as it is > 127.In this case how do I split the int so that i can fit it in the array. Is there any general methodology for ...
164 byte By
vladisfa at 2007-9-28 4:24:43
Hi All ,Please send a good stuff references about Java Collections performance.( Elapsed time for access , update , etc...)THANKS A LOT!
please help me to rotate a image about specific point (e.g center of image,not Point(0,0).Thanks you!
151 byte By
Lucyj23a at 2007-9-28 4:43:59
Hello everyone, am a little stuck, heck alot stuck. Need to create a genetic algorithm in Java and need help fast! Where do i even start?
is there any algo built in java to scale up or down a 2D matrix.....
is there a class that provides algorithms for handling matrices ( such as SVD, eignvalue decomposition and more... )
What is the A-Star algorithme?
835 byte By
Flowyesa at 2007-9-28 5:13:17
The requirement is as follows :We have a window with the height=d and width=c. In a coordinate system this window has the coordinates (0,0) (0,d) (c,0) (c,d).we also have a triangle with arbitrarily given coordinates.If it's the case that the triangle is partially inside and partially outside ...
1805 byte By
ma001sba at 2007-9-28 5:27:50
hi everyone i'm currently working on graph program,i dont want todraw a graph. but i want to use vectors to display the edgesthat are connected to each other in a URL.so basically the nodes will be the links and i have to display what links are connected to each other.I have created the ...
Hello,I would like to declare a variable number of parameters and the solution I've found is to make the name of my parameters generic For exemple when I want n parameters I would like to do this:int i=0;String var+i="value1"; (> var+i in this step would be : var0i++;String var+i="value2"; ...
285 byte By
nrlza at 2007-9-28 6:14:28
Does anyone know a mathematical equation that can reverse the order of digits in a number. An equation that avoids loops and is completely mathematical (avoid conversion to Strings).e.g.,(int)1654 (one thousand six hundred and fifty four) to(int)4561
Hi there,at the moment i am doing some research to Genetic Programming. I have implemented some expression trees ((a + b) * c) but have some problems printing the tree. Therefor i use a recursive method like tihs: public void printInOrder(){ if(left != null){System.out.print(" ...
202 byte By
Proroka at 2007-9-28 6:41:01
Some people don't know how to make linked lists and binary trees. mabe some of move advanced programers will share thei knowlange aboute best solutions building tree structure an list structure.
Well, I supose that's an attention getter at least. But I have a related problem. I wrote a program a while back in Visual BASIC which did a simple unicode encryption. It took a password and added the value of letters within your password to the value of letters within your message to be ...
I am performing a complex search and get a List of Object. Now, the problem is I have to sort this list in three levels. That is, If I have Object like this public class A { private String id ; // unique for every record private String attr1; private String attr2; private String attr3; private ...
131 byte By
strassaa at 2007-9-28 7:10:35
I have some series of samples of a signal, I would like to estimate somehow the dominant frequency of the signal. tnx
Hi!I'm about to implement a matrix class that need som kind of "compacting" support, meaning:If the the following matrix (3x4) is compacted:[1][0][2][8][7][0][3][9][0][0][0][0]The resulting matrix (2x3)would be:[1][2][8][7][3][9]Column 2 will be removed since it's empty (only zeros)and row 3 ...
hi guys,I am doing a multiple thread app. There is something in my mind and need your guys advice. Here is my question. Suppose I have a big array needs to be filled in, and I want to have several threads to do the work for filling in the data and one thread is to display the data. For example ...
Here is my problem:I am trying to sort a known number of integers of different values, into "fronts." The first "front" contains all the (index locaitons of) integers with the lowest value; the second "front" contains all the integers of the next highest value; etc. etc. The worst case ...
Hi.. i'm in a bit of trouble. I need to calculate the dynamic bytecode execution frequencies in a program, i.e. the bytecode name & number of times executed. Can anyone help?Thanks.
What is the advantage of Hotspot VM over Classic VM? Does the hotspot vm use method inlining?
1847 byte By
Masom17a at 2007-9-28 8:17:29
Hello,i am a relative beginner in programming and have to solve a problem with sorting and analysing lists.the case:i have a datastructure (Vector) wich contains references to a second datastructure (also Vector). The first one handles spezial objects (extended Vector) from the type of the ...
java.util.Stack extends Vector, and uses it to maintain the Stack.Why (of all things) is Vector used?ArrayList would perform better wouldnt it?And using LinkedList, or custom Link objects would be a better design, no? Is this a leftover from the days that people had no faith in Java's garbage ...
hi all,I am developing an appointment app. It has calendar and todoList. I have complete the calendar part and start to link up the appointment. I have calendar on the left split frame and appointment on the right. And whenever the user click on the day on the calendar, it should show all the ...
1519 byte By
yundia at 2007-9-28 8:36:39
i wanna implement a operation that calculate a closest point to a Line from one point.the signature of the operation should bepublic Point getClosestPoint(Point p1, Point p2, Point target);the point 1 and point 2 form a line , the method should return a point on the line that is closest to the ...
[I'd never thought I'd be back in here but well... at least I can use "my" Algorithms Forum for the first time.]I need some help about finding an appropriate algorithm for a spell-checker's "suggestions" list. The spell checker works simply as a "dictionary look-up", with a dictionary file ...
How do you convert a decimal to a binary?