Seeks algorithms for downloading file from WWW

1120 byte By salmon739a at 2007-9-29 0:12:55
I have a big question for how many different ways for me to download file from WWW.Can someone list those methods and the "Java offical" classes/libraries that needed? Also which is the BEST and most EFFICIENCY?Here are some methods:1a. Download from html [bytes by bytes]- Create a connection ...

How Can I read 16 bits from gray scale image.

95 byte By berdaia at 2007-9-29 0:17:27
hi,Please I need a help for reading 16 bits from gray scale image.thanks .

Integer base conversion

487 byte By thib_gca at 2007-9-29 0:19:49
Hi folks :-)I'm looking for an algorithm that converts an integer from a representation in base B to a representation in base (B+1). I thought I would find that anywhere I wanted, but I actually can't find any resource... I'm just looking for ideas, so I'm flexible in what I'm looking for ...

Binary tree(level by level insert)

1133 byte By vincentvega55a at 2007-9-29 0:20:21
Hello, I already posted this artivle in the Forum "Java Programming" because I'm new to the Forum and didn't see the Algorithms part.. Sorry for the double posting.I'm trying to program a binary tree. It's totally clear for me to insert new (Integer) Values in an ordinary binary tree.I ...

How Can I read 16 bits from GE image

245 byte By berdaia at 2007-9-29 0:20:40
Hi,I want to read an image which was obtained from GE MR signa v5.2.image Size: 256x256Image Format: GE 16 bits per pixelHeader size: 7900 bytesso please how I can read 16 bits per pixel.Thanks .

haveing trouble with a parametric algorithim

1074 byte By lightxxxa at 2007-9-29 0:25:09
ok i never even got past algebra Anyways i understand code but everything im finding on the web concerning my problem, is well chinese to me.Im hopeing someone can understand my problem and simplify it for me.my primary goal right now is to understand how a 3d model of a realobject can be ...

List

363 byte By riponc007a at 2007-9-29 0:28:06
I have one problem. pls solve it by using Java.Problem: Write a program that merges two ordered list objects of integers into a single ordered list object of integers. Method merge of class ListMerge should receive references to each of the list objects to be merged, and should return a ...

Algorithm for determining # workdays

1242 byte By bkubicaa at 2007-9-29 0:29:04
Hello all,I am trying to figure out the best ( read: fastest and least memory intensive ) way to determine the next relative business day, given a start date, and a range. This means, NOT necessarily the next day. I have to skip weekends and holidays.I've written a "first-pass" at this, but ...

Multipolygon in Java 3D

631 byte By riponc007a at 2007-9-29 0:34:25
Problem: Here is an example string from a postgis geometry field. Write me a static function/s that returns a float array (or you can create an object)to store the values. Keep high speed and low memory usage as your top priorities. Make sure array or object keeps the polygon-ring-coordinate ...

Stack in Java

190 byte By riponc007a at 2007-9-29 0:34:30
Pls solve the following problem using Java.Problem: Write a program that inputs a line of text and uses a stack object to print the line reversed.Thanking u,Ripon

Linked List/List in Java

265 byte By riponc007a at 2007-9-29 0:34:34
Please help me to do the following by using Java.Problem: Write a program that creates a linked list object of 10 characters and then creates a second list object containing a copy of the first list, but in reverse order.thanking u,Ripon

Inserting integers in a Linked list/List in Java

290 byte By riponc007a at 2007-9-29 0:34:35
Please solve the following problem using Java.Problem: Write a program that inserts 25 random integers from 0 to 100 in order in a linked list object. The program should calculate the sum of the elements and the floating-point average of the elements.ThanksRipon

Concatination of 2 linked list objects of characters

340 byte By riponc007a at 2007-9-29 0:34:37
Pleas help me to solve the following problem by using Java.Problem: Write a program that concatenates two linked list objects of characters. The program should include method concatenate, which takes references to both list objects as arguments and concatenates the second list to the first ...

Recursive method to determine palindrome of a string

519 byte By riponc007a at 2007-9-29 0:34:52
Hello all,Please solve the following problem by using Java.Problem: A palindrome is a string that is spelled the same way forwards and backwards. Some examples of palindromes are 'radar," "able was i ere i saw elba" and (if blanks are ignored) "a man a plan a canal panama." Write a recursive ...

Print an array

310 byte By riponc007a at 2007-9-29 0:34:54
hi all,Please help me to solve the problem using Java.Problem: Write a recursive method printArray that takes an array and the size of the array as arguments and returns nothing. The method should stop processing and return when it receives an array of size ...

Print a string backwards by recursive function

368 byte By riponc007a at 2007-9-29 0:34:57
Hello all,Please solve the following problem by using Java.Problem: Write a recursive method stringReverse that takes a character array containing a string as an argument, prints the string backwards and returns nothing. The method should stop processing and return when the terminating null ...

Find the minimum value in an array by recursive function

359 byte By riponc007a at 2007-9-29 0:34:58
Hello,Please help me to solve the following program by using Java.Problem: Write a recursive function recursiveMinimum that takes an integer array and the array size as arguments and returns the smallest element of the array. The function should stop processing and return when it receives an ...

