2,040 Posted Topics

Member Avatar for osiron

If you look closely, there are a couple things in your code that are off. 1) Start from looking at line 60, what are you doing there? What is the consequence of doing that? 2) Look at how you use the loop to display your array value at line 53. …

Member Avatar for Taywin
0
142
Member Avatar for jamojo

If you are looking for uploading from a command line with FTP, you can check FTPClient class from apache (org.apache.commons.net.ftp.FTPClient) for uploading. Remember that it reads only ASCII file type. If you want a web interface, JSP is also a way to go.

Member Avatar for NormR1
0
910
Member Avatar for GlenRogers

You are confusing between front-end and back-end unless you are thinking about Java applet. Still, I think this forum is for Java core, not for a website unless (again) you are talking about the back-end algorithm. To answer your question, yes you can do JSPs for the front-end (display) of …

Member Avatar for GlenRogers
0
119
Member Avatar for pradeepptp

Stop reviving old thread! Look at the last date posted before replying. Also, your code is not completed + not in a code tag!

Member Avatar for JamesCherrill
0
326
Member Avatar for ilovejava

So the value in the middle of each line will be 2^(n-1)? What is the maximum you accept for the value of n? Because the n will be used to determine the height of the pyramid. Also, the value in the middle could have different length. How would you deal …

Member Avatar for JamesCherrill
0
320
Member Avatar for rayden150

... Reply to your own thread instead of create a new one... Try the code below... Not sure if it is working because I didn't test. [CODE] import javax.swing.*; import java.awt.*; public class Ejer1 { public static void main(String [] args){ JTextArea jt = new JTextArea(); jt.setText("Set it this way"); …

Member Avatar for Xeno999
0
188
Member Avatar for ABUMIN

If you have specified a class for the element, you could simply do it as... [CODE] .myclass { color: black; } .myclass a:link { color: black; } .myclass a:hover { color: black; } .myclass a:active { color: black; } .myclass a:visited { color: black; } [/CODE] It is depending on …

Member Avatar for zobadof
0
197
Member Avatar for xThrash

