2,443 Posted Topics

Member Avatar for wishk
Re: java

Uhm [url=http://www.lmgtfy.com/?q=Java+Flex+API]this[/url], and [url=http://lmgtfy.com/?q=Java+SSL+Tutorial]this[/url]?

Member Avatar for masijade
0
57
Member Avatar for dyladalyla

What's with that space after the last "\"? And which class/jar are you attempting to execute?

Member Avatar for dyladalyla
0
145
Member Avatar for java=hard

Uhm, add a couple of newlines? System.getProperty("line.separator"); Or use two or three calls to println rather than just one?

Member Avatar for BestJewSinceJC
0
107
Member Avatar for johndoe444

Because Generics is acheived through Erasure (google "java generics erasure" to find out more about this). Simply do [inlinecode]List<String>[] a = (List<String>[]) new List[5];[/inlinecode] It will give you a warning about an unchecked cast, but it works. You will be able to retreive elements from the array as List<String>'s without …

Member Avatar for johndoe444
0
104
Member Avatar for jemz
Member Avatar for Ezzaral
0
77
Member Avatar for conandor
Member Avatar for new_divine

NetBeans has a JME development environment as do most other "mainstream" IDE's. Choose one and try it out (they are also able to emulate JME run environments), but you [i]will[/i] need one of the devices to deploy to to test it properly.

Member Avatar for new_divine
0
73
Member Avatar for JavaChick815

See the API docs for JPasswordField. There is a method there called setEchoChar (or something to that effect). Use it.

Member Avatar for masijade
0
30
Member Avatar for dan345

The first simply "gets" another reference to STDIN, the next part reads the arguments provided to the command until it finds the option "-bs" and then reads that options parameter (i.e. the next argument). The last block creates an instance the class and calls a method from it.

Member Avatar for masijade
0
149
Member Avatar for vesnushka

No it doesn't, that's just you're editor's highlighting. If you don't want to see that then use [inlinecode]< scalar(@array)[/inlinecode] rather than [inlinecode]<= $#array[/inlinecode]

Member Avatar for vesnushka
0
66
Member Avatar for aodpreacher

Yes, Math.max and Math.min in a loop saving the result through each iteration. Once the loop is done, you have the max and/or min.

Member Avatar for DeeZi
0
10K
Member Avatar for pirateninja1111

What do you mean "start at one"? Do you mean that the first index should be 1 and not 0? Well, you can't. Java arrays (and the arrays of most other languages) index starting with 0. Make the array one longer and simply don't use the first index, or use …

Member Avatar for masijade
0
136
Member Avatar for Amurka

As long as the first String is always of the same length and does not vary over the "tabStop index" length. printf (if you're using a late enough version of it) is, of course, the proper way to do this.

Member Avatar for alisneaky
0
2K
Member Avatar for sawant_nitesh

See this thread for a concept that may help you [url]http://forums.sun.com/thread.jspa?threadID=5172164[/url] then see the site referenced there (reproduced here) [url]http://www.javaregex.com/[/url] Only Perl and PHP have builtin support for this so the only resources I can point you to to help with the concept are pages concerning those languages, such as …

Member Avatar for Freaky_Chris
0
86
Member Avatar for picabodaddy

Looking only at the "Area" class, which is what the assigment text was concerning, it looks just fine (you probably want to make the methods public, however), and give [i]all[/i] classes a package. Do not use the "default" package, that will only, eventually, cause heartache and pain.

Member Avatar for vchandra
0
3K
Member Avatar for herat_000

Uhm, because a column ("count" + p) doesn't exist, in that ResultSet? The [i]rest[/i] of that exception [i]would[/i] be helpful though.

Member Avatar for masijade
-1
125
Member Avatar for Privoxy

Instead of [QUOTE=Privoxy;1180655][code] StringTokenizer Tok = new StringTokenizer(curLine); String compare = Tok.nextToken(); if (userInput.equals(compare))[/code][/QUOTE] why not just [code]if (curLine.startsWith(userInput))[/code] or, if there can be whitespace at the front of the line, or the "first token" can be of varying lengths (i.e. the "userInput" might match two different tags due to …

Member Avatar for BestJewSinceJC
0
211
Member Avatar for Colin454

remove the "int" and/or "double" now, from the call to the method. You include types when [i]defining[/i] and [i]declaring[/i] the methods. You include only [i]values[/i] when [i]calling[/i] the methods.

Member Avatar for Colin454
0
118
Member Avatar for drbrown3

Uhm, to tell you the truth, the [i]compiler[/i] is helping you with that, with the messages it produces when you attempt to compile it. What are they?

Member Avatar for masijade
0
462
Member Avatar for dsmush

Use an ArrayList rather than an array, and you don't have to worry about all that array manipulation. And as far as "storing" the data, how do you propose to do that with an empty actionPerformed method?

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for aym312

Because, since you are simply painting to the graphics in an external method, rather than overriding the paintComponent method in JPanel will cause the standard "painting" of the panel to erase it. Either extend JPanel and override the paintComponent method, or have that method create an image (use BufferedImage and …

Member Avatar for aym312
0
1K
Member Avatar for oggiemc
Member Avatar for oggiemc
0
83
Member Avatar for David22
Member Avatar for annazpereira

You declare "throws Exception" in the declaration of the method, but when you [i]use[/i] the method you are catching "STAFException". If "STAFException" is the exception that might be thrown by your method, then you need to declare "throws STAFException" and not "throws Exception". If you do use "throws Exception" then …

Member Avatar for annazpereira
0
215
Member Avatar for halluc1nati0n

Place the read routine in a separate method (if not a separate thread, as well) and don't close the reader just because EOF is encountered. Once you need to read more from the file, simply call the read method again. If more data exists in the file, at that point, …

Member Avatar for halluc1nati0n
0
623
Member Avatar for gigsniper

I would guess you have an extra '}' before the line containing the first error. Also, that [i]first[/i] error takes place on line 18803? You really need to break that thing down. You shouldn't even be [i]attempting[/i] to do [i]everything[/i] in [i]one[/i] class.

Member Avatar for masijade
0
140
Member Avatar for jiten_raulo

And no, you cannot run a compiled "exe" anywhere. You can run it anywhere that has the exact same OS and architecture as the machine it was compiled for. That is exactly what Java does (except that they also work with newer versions), except that the "OS and machine" for …

Member Avatar for masijade
0
219
Member Avatar for Akatosh

You have used only weightx and not weighty and you have only used a horizontal fill, so your elements will not even attempt to fill the space vertically, and all "unused" space in the container will dispersed evenly around the components (i.e. the "free" vertical space will be half above …

Member Avatar for Akatosh
0
107
Member Avatar for lastlight

No, the cgi script does not execute "in the browser". A CGI script runs on the server, and [i]that[/i] is where the "application" is opening. A CGI script produces HTML (or whatever other output it is designed to produce, such as XML, etc) and [i]that[/i] is what the browser gets. …

Member Avatar for vitana
0
125
Member Avatar for jafman

Nice statement, but no pattern and no code. We are not here to write your code for you, but will me more than happy to help [i]you[/i] correct yours, as soon as you post it, the pattern, and a [i]specific[/i] question.

Member Avatar for masijade
-1
38
Member Avatar for QueenofSheba

You can delete the old versions. The worst that may happen is that some program still wants to use an old one, at which time you can alter it's configuration to use a newer one (although, in some cases, that may mean making registry changes on your own). This is …

Member Avatar for masijade
0
40
Member Avatar for k2k

[code]String queryLNLike = "SELECT * FROM employees WHERE firstName LIKE in(?)"+ "'" +ln+ "%" + "'"; [/code] Like In? I don't think that could ever work.

Member Avatar for k2k
0
153
Member Avatar for Accendo

Because you're trying index into an array using an index value representing the length of one the Strings stored in the array. What did you hope to achieve by doing that?

Member Avatar for Accendo
0
169
Member Avatar for mytime19
Member Avatar for masijade
0
314
Member Avatar for mytime19

You need to call "setLocation" on f, and there is no reason for your class to extend JFrame, here, especially when you are initiating a separate JFrame. Also, you need to start the Frame in the Event thread (see [url=http://java.sun.com/docs/books/tutorial/uiswing/components/frame.html]this[/url]). And you should probably do your query before ever instantiating …

Member Avatar for mytime19
0
813
Member Avatar for mundee

All of which, of course, has nothing to do with either ASP nor PHP, so what is the deal with your title?

Member Avatar for masijade
0
72
Member Avatar for bagabont

No, not easily (at least not if they are to change during the running of the app). If they are values being delivered, that should never change, then no problem. You would be wise to look into the Preferences API, however.

Member Avatar for masijade
0
31
Member Avatar for claudiu_is

Have you enabled redirects on the URL, as it is probably getting redirected, which URLConnection does not automatically follow.

Member Avatar for masijade
0
1K
Member Avatar for sid78669
Member Avatar for bluebird

Not sure myself what bci stands for (and don't believe that you need to know), but, considering that the error is coming from sun.com.midp I have a few ideas. One, are you instantiating an instance of a com.sun class yourself? If so the warning [url=http://java.sun.com/products/jdk/faq/faq-sun-packages.html]here[/url]. Two, did you maxbe use …

Member Avatar for masijade
0
155
Member Avatar for tjsail

[url]http://www.regular-expressions.info/tutorial.html[/url] [url]http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html[/url] [url]http://java.sun.com/docs/books/tutorial/essential/regex/[/url]

Member Avatar for rohini.vangury
0
518
Member Avatar for abhay_tanu

See [url]http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html[/url] for things to do and watch out for when using Runtime.exec()/ProcessBuilder. It also covers reading the STDOUT and STDERR of the program executed, which is how you'll have to "get your value".

Member Avatar for abhay_tanu
0
394
Member Avatar for charpays
Member Avatar for Ezzaral
0
50
Member Avatar for lukermsdn111

[url=http://www.java-forums.org/new-java/26948-illegal-start-expression-error-new-post.html]Cross-post[/url] I'm outta here.

Member Avatar for masijade
0
190
Member Avatar for murali_perl

There is another forum here for soliciting developers. If you are actually willing to do your own work, though, regex to get the "leading text" and the digits, a loop, a counter, and a variable to hold the result, then overwriting the file. Give it a try, post your code, …

Member Avatar for murali_perl
0
120
Member Avatar for sixesox

Well, show us what you have. I am quite sure, however, that the meaning of the "four numbers" is fully described in the homework description, however.

Member Avatar for sixesox
0
137
Member Avatar for nikhita

[QUOTE=Shubhra;461876]U can write all code using scriptlet. Simply start scriptlet,create connection, write and execute update query, close connection and scriptlet. For Ex <% create connection Create query resultset execute query close connection %> Hope it provides u some help!! U can find example code in google.[/QUOTE] Which is, of course, …

Member Avatar for peter_budo
0
3K
Member Avatar for Katana24
Member Avatar for Privoxy

Simply creating a Calendar gets you one with todays date, and as long as that "creation" is taking place on the right hand side of an assignment expression, it has also been stored in a variable.

Member Avatar for ~s.o.s~
0
110
Member Avatar for Hitman908

No one here is going to do your homework for you. Post your attempt at it, along with the compiler messages/exceptions/problem description and any [i]specific[/i] question you have about it, and we will help you, though.

Member Avatar for masijade
0
221

The End.