Data Structure Problems

799 byte By welcometohella at 2007-9-29 0:39:49
can anyone tell me how can i solve this problem .. please help me out1)Design a FSA which accepts all strings over {a,b} which end in b, and in which every b (except for the last one) is immediately followed by two or more a's. 2)Convert the following into a deterministic finite state ...

securing mersenne

536 byte By silkma at 2007-9-29 0:41:32
hello,firstly, i am not referring to the java cryptography api in any fashion.i'm interested in using the mersenne twister random number generator, however reading the documentation it suggests it is not cryptographically secure... fair enough.so, how can we secure it? it's been suggested to ...

Find the minimum value in an array by recursive method

766 byte By riponc007a at 2007-9-29 0:43:46
Problem:Write a recursive function recursiveMinimum that takes aninteger array and the array size as arguments and returns the smallestelement of the array. The function should stop processing and return when it receives an array of 1 element.I have solve the problem by following way. But there ...

How to calculate pixel posns for objects to display on panel?

557 byte By Sol21a at 2007-9-29 0:47:50
Hi here is the problem i have i want to display a number of objects on a panel, and the objects to be displayed are stored in a vector of vectors. The objects that need to be displayed are for a directed graph. So for example if in a vector was stored a|b|c it would mean a is connected to b and ...

Conversion of string to Capital letters