The implementation is tricky depending on how you want it to be. Do you have to implement the tree using only one ArrayList? Are you allowed to implement your own class to act as a tree node/leaf? Is there any constraints to the ArrayList you can make (i.e. limitation of …

Member Avatar for agieli
0
3K
Member Avatar for j23

It is not really. What you need now is to get the width & height of the applet window every time right before you draw those ovals. The only relative X, Y position that may need to be added is when the size of applet is very close to your …

Member Avatar for j23
0
1K
Member Avatar for asif123

Can you retrieve each image frame from the video? That's the first thing you need to do. After you can obtain each image frame, there are many ways to do the object detection in an image. However, there are many factors you may need to restrict your detection rules. How …

Member Avatar for asif123
0
164
Member Avatar for AbEeR Q8

You are passing a NULL value [icode]node *x=NULL;[/icode] to the insert() function. Then in your insert() function, you attempt to access "next" from the NULL pointer? That's the problem. They are all NULL. Do you have to pass in a node pointer to the insert() function? Is that one of …

Member Avatar for raptr_dflo
0
389
Member Avatar for Dwillich87

What you are doing is fine if you call the function only once. There are a couple things to be modified though... [CODE] function squareCube(selectRowNum, selectPower) { var rowNumber=10; // default is 10 var powNumber=3; // default power is 3 // if the value is a number and greater than …

Member Avatar for Troy III
0
88
Member Avatar for rpv_sen

How do you want to validate the content? Do you want to validate on submission? Do you want to validate each of them while data is being entered? Or do you want to validate after the content in each box is changed? Please be more specific when you ask a …

Member Avatar for rpv_sen
0
141
Member Avatar for Sailor_Jerry

Old thread... It's annoying to see old thread gets revived for nothing... Also, I usually use setTimeout() function to deal with sleep/wait anyway.

Member Avatar for akmr
-1
7K
Member Avatar for torkolort

If you are asking for an algorithm, Knuth-Morris-Pratt algorithm is a good algorithm to search a substring in another string ([URL="http://en.wikipedia.org/wiki/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm"]http://en.wikipedia.org/wiki/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm[/URL]). You can search for other algorithm as well, but this algorithm is very easy to understand to me.

Member Avatar for JamesCherrill
0
168
Member Avatar for mikecolistro

You gave only fragment of codes with no comment. Anyway, after looking at your code, I have some unclear points with your code. 1)Why do you start your weight queue in descending order? Don't you need to do it in ascending order? 2)I am not sure why you need only …

Member Avatar for raptr_dflo
0
102
Member Avatar for BuhRock

Huh? You already have the method to call for the total time for service in your Register class. What you need is to implement it by iterating through all of the customer in its own line, add all the customer's service time - getServiceTime() - and return the total value. …

Member Avatar for BuhRock
0
151
Member Avatar for wgrogers58

If you want an offer only once, you need the server side database. Cookies can be tampered and/or delete. You will be offering special price all the time if you use cookies.

Member Avatar for stbuchok
0
298
Member Avatar for jackmaverick1

A few comment on your condition check... [CODE]if (strings[1] != stan && new File(files[1]).exists())[/CODE] What are "strings[1]" and "stan"? Are they String? If so, you should not use "!=" to compare but equals() method instead (as strings[1].equals(stan)). Also, what is in "files[1]"? Is it a file name or is it …

Member Avatar for jackmaverick1
0
9K
Member Avatar for Violet_82

The script replaces the original link of anchor tag ('new_file.htm') with movie link. If Javascript is off, the script will not replace the link -- the original link is used.

Member Avatar for Violet_82
0
228
Member Avatar for caswimmer2011

I guess your set up for project properties is not correct. Look at these 2 posts from other forum [URL="http://www.velocityreviews.com/forums/t141385-how-to-create-executable-jar-in-netbeans-ide.html"]http://www.velocityreviews.com/forums/t141385-how-to-create-executable-jar-in-netbeans-ide.html[/URL] and [URL="http://forums.netbeans.org/topic12864.html&highlight="]http://forums.netbeans.org/topic12864.html&highlight=[/URL]. You may see your mistake?

Member Avatar for caswimmer2011
0
368
Member Avatar for canarian

When you are talking about "slow" computer, what is the specification for that? Java also relies on memory (for JVM). So if you are talking about 486 with 66 MHz and 32 MB of RAM (I still have it tuck away in my attic :(), then it is still OK …

Member Avatar for adarshcu
0
87
Member Avatar for ujjwal uniyal
Member Avatar for skylinedrifter

1)Define a function with similar structure as your "main()" method, but the return value is "double" instead of "int" and the arguments in the parenthesis must match the incoming type of Amount, Rate, and Year. 2)Copy the whole part where you make the mark and put them inside the newly …

Member Avatar for baldwindc
0
177
Member Avatar for joehms22

In my opinion, it should be BigTheta(n^2) still. If we take a look at the average case time complexity equation, it becomes (n^2+n)/2. The upper bound is O(n^2) for sure and the lower bound is BigOmega(n). If you are talking about Big Theta of an average case, the value which …

Member Avatar for joehms22
0
451
Member Avatar for Depsi

I don't know what "else" you are talking about. Please post the content instead of link to a file... Also, do not expect that people here will do it for you. You need to show your afford and your code first.

Member Avatar for Depsi
0
135
Member Avatar for gg3l

In firefox, you may need...[CODE]document.getElementById('elm2').style.height = 600+"px"[/CODE] But that could break IE8 and below... So you may need to check for what browser it is being viewed from.

Member Avatar for raphie
0
241
Member Avatar for Metophase

The first function gives you more flexibility and ease in calling and passing variables. The second is an inline which has more control but at the same time is more difficult to construct especially when you need to pass in variables. It is good to use the call as a …

Member Avatar for Taywin
0
251
Member Avatar for Revlis

You could use screen.width & screen.height to check for resolution. However, this doesn't mean the size of window of the browser, but the whole screen size.

Member Avatar for Revlis
0
2K
Member Avatar for j23

You can try this oracle link [URL="http://download.oracle.com/javase/1,5.0/docs/guide/plugin/developer_guide/using_tags.html"]http://download.oracle.com/javase/1,5.0/docs/guide/plugin/developer_guide/using_tags.html[/URL].

Member Avatar for Taywin
0
191

The End.