888 byte By
pk2068a at 2007-9-28 15:49:54
I know how to use querries, but i don't know how to form an INSERT sql String, so please help me!for example:Connection con = null; try{Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");con = DriverManager.getConnection("jdbc:odbc:V_PB2");con.setAutoCommit(false);Statement s = ...
3858 byte By
owsa at 2007-9-28 15:51:36
I have a problem with these programs.When complied, error message is that cannot resolve symbolsymbol:method linearEquations()location :class MatrixOp p.linearEquations ^Question:how do i link the 3 files together? :how to solve the error msg? :anything wrong in the programs?--class Input ...
807 byte By
DLida at 2007-9-28 16:02:48
Hi, could someone help me in producing an algorithm involving k-subsets.For example if there are n numbers 1,2,...n a user can then select how many numbers they want to see...for example we have 5 numbers {1,2,3,4,5} and a user wants to display 3 numbers the values are(1,2,3) (1,2,4) (1,2,5) ...
203 byte By
jony4_ua at 2007-9-28 16:05:39
Sir,I am making a 30 days evaluation software, please send me code on how to compare date with system date so that when a user installs the software it stops after 30 days.Thank you.
Hi there! Well I'm quite new to this, therfore I would greatly appreciated if some1 could help me with my assignment.Assignment:Make an applet that makes an object(red oval) move around the applet window by using only four buttons(Up, Right, Down, Left).I managed to do the button and the oval ...
Ok...I have a Vector of Person objects which contans a first, last, adress, and phone number. I need to be able to sort this Vector three ways by first, last, and the address. I don't care about the phone number.My Person class extends Comparable and has a compareTo method. Problem is, I am ...
394 byte By
arya_18a at 2007-9-28 16:23:19
HiI need to do a search on the entire filesystem of my pc and list the mp3 files that are found....can anyone suggest a way to do it. File.listRoots will give the file system roots.The main doubt i have is in deciding whether to create a file object for every directory that is encountered. Is ...
472 byte By
grimzaa at 2007-9-28 16:24:36
Assalamualaikum,Can anybody help me making a square root algorithm in java?But I have to use the linear approximation formula...L(x) = f(a) + f'(a)*(x-a)where x : the number that we want to take the square root froma : the nearest point to x, sqrt of a is an integerf'(a): the derivation of ...
I am just trying to find out if anyone knows of a data structure that is similar to a hashtable, with the exception that I need to be able to access a KEY given a VALUE, as well as the standard access of a VALUE given a KEY.Hashtable only allows lookup by KEY, not VALUE.Thanks, ...
112 byte By
SalarMa at 2007-9-28 16:44:50
I require some assistance in developing an algorythm using recursion for pascals triangle. Please help...
Does anyone have a good algorithm for rgb -> chroma conversion and chroma keying?
169 byte By
aliceea at 2007-9-28 16:53:30
I need to know the algorithms for electric generation, transmission and distribution? Is there any available java source code for such things?thank you...
140 byte By
DWARa at 2007-9-28 17:01:05
I have a Stringex:"((3+2)-1)"and want the result of this expression in int.How culd i do that?Tkx.
703 byte By
armca at 2007-9-28 17:04:57
Hello everyone, I would like to ask u to help me in developing code for the region growing segmentation algorithm for digital images.The algorithm perform1. start by choosing an arbitrary seed pixel and compare it with neighbouring pixels.2. region is grown from the seed pixel by adding in ...
I am supposed to read input from a text file and output the frequency some of the words that will be stored in the text file:e.g. input:this is a good day and it is 28Mar 2002 and i have a test today#THISISthe line before # is the sentence and after # is the words i supposed to find the ...
207 byte By
daibhada at 2007-9-28 17:36:49
Hi there. I'm doing a project involving Real Time Java. I was just wondering if anybody could point out some mathematical algorithms that are computational intense to perform?ThanksEric
276 byte By
Dante84a at 2007-9-28 17:48:02
I need to work with binary files in java and i don't know how if you know please send me an e-mail to claudioga@icqmail.comwhat i need to know is: how i can creat a new file , how can i add strings to this file and how can i show that strings...thanks...
210 byte By
armca at 2007-9-28 17:50:55
Hello everyone, I would like to ask some one to help me in developing the code for finding the 4 neighbourhood of a pixel in an image. any code or idea will be appreciated . thanks a lotram
Hiplease can someone help me for this algorithm.The problem is the classic graph coloring with the condition: two adjacent nodes do not have the same color and any vertix has a list of admitted colors.thanks a lot
I have a basic outline of an algorithm that produces combinations of 1-8 but I would like to produce the combination 8C3. What changes need to occur with this problem to get the answer that I'm looking for. Your help will be greatly appreciated. Thanks a lot.import java.io.*;import ...
I met a problem inolved in the algorithm of XP to gengerate the unqiue code in the world.Could anyone help me for the docouments of the algorithm?Thanks fo your help!
456 byte By
Yjavaa at 2007-9-28 17:58:45
I have a JSP page, which allows the administrator to create a new student. When the administrator enters the student information (e.g., studentId, name, address, dob, etc.) and press the Add Student button, it write the information into an Oracle DB with an INSERT SQL statement. One of the ...
472 byte By
joaoggpa at 2007-9-28 18:00:12
I got an aplicative, which has a chart with several waveforms.By pressing the mouse right click, a vertical cursor is shown on screen (which would be a drawLine). This cursor slides horizontally over the chart. I would like the cursor to show on screen the coordinates of its intersection with ...
1186 byte By
Yjavaa at 2007-9-28 18:23:21
I am having trouble checking whether the checkboxes have been checked in my JSP. I am using hidden field like <input type="hidden" name="checkbox" value="<%= moduleBean.getModuleId() %>">in my servlet I get the parameter values like String checkboxNames[] = ...
6422 byte By
owsa at 2007-9-28 18:31:57
Hi, im writing a interactive numerical program for a school website,its a tutorial package for students.And i need to implement numerical techniques for solving linear equations using matrices,such as Gaussian elimination,newton raphson,so on.I have problem implementing numerical techniques ...
1635 byte By
Yjavaa at 2007-9-28 18:32:11
I have a method, which link a particular student (studentId) to a number of modules (moduleId) and then call a method, createRegistration, which run the sql insert method.Once the user has clicked on the 'Register Module' button on the JSP form, the method is called.I want to make sure that ...
912 byte By
biantoa at 2007-9-28 18:34:52
Hi all,I'll try to describe the problem with my poor english.I have N sets of consecutive values, for example:Set 1 = { 1,2,3,4,5 }Set 2 = { 4,5,6 }Set 3 = { 3,4,5,6,7,8,9 }Set 4 = { 0,1,2,3 }I need to construct all the possible sets of N values, each of which is taken from each of the N sets, ...
520 byte By
piyocpya at 2007-9-28 18:37:01
Here is the question about the efficiency comparison of Channel Allocation Schemes for Digital Mobile Communication Networks:For Fixed Uniform Channel Allocation, the average number of utilized channels in cell i is given by the following eqt:E[n(i)]=summation (x*px) where x=0,1,2...k with px ...
520 byte By
piyocpya at 2007-9-28 18:37:02
Here is the question about the efficiency comparison of Channel Allocation Schemes for Digital Mobile Communication Networks:For Fixed Uniform Channel Allocation, the average number of utilized channels in cell i is given by the following eqt:E[n(i)]=summation (x*px) where x=0,1,2...k with px ...
For starters, here is code we are given for a TreeNode object:~~~~~~~~~~~~~~public class TreeNode{ public Object contents; TreeNode right; TreeNode left; public TreeNode(Object obj) {contents = obj;right=left=null; }}~~~~~~~~~~~~~~~As I'm sure you've noticed, there isn't any method to ...
hi..this is a linear congruential generator. I have to implement it and i need the execution time for the program.for your understanding i'm providing an example below.Xn=(( a* xn-1 )+b) mod mIf X0=7 ; a = 7 ; b =7 ; m=10 ThenX0 = 7 X1 =((7 * 7) + 7))mod 10 = 6X2 = ((6*7)+7))mod 10 = 9X3 = ...
1263 byte By
janov84a at 2007-9-28 18:44:41
Hi all, this is the 1st time I post here. I don't know whether this has been posted before. If such just give me a URL to see.Well let me start right now.I encounter a problem which is a conversion of a similiar problem in the national programming competition of Singapore in 1995.The problem ...
339 byte By
armca at 2007-9-28 18:45:26
Hello every one,Can any one help me in finding a perticular object of the same same in a digital image. If there are many objects which are of the same size or shape in an image, can we find them or seperate them using java code or jai. please help me or give some ideas.. Thanks in advance or ...
Hello, Can anybody help me out in finding image conversion algorithms for converting images from bmp to jpg, tiff to jpg, png to jpg, gif to jpg etc.Thanks in advanceregardsGopal.K
277 byte By
scifoa at 2007-9-28 18:48:25
Hi , i'm looking for some algorithm that returns nice ticks on a xasixrounded on 10fe i have values16678792i want to get all the values 0-10-20....100so rounded at 10 or 5greetings Sven
563 byte By
Yjavaa at 2007-9-28 18:55:06
I am displaying the content of a vector on a JSP form. The form allows a user to select options, using checkboxes. Now when the user select the options they want and press the submit button, I want to get the particularly options from the vector and put it in a new vector. I know that this is ...
Hi,Im looking for an algorithm that would be suitable for simulataneous/parallel processing between two threads. i.e one thread does calculation A and the other does calculation B and the two results are utilised in attaining a value. I had been considering maybe implementing some kind of ...
1713 byte By
thun03a at 2007-9-28 19:02:14
I am in serious need of assistance. I need to communicate with a serial device using java.I cannot figure out how to properly prepare a message to be sent or received through the serial port. I have installed javax.comm and have used the example programs that came withit. So I know I have it ...
Does anyone know how to derive "aababb" from the followingA -> a E | b A A E -> a B | b A | e B -> b E | a B B please?
Hi allI have trouble with problemMin f1(x) = 0.225x1 + 2.2x2 + 0.8x3 + 0.1x4 + 0.05x5 + 0.26x6 Min f2(x) = 10x1 + 20x2 + 120x3 Min f3(x) = 24x1 + 27x2 + 15x4 + 1.1x5 + 52x6 Subject to:720x1 + 107x2 + 7080x3 + 134x5 + 1000x6 > 5000 0.2x1 + 10.1x2 + 13.2x3 + 0.75x4 + 0.15x5 + 1.2x6 > 12.5 ...
I need to do this as an extra credit but I also need to refresh my memory as my reading material is not sufficient.The following three line is what I have to work with;A -> a E | b A A E -> a B | b A | e B -> b E | a B B For this exercise, consider E to be the start symbol. Show how ...
202 byte By
bregotya at 2007-9-28 19:19:30
Hi , I just want to find out all paths between two nodes.I don't need shortest paths. Can any one give suggestions or sample code or related algorithm.Thanks ,-balaji
415 byte By
takista at 2007-9-28 19:23:36
Greetings to all.I'm trying to establish an algorithm that takesa series of of strings with intermixed alphanumeric characters (e.g. 2Bere5634), compares them and determineswhat is the patern matching percentage. For example the strings:2BeDwe56342BeDwe56A42BeDwe56DDmatch about %80 (the first ...
308 byte By
takista at 2007-9-28 19:25:09
I'm interested in developing an algorithmthat generates a combination of charactersas strings using the following ...
1047 byte By
takista at 2007-9-28 19:25:11
I'm interested in developing an algorithmthat generates a combination of charactersas strings using the following parameters: a) The user can define the number of characters in the string,e.g. 8 characters long. b) The string can contain alphanumeric characters as the following ...
I need to <b>calculate the area of a circle</b> but am very new to LISP and need some direction please!
hello,1) u have a text file that is of 256 bits which is the key.2) u have a text file which consists of the encrypted text.3) u need a text file that gives the decrypted text.the algorithm to be used is as follows.k[]=256 bytes ( this is the key)s[]=256 bytes.s[0] =0....s[255]=255j=0;for(int ...
748 byte By
rkippena at 2007-9-28 19:42:03
Hi All,Given a set of points, I want to replace points that are "close" to each other by a single point.I have thought of using a distance parameter (D) as follows:for each pair of points:calculate the distance between themif the distance is less than Dcalculate midpoint of the pair and create ...
hiI have to read a line from a txt file and put each value into a string array.there is a problem in this case: value are separated by double quote (")or by (,) here a single line sample:DATA,"US002000",16772,"24","JK","VF8.33C","13752",91,3491,"2","RUNNING, LEAKS, ...
Hi, I have the following problem with arrays.I have an array that is filled with values where some values might be missing. Eg for a long[] we might have {0,-1,-1,1,1,-1,0,0,1} where -1 represents a missing value, a value that is not set. For dense arrays, that is arrays that has rather high ...