371 byte By
hemag at 2007-9-30 22:19:23
Hi,I am trying to evaluate an expression like this =IF(A1<0.125,0.0005,(IF(A1<0.25,0.00066667,(IF(A1<0.5,0.00075,(IF(A1<0.75,0.000916667,0.0010833))))))) in java. In excel it is easy but i cannot use that. I cannot use any free downloads. Is there any code sample which I can use to ...
Anybody know where I can find a Java implementation of the R-Tree datastructure?Googling for aquite some time now without seeing anything useful...
61 byte By
berdai at 2007-9-30 22:20:35
Hi,how can i use an api win32 function in java?
365 byte By
welshboy at 2007-9-30 22:25:55
HelloI am writing a file to a server using 64kb block sizes and calculating the alder32 as I go.When I read back the file using anything different to 64kb blocks Adler32 calculates (Intermittently) a different Adler32 hash.Is there a known problem with calculating the alder 32 with different ...
1321 byte By
barrytlf at 2007-9-30 22:30:40
Hello,I'm have difficulty figuring out a some code to traverse a composite struture that I have created and was hoping someone could point out some code to help me.I have a classRightType-String name;String description;List conditionTypes;RightsType childRightsType;The story goes as ...
i am developing a plug-in for eclipse. for this i need to remember info about lines of code.eg. from fileX.java you copied lines 10 - 20.chances are ten mins later those lines will be 40 - 50.i need to keep track of them moving, so lien numbers are not reliable.string matching won't work ...
339 byte By
sylviae at 2007-9-30 22:41:25
The overarching category for this forum is "Architecture and Design"It's a pitty that human factors, and indeed, in particular the more subtle characterisc of human vision, seem to have been ignored in the design of the new format.Has anyone discovered the auto-signin mechanism yet? Does it ...
663 byte By
klana001 at 2007-9-30 22:45:47
Is there a simple algorithm to iterate over all the elements in an array given a constant stride?I am currently using a circularly linked list to popluate a temporary array with indecies to of the actual array by traversing through the linked list (stride) and then removing the node from the ...
Hi, Im working on a program to extract dialed numbers from a wav file. The wav file has a recording of a phone dialing, therefore using DTMF. I have to do a FFT on the data to get the frequencies. So far I've been able to get pass from the wav file to a byte array, and then to a double array ...
110 byte By
berdai at 2007-9-30 23:11:36
hi,What is the name of the class that i can use to know the name of the platform .thanks.
2277 byte By
Oreo at 2007-9-30 23:16:06
Hi,I am writing an application that needs to compute the exact size of a file. I need for this function to work in Windows and UNIX.One of my issues is that the length() method provided by the File class does not return the exact size of all files. The essence of my problem is that I cannot ...
Hi guys;i need help to implement the following method:suppose i'm using an array : char pix[250][250] to store the color of a pixel.i want to implement a method :void F(int x,int y, char c)the purpose of this method is to fill the region R with color 'c' where region is defined as follows: ...
HiI am trying to change a heap allocation from first fit to best fit. I understand that for best it i will have to traverse the whole memory block and find the block which is closest to the one asked for. But, how do i keep track of the differences. Here is the chunk of code for first fitfor (x ...
336 byte By
0zero7 at 2007-9-30 23:19:23
Hi all,I'm developing an automata related software. Sometimes I get a "StackOverflow" error using a recursive method. I would like to change de JVM stack size using the Xss command, but I don't know how to do it. I also don't know wich size could be the best one. Which values could be ...
798 byte By
pirata at 2007-9-30 23:24:39
debomfc@bol.com.brHi guys;i need help to implement the following method Tower of Hanoi:I need use stack (push, seek)import java.util.*;public class Hanoi {public Hanoi(){}public static void main(String args[]) {int ndiscos = 4;Stack Pinos[] = new Stack [3];for (int i = 0; i < 3; i++) {Pinos ...
592 byte By
mehdi62b at 2007-9-30 23:25:04
Hi experts,Suppose I wanna design a program for a faculty,I should consider students,employees,...but here someone could be students and employee together...I think here I need multi-inheritance but there is no multi-inheritance,so I designed it like this, an interface for students,a class for ...
443 byte By
Arathron at 2007-9-30 23:25:59
Wich is the best way to implement the "// wait till codeFill() is called from some other object" part of this algorithm?:public class SomeObject { public void someMethod() {// exec code AcodaA();// exec code BcodeB();// exec code CcodeC();// wait till codeFill() is called from some other ...
HELP ME PLEASE!!! Ive been trying this for ages but just camt get it to work without taking a shortcut which I can do without.I have a node class for the doubly linked list as below:public class DLLNode {public int info;public DLLNode next, prev;public DLLNode(int i, DLLNode n, DLLNode p) {info ...
141 byte By
alleona at 2007-9-30 23:36:48
Hi,Just wanted to know if somebody is aware of an open source java kernel for finite element method solving ...Guillaume
Hi..Could anyone please tell me how to convert a byte array (say, of size 8) into double data type value?
1489 byte By
scifoa at 2007-9-30 23:37:29
public static Set getAllSets(TreeModel model, Object node) {Set result = new HashSet();int child = (int) Math.pow(2,model.getChildCount(node));for(int i=0; i<child; i++) { // foreach powerset of the immediate children Set set = new HashSet(); for(int j=0; j><model.getChildCount(node); ...
Hello,I have a question to the following problem. I want to parse a (huge) text file and don't know which strategy I should use. I read with an regex today, but there are much more report types that should be analyzed.1C P U A C T I V I T YPAGE1 z/OS V1R4SYSTEM ID DV02 DATE 11/15/2004INTERVAL ...
313 byte By
csbhama at 2007-9-30 23:38:15
Has anyone ever implemented the Recursive Best First Search algorithm in Java. Please tell me your pseudo code. I looked up in the book and got totally lost. And by the way, with the evaluation function f = g(n) + h(n) applied in the 15-puzzle problem, if h(n) is the Manhatan distance, then ...
699 byte By
akoso16a at 2007-9-30 23:42:07
Hi all,I'm trying to come up wtih an algorithm that I can use to detect patterns within images. The basic idea I'm starting with is to take an image of a dice and determine how many dots are on it (but to make sure to use actual pattern recognition). I've actually done some reading on fuzzy ...
HELP - MERGE SORT ON DOUBLY LINKED LISTAuthor: rehan_on_a_mission@hotmail.com Dec 1, 2004 11:41 AM HELP ME PLEASE!!! Ive been trying this for ages but just camt get it to work without taking a shortcut which I can do without.I have a node class for the doubly linked list as below:public class ...
588 byte By
Nibura at 2007-9-30 23:47:00
i know is this an game ? but i think that is overlaps so am puting on on both forums i have never written AI before and i think this game that i am making is very difficult it is "Spite and Malice" just a two player game can any body give me so tips on how to start the AI and how to provent ...
Hi,I am currently working with medical CT images of the lungs. The main aim is to detect lung cancer by analyzing lung nodules (circular-like patterns in CT images). At first, I thought it would be a good idea to perform an image enhancement especially on circular structures. I did some ...
1536 byte By
K_Allana at 2007-9-30 23:52:57
Hi,I have a char[] and I want to create multiple Strings from the contents of this char[] at various offsets and of various lengths, without having to reallocate memory (my char[] is several tens of megabytes large). And the following function (from java/lang/String.java) would be perfect apart ...
Hi all,as the subject implies I want to know which sorting algorithms perform better: the array sorting algs in java.util.Arrays or the List sorting algs in java.util.Collections. I know that both of them use the same (logical) implementation of an enhanced mergesort. But I guess that there ...
public static void test() {Integer two1 = new Integer(2);Integer two2 = new Integer(2);System.out.println(two1 >= two2);// OKSystem.out.println(two1 <= two2);// OKSystem.out.println(two1 == two2);// PROBLEMS!!!}
129 byte By
ayaha at 2007-10-1 0:13:47
HiCan anyone help me in writting an algorithm for a line clipping algorithm that uses a triangular clipping region?
1454 byte By
JPutua at 2007-10-1 0:25:04
I'm trying to convert byte[] to (ASCII) String with following code:public String convert(byte[] b){int l = b.length;char[] chAr = new char[l];for(int i = 0;i < l ; i++){chAr[i] = (char)b[i];}return new String(chAr);}Please let me know the faster approach. It may seem very simple. It's not ...
361 byte By
Jago30a at 2007-10-1 0:27:55
Hi everybody,I need a strings generator that given a set of chars (i.e. S = {a, b, c}) and a variable k = n , gives in output all possible strings whose lenght is 1, 2, 3, until n.i. e. S = {a, b , c} ; k = 10s1 = as2 = bs3 = cs4= aas5= abs6 = ac... and so ...
I am asking for a program that takes as an input an integer and print out the prime numbers btw 0 and the input integer . For exemple , if we do input 20 , the program should print out : 235711131719
i need an algorithm program that factorise numbers and print out its factors .For exemple , when we do input 150 , the program should print :2355which mean that 150 = 2*3*5*5and 10x for helping
331 byte By
jnima at 2007-10-1 0:32:46
hi,I have an infix format as shown below, i need to know how does this logical infix expression can be converted in to postfix expression.How do v specify the IF THEN ELSE of the expression in the postfix expression.IF:VarX :> :123 :THEN :VarY := :234 :+ :VarSAM :EIFThanks in ...
309 byte By
dido77a at 2007-10-1 0:39:12
I need to write a general procedure to test a software once it's done (and not while I am programming the application) : what sould be tested, in wich sequence, how, etc. Does somebody know any kind of procedure related to this or an internet address that could help me with ...
Being too lazy to type out the abbreviations for all 50 states in the union, I was wondering if anyone knew where I could get a class with a method that spits them out (returning a String array, perhaps) ? I'm looking for something I could use as follows:LazyAbbreviations whee = new ...
Hi,I am a newb and i am hoping if someone out there that can help me to share the algorithm or at least give me the clue, how can i decode the AIS data. These are the sample of AIS data ...
798 byte By
darnessa at 2007-10-1 0:43:56
I have a JavaScript question, and although this is a Java Forum, I'm sorry but I don't know where else to post this.I have a form where a user enters a 3-digit number. The code takes the number and increments it by 1 as long as the number entered is not 999.The problem is that if the number ...
By the way, I'm not sure if this is a preexisting sort or if it has a name or anything.Okay, I was just writing a method that sorts an array of ints with very, very, quick runtime- much better than Quicksort and even Radix. (in many cases)public static int[] sort(int[] a){int[] sorted = new ...
Hi, i was wondering how fast a text compression program should go, i have my code all ready, but it geas extremely slow compared to professional ones and I wanted to know about how fast a basic text compression program should go, thank you for your help.
Hello,I'm Student in Germany. I have the task to produce a gaussian algorithm in Java.Now, I tried to implement it recursively. The current version of the programm should only bring the matrix to the triangle form where the elements of the diagonal are 1, all elements below the diagonal should ...
81 byte By
yenkaya at 2007-10-1 0:52:54
where can i find the java source code for g.726 data compression standard?
How can you use print.* to enumerate print jobs in the queue? Would anybody have sample code to enumerate print jobs, or there attributes in the print queue?Please help me :).Brandon
greetings to all: Please I need help to be able to read the numbers of series (ID of Devices) of the following devices from Java CDROM, Hard Disk, MAC address (net card), and video card. For example: the numbers of series of net card is 00-12-FF-FF-FF (Mac address)I need this number for a check ...
In the API for the static sort() method in the Arrays class, the versions for arrays of primitives (ints, etc.) use a "tuned Quicksort," but the version for arrays of Objects use merge sort. Is there a reason for this?
111 byte By
th3era at 2007-10-1 1:15:19
Hi allIm a new member & Im looking for a circle cliiping algorithm...can you help plz?
264 byte By
awwadcoa at 2007-10-1 1:15:43
can any one tell how i can call e.getPoint from another method in the same class that i defined in it mouse listner.means.that i have button event and mouse event and i want to get the point from the mouse event and use it in the button event.
640 byte By
iqboxera at 2007-10-1 1:17:00
Hi,I'm developing an application that calculates and solves maths problems (especially calculus/algebra types), using JAVA.A bit like Maple, Mathematica etc. (for those who have used these before).Right now I'm stuck.I want to have a parser that takes in user input eg. Integrate[3x^2] or ...