2,443 Posted Topics

Member Avatar for n3red
Member Avatar for isengwa
Member Avatar for sam.udo
0
113
Member Avatar for Mr.Barca

Create an object with two instance fields. One for the original index and one for the value. Have it implement Comparable and sort according to the value. Sorting, of course, will give the objects a new index within the array, but they will, at least, still have an instance field …

Member Avatar for bibiki
0
161
Member Avatar for AnkitKumar
Member Avatar for liphoso

[QUOTE=hfx642]6 % 2 = 0 So, if I have a remainder of 0 and a divisor of 2, what did I start with? Well, that would be; 2, or 4, or 6, or 8, or... (DO YOU SEE A PATTERN HERE?) There is no answer here. There is no way …

Member Avatar for masijade
0
3K
Member Avatar for gsting_88
Member Avatar for gsting_88
0
273
Member Avatar for ssdeep

Uhm, you do know that the cost of a programmers time to write something like that (which I didn't even read BTW), and test it, is more than the cost of a few routers, right? You also know that it possible for any computer you have to [i]be[/i] a router, …

Member Avatar for rubberman
0
106
Member Avatar for kimpham

That is for a servlet (you aren't using scriptlets in the JSP, are you?). for a JSP it is [inlinecode]${param.movieIdHidden}[/inlinecode]

Member Avatar for masijade
0
121
Member Avatar for xeon123

Okay? And when something else uses that list [i]without[/i] synchronizing on it (or the instance)? [i]That[/i] is where the problem is coming from.

Member Avatar for masijade
0
282
Member Avatar for vedro-compota
Member Avatar for shroomiin

Well, for one, you haven't closed the if statement with "fi" nor closed the for statement with "done". Also, you need to check for links first or a link to a directory will probably be counted as a directory.

Member Avatar for thekashyap
0
166
Member Avatar for dataholics

Well, it has nothing to do, most likely, with the servlet, but rather with the css and html it is producing. Post the produced html on a html forum and ask there, is the best advice I can give you.

Member Avatar for masijade
0
96
Member Avatar for charchar88

You need to use defined bytes '00000000', '00000001', '00000010', and '00000011' i.e. [code]byte oo = 0x00; byte oi = 0x01; byte io = 0x02; byte ii = 0x03;[/code] as what you are using now is actually zero, one, ten, and eleven. Not quite what you want. or use the 0x …

Member Avatar for charchar88
0
253
Member Avatar for bharath54321
Member Avatar for bharath54321
Member Avatar for Majestics

So, the person who wrote is not there. And? Does that mean you don't have the source code either? The "solution" is, of course, to simply add it to the original code.

Member Avatar for mKorbel
0
189
Member Avatar for jemz
Member Avatar for aanders5

If you ask me "Search Results" would be a better String. In any case you can always do this idiocy [code]char quote = '"'; String search = "<h3 class=" + quote + "r" + quote + ">"[/code] or [code]char[] text = { '<', 'h', '3', ' ', 'c', 'l', 'a', …

Member Avatar for aanders5
0
152
Member Avatar for harinath_2007

By using getResourceAsStream rather than File operations as the images within the jarfile are no longer "files" in and of themselves and so cannot be accessed through "File" classes (such as File, FileInputStream, FileChannel, or the Image operations that take a file as a parameter).

Member Avatar for masijade
0
129
Member Avatar for VernonDozier

Do you have the oci or the thin Oracle Driver. If you have the oci driver, then yes, I believe you do need to have an Oracle client install on your machine (at least you don't need a complete Oracle install, just a couple of libraries and a few config …

Member Avatar for masijade
0
374
Member Avatar for vikram97
Member Avatar for vikram97
0
66
Member Avatar for coding101

Correct escaping the call (with "\") to effectively inline "unalias" the command is the proper way to go.

Member Avatar for masijade
0
217
Member Avatar for rushhour2
Member Avatar for CorruptionInc

Those items are created locally in other methods meaning they are not available within another method. It lloks as though you want to use instance variables rather than local variables.

Member Avatar for CorruptionInc
0
5K
Member Avatar for recees_mum
Member Avatar for kasraluckblack
Member Avatar for cretaros

The same way you would in any SQL compliant db, with SQL. Google for an SQL tutorial/reference site, there are plenty out there.

Member Avatar for masijade
0
65
Member Avatar for terabyte

It is not really a regex. Go to [url=http://perldoc.perl.org/perlop.html#Quote-and-Quote-like-Operators]this page[/url] and scroll about two-thirds of the way down.

Member Avatar for masijade
0
118
Member Avatar for mkab
Member Avatar for Dean_Grobler

As said in [url=http://www.daniweb.com/software-development/java/threads/359889]this post[/url] the action is, of course, either post or get, and the target is the servlets url, of course, again.

Member Avatar for masijade
0
69
Member Avatar for Dean_Grobler

It either must be from the same address that served the applet (and proxies can easily get in the way of this) or the clients need to modify their security policy files to allow it to connect to something else. Edit: Or, I believe, that a signed applet can also …

Member Avatar for masijade
0
370
Member Avatar for jitsux

It might help to know [i]what[/i] errors. I am not going to play compiler and even [i]try[/i] to figure them out when you could just post them. And fix your indentation, how do you expect anyone to be able to read that properly?

Member Avatar for masijade
0
127
Member Avatar for Taimoor Rana

Pack the images into the jarfile with the app and use ImageIO and getResourceAsStream.

Member Avatar for masijade
0
99
Member Avatar for nHulk

Why do you want "JSP coding", when you're currently using Java coding? Don't tell me you used a scriplet to get those values. Don't tell me that you don't know about ${param.xxx} JSP syntax. Why does everybody dive immediately into JSP and [i]never[/i] look at the tutorials? [url=http://download.oracle.com/javaee/1.4/tutorial/doc/]The J2EE(TM) 1.4 …

Member Avatar for nHulk
0
245
Member Avatar for dresposure

Seeing as how a ".bak" is normally a backup copy of some already existing file, I would say read the original and write the new or look at the API docs for FileChannel, I believe there is actually a "copy" method there (if I'm remembering correctly).

Member Avatar for masijade
0
294
Member Avatar for deviliq

First of, use your algebra skills to "turn the equation around" until you have an x= .... equation. Then the rest should be self-explanatory.

Member Avatar for deviliq
-1
242
Member Avatar for Kiraichi

Well, I'd be sorry to be the person monitoring that email address as that would simply send an email with every start up. What I do see about it though is you define CONFIGURE and check CONFIGURED

Member Avatar for masijade
0
216
Member Avatar for bhattpratik
Member Avatar for masijade
0
107
Member Avatar for Chitru

Fixing your indentation your code looks like this [code]package helloworld; import javax.swing.*; import java.awt.event.*; public class FourthApp extends JFrame implements ActionListener { JFrame interfaceFrame; JButton startButton, stopButton; public FourthApp() { JFrame.setDefaultLookAndFeelDecorated(true); interfaceFrame = new JFrame("GUI"); interfaceFrame.setSize(200,200); interfaceFrame.setVisible(true); interfaceFrame.setLayout(new java.awt.GridLayout(1,2)); startButton = new JButton("Start"); startButton.addActionListener(this); interfaceFrame.add(startButton); stopButton = new JButton("Stop"); stopButton.addActionListener(this); …

Member Avatar for masijade
0
649
Member Avatar for Effrego

[QUOTE=Effrego;1532647]Thanks :D[/QUOTE] I'm sorry, but why did you not just check the API docs?

Member Avatar for masijade
0
67
Member Avatar for ARaza110

Probably doesn't want to create a new one if one already exists. But, in that case it has still been done wrongly, and there is no reason to have to place it back into the session, unless it is null after the get call, in which case it should be …

Member Avatar for mKorbel
0
404
Member Avatar for cwarn23

Well, stop ignoring Exceptions (see all of your empty catch blocks) and you just [i]might[/i] figure out what the problem is.

Member Avatar for cwarn23
0
211
Member Avatar for MrCapuchino

Just put the page back to the "right" place and change this "servlet" to a filter and apply the filter to the url for that page.

Member Avatar for masijade
0
135
Member Avatar for chiefpf

The definition of recursion (essentially) is to call a method from within that same method, so, knowing that, and knowing that you need to add N to [i]N - 1[/i] what do [i]you[/i] think [i]might[/i] be appropriate in that "blank"?

Member Avatar for masijade
0
2K
Member Avatar for aditya027

It's [i]old[/i]. That doesn't mean that learning it is a bad thing, or that it is not in active use on the market, but it is definately not a [i]hot[/i] thing and nearly as far from a [i]knew[/i] thing as COBOL.

Member Avatar for masijade
0
55
Member Avatar for pooran.c
Member Avatar for mKorbel
0
111
Member Avatar for plasticfood

Okay? So it gives you an error? And? How did you determine that this sort method had anything to do with it, or are you just guessing? Print the stacktrace of the error and [i]read[/i] it. It will tell you exactly where the problem is. If you find yourself incapable …

Member Avatar for masijade
0
193
Member Avatar for jackmaverick1

Yes. Don't worry about "how big to make the array". Simply read the file and store the lines in an ArrayList (you do not have a preset size on those). If your "assignment instructions" (or whatever) require you to return an array, then, after reading the file, simply use the …

Member Avatar for masijade
0
117
Member Avatar for Galois77

At the simplest, yes, simply make the methods synchronised as that will cause them to sync on the instance of the class.

Member Avatar for thekashyap
0
198
Member Avatar for Sadun89

Sun's (Oracle's really) JVM, for the most part, yes, but it doesn't [i]have[/i] to be. The language used to create the JVM is completely irrelevant as long as it is able to execute the byte code in the class files in the proscribed manner. And the compiler is written in …

Member Avatar for masijade
0
216

The End.