728 byte By riponc007a at 2007-9-29 0:52:12
Problem: Write a program that reads one line of text and then prints it with all its letters capitalized.Hello all,I have solved the problem very simple way. But i need more ways. can anybody help me to do this others ways.Here is my code and it works fine.public class CapitalizedLetters{static ...

how to create a dynamic class

861 byte By 80113956a at 2007-9-29 0:54:59
hi,i want to create new class on fly. The simulator program (my main program) promts the user to enter class name and allows the user to enter the attributes and their types as well. The values accepted by user, will further be created on fly in form of a class.For example imagine a program ...

Maximum and 2nd longest diameters of polygon

11463 byte By johnkalaigiana at 2007-9-29 0:57:26
I have a polygon in the form of a Point[] of Cartesian (x, y) pairs?for the sake of argument lets just say it齭 a simple closed loop and no crossing sections and I would like to calculate the second longest perpendicular diameter based on the maximum diameter which I have obtained by the ...

Encryption

117 byte By Aleinada at 2007-9-29 1:00:09
Hi,Well, I need an algorith to encrypt information and also the inverse operation, Do you know someone?

Get all combinations of an array as a string

1398 byte By Jacobssona at 2007-9-29 1:05:31
I want to get all combinations of an array as a string.For example;String[] arr={"| x |","| y |","| z |"};should give a return value as this:| x | | y | | z || x | | z | | y || y | | x | | z || y | | z | | x || z | | x | | y || z | | y | | x |It's possible to do with some for-loops like:String ...

printing a string blanks removed

190 byte By riponc007a at 2007-9-29 1:10:42
Problem: Write a program that reads one line of text and then prints it with all its blanks removed.Please help me to solve the problem with java.Thanking u,Ripon

Path Finding

540 byte By WhiteChocolatea at 2007-9-29 1:10:53
Hi all,I'm facing writing a path finding application and I wanted to get some input from the community.I figured that my options for writing a path finding application are:- Using the graph datastructure for each point on my map and then use the well-known graph algorithms to discover routes ...

Vowels

205 byte By riponc007a at 2007-9-29 1:10:57
Please help me to solve the following problem with java.Problem: Write a program that reads one line of text and then prints the number of vowels that were read.Thanking u,Ripon

Word Count

240 byte By riponc007a at 2007-9-29 1:10:58
Hello all,is there anybody to help me to solve the following problem with Java.Porblem: Write a program that reads one line of text and then prints thenumber of words that were read.Thanking u,Ripon

Calculate time delay

386 byte By stfndlna at 2007-9-29 1:21:52
For my current project I need to calculate the time delay. As information I have a starting point with the start time, end point with the end time and the distance between those two point.I also have the current position of the object between those two points.How can i calculate the delay ...

get exponent from double

399 byte By donhomera at 2007-9-29 1:22:10
hi,i want to retrieve the value of the exponent from a double.i tried this, but it does not work:double x = 22.0/700000.0;long l = Double.doubleToLongBits(x);double exponent = Double.longBitsToDouble(l & 0x7ff0000000000000L);the exponent should be -5;0x7ff0000000000000L should be used to ...

sliding window

784 byte By Parmeniona at 2007-9-29 1:31:34
I have an interesting problem that I'd welcome some thoughts on.I need to track a proportion of success/failures in a sliding window of discrete events.In English :-) the user says "If at any time 7 out of the last 10 events were failures, let me know."Now this is easy enough to do with a ...

Good extended math + utility class

345 byte By detlya at 2007-9-29 1:35:20
It has proved surprisingly difficult to find a free "extended" math class for java - all I'm after is a utility class with things like erf, cosh, sinh... things that java.lang.Math lacks.I must be doing something wrong, but if some altruistic person could point me in the right direction, I'd ...

Faster Way Of Doing 'Contains()' Algorithm?

5366 byte By woollybarra at 2007-9-29 1:39:00
Hi folks, I'm writing an application using SWT instead of Swing. I'm creating an application that shows a map that 'lights up' different sections as the user moves the mouse pointer over it.This would be a fairly simple task in Swing as Swing has a Polygon class with a 'contains()' ...

Reference

191 byte By riponwasima at 2007-9-29 1:45:42
Hello all,I need reference for study "Data Structure and Algorithm". Pls provide me some books name, website name or others from where i can study Algorithm.Thanks

backgrounds in Java

369 byte By aligatorsa at 2007-9-29 1:57:45
Hello my Java friends, I am hooked on Java and my new project is to see if I can create a background in Java and use that for my webpage. 1. Is such a thing possible?2. How do I get started(have no clue)?3. Does anyone have a sample?//Thank ...

time validator

2775 byte By rarygeddia at 2007-9-29 2:11:23
I am trying to come up with some way of producing an applet that will deal with the following:In this task you are required to design, create and test a new class called newTime.1. Design a solution for a new class called newTime. a. public boolean valid24Time (int hh, int mm)The hours (hh) can ...

QuasiSort:

3306 byte By mgbolusma at 2007-9-29 2:18:08
Here is a little background of mt problem. It's not a required read. http://forum.java.sun.com/thread.jsp?forum=4&thread=412998&tstart=0&trange=15I have an interface QuasiComparable to aid me in a sort of "lazy" ordering process. QuasiComparable items may or may not know how they ...

URGENT

258 byte By freddie1983a at 2007-9-29 2:53:53
i'm looking for a recursive method to determine from a string which letters are vowels. these vowels have to be returned as one stringexample from the word: helloplz could somebody help, it's very very urgent!!!thxfreddie

use text file as a database and search records

240 byte By hnk_99@hotmail.coma at 2007-9-29 3:00:25
I am working on a project for which instead of using JDBC and database I need to use a text file as a database and search records from that text file. Could you please suggest a way to do it and do it efficiently. THanks.Louie

Can someone tell me why

823 byte By labikaa at 2007-9-29 3:03:42
Can someone tell me why is the ctrl not returned back to the println stmt of method counter after the method counterRecursion is executed?pgm-class Trial1{int ct=0;void counter(String word){counterRecursion(word);System.out.println(ct);}void counterRecursion(String w) {if (w!=null) {switch ...

Bezier Curves and Sampling

954 byte By rkippena at 2007-9-29 3:05:24
I have an algorithm that draws a Bezier curve using n control points.I have a Bezier curve class that has a method called:eval(double t, Point2d p)that given a parametric value t, calculates the location and stores it in p.--The algorithm is recursive. It starts with t1 = 0.0 and t2 = 1.0. The ...

Simple and lightweight zipping algorithm

408 byte By lexzeusa at 2007-9-29 3:05:51
Hi .. I am developing program in MIDP (J2ME).I have a data which is stored in byte[], eg:<code>byte[] x = new byte[1024];for (int i=0; i<1024; i++) x[ i ]=(byte) i;<code>Now how I zip x[]? I want to serialize x[] to another bytes which should not take 1024 bytes, eg: 200-300 ...

understanding knuth

291 byte By drellima at 2007-9-29 3:08:53
After n+1 years in the industry, i have decided, out of idle curiosity, to read 'The Art of Computer Programming'.However the maths is over my head. Can anyone recommend any good sites/books where i can learn the maths (discrete etc) Knuth uses well enough to understand him?

simple list randomizer

153 byte By nebnebbena at 2007-9-29 3:20:51
HelloPerhaps you can help me.Got a list and want to sort strings containend randomly. ? something like randomlist(); ?

simple list randomizer

190 byte By nebnebbena at 2007-9-29 3:20:52
HelloPerhaps you can help me.Got a list and want to sort strings containend randomly. ? something like randomlist(); ?reply to nebben@gmx.net please

Game AI

228 byte By phlippinga at 2007-9-29 3:22:11
I'm making a clone of [url= http://www.thejab.com/newsite/balm.html]this game[/url].I've got the basic game done, and you can play 2-player, but I'm having trouble writing an AI for the computer.Any ideas?

Extremely easy problem

1583 byte By Lord_of_the_chaosa at 2007-9-29 3:37:46
This might be better on ALT or Game forum, but well it's about algorithm.Hi folks. I know this forum was hammered by a high amount of students with few simple problems and you might like to use your brain on some real problem, not something that was produced by... So lets show it. Lets say you ...

Minimization routine

418 byte By Pauljonesa at 2007-9-29 3:42:19
HiDoes anybody know if any free libaries or code exist that can perform minimizations.Often I have functions of several parameters coded up in Java, and I need to find the combinations of parameters that give the (hopefully) global minimim. How would I go about determining these parameters (and ...