2,443 Posted Topics

Member Avatar for PhoenixInsilico

If you'll notice, $_ in the hash is [i]inside[/i] the foreach loop, meaning that it refers to that individual value for that iteration of the loop, or a single value resulting from the split of "string of distances" making it refer to a single distance.

Member Avatar for PhoenixInsilico
0
267
Member Avatar for amu25
Member Avatar for new_programmer

One thing you should know about "static final" variables (at least "public static final", but probably also for "static final" and "protected static final", although I haven't tried those), and that is that their values get compiled [i]directly[/i] into the classes using them. I.E. compile [i]both[/i] of these classes [code] …

Member Avatar for masijade
0
427
Member Avatar for prem2
Member Avatar for SiraRaven
Member Avatar for vineetanimu

By writing a stand-alone application to do this and using a cron-job to "run it daily". A JSP is [i]not[/i] the right tool for this task and it [i]never[/i] was. Use the right tool for the task.

Member Avatar for masijade
0
585
Member Avatar for pratz

Because it's not. In that example it is the "MainTest" class, not the "ClassTest2" class that is attempting to access the method. It is simply [i]using[/i] an instance of ClassTest2 to try and access it, but it [i]is[/i] MainTest that is trying to access it. Add a call to "display1" …

Member Avatar for masijade
0
219
Member Avatar for sanam2010

Depends on the environment. Do they have [i]only[/i] Windows servers on which this might run (and I am not talking about the clients, I am talking about the servers). My guess would be no. They probably have a group of mainframes, AIX, Solaris, HP, etc machines, on which .Net won't …

Member Avatar for masijade
0
120
Member Avatar for jjhames
Member Avatar for johnnyturbo3

Completely wrong. JSP holds a much larger share of all sites that are more than "hobby" sites, as compared to PHP and ".NET" [i]anything[/i]. And where did you get the idea that PHP and ".net" [i]anything[/i] are "where the jobs are at"?

Member Avatar for GujuNilesh
0
770
Member Avatar for NewOrder
Member Avatar for coroll

Well, concentrate on the first one and try to fix that, then compile again, and again, concentrate the "new" first error, repeat the process.

Member Avatar for coroll
0
340
Member Avatar for tong1

It seems to me you have everything you need, except "teh codez", of course, but those you're going to have to make yourself. Now that that comment is out of the way, what do you [i]need[/i] help with here? What about those requirements do you not understand?

Member Avatar for peter_budo
0
589
Member Avatar for yap_1991

[url=http://www.java-forums.org/new-java/31007-downloading-files-server.html]cross-post[/url] And, according to a post in [i]that[/i] thread, he's very happy to let people waste their time.

Member Avatar for yap_1991
0
479
Member Avatar for pavan146

Go to [url]http://java.sun.com/[/url] and go to the "Training->Certification" menu item.

Member Avatar for masijade
-1
70
Member Avatar for jk_bscomp
Member Avatar for stephen84s
0
266
Member Avatar for sauravmakkar

And as a "diploma" student you don't learn how to write? Creativity is also not desired, it seems (i.e. you can't even think of a [i]possible[/i] "topic"). Self-reliance is also not found in the class description or you'd have used Google and found a million other threads that ask this …

Member Avatar for NormR1
-2
87
Member Avatar for thr
Member Avatar for masijade
0
137
Member Avatar for hidash_in

[QUOTE=weasy;613506]As for the problem, you might want to use php for the multiple files. It's easier .[/QUOTE] That's a question of taste, and opinion. [i]Easier[/i], I wouldn't say, just different.

Member Avatar for masijade
-1
642
Member Avatar for palcham
Member Avatar for har58

Read this [i]entire[/i] [url=http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/java/package/packages.html]tutorial[/url].

Member Avatar for Darryl.Burke
0
150
Member Avatar for 29ashishagre
Member Avatar for masijade
0
74
Member Avatar for Mylsamy
Member Avatar for masijade
0
211
Member Avatar for nihar.budumuru

So search on the forum. This question has been asked literally hundreds of times. Usually ridiculed, but there are [i]some[/i] suggestions. If you feel you absolutely [i]must[/i] ask, then start a thread, but be prepared to be ridiculed. Closing this thread.

Member Avatar for masijade
0
100
Member Avatar for niall_heavey
Member Avatar for d5e5
0
790
Member Avatar for ashwiniku

- Clone the first arraylist into a third arraylist - Call removeAll on the third arraylist using the second arraylist - Clone the second arraylist into a fourth arraylist - Call removeAll on the fourth arraylist using the first arraylist - Call addAll on the third arraylist using the fourth …

Member Avatar for masijade
0
112
Member Avatar for prem2

Literal Strings are "interned" and exist only once regardless of how many times they are used in a program. new String(...) creates a String that is not interned and is completely independent to anything else (and doing it with a literal string in the constructor means that two string get …

Member Avatar for ~s.o.s~
0
473
Member Avatar for Jayavardhan

Because a SimpleDateFormat is a SimpleDateFormat [i]not[/i] a String. new Date() will give you the current Date. and SimpleDateFormat's format method will allow you to format a String representation of that Date in any format you want. Now, armed with that info and the [url=http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/]API docs[/url] try it again.

Member Avatar for Jayavardhan
0
461
Member Avatar for gunbuster363

HttpUrlConnection or HttpsUrlConnection. It is possible to use Cookies and post requests and authentication with both of them. Search for some tutorials concerning them.

Member Avatar for masijade
0
108
Member Avatar for Chaster

call pack on the frame in which the component resides or call doLayout (and/or validate) on the component to which the component was added and [i]then[/i] repaint Edit: Although, in the second scenario, the layout of the frame itself (if the size of "subcomponent" has changed) will also, still need …

Member Avatar for mostafaelshafei
0
464
Member Avatar for Mr.UNOwen
Member Avatar for sam_dev
Member Avatar for balaji153

If all you are ever going to do is make "skins" for display, no, otherwise, yes. There is much more to "JSP" than just the syntax of the actual jsp pages. And, even if you do only ever make "skins" it is still helpful to understand "what is going on …

Member Avatar for masijade
0
189
Member Avatar for CheeseDonkey

Of course, that second part of the if statement is completely false anyway. That is what the for loop is for. [code] public static int nameSearch(String[] inOrder, String searchedFor){ int returnVal = -1; if (searchedFor == null) { // if searchedFor is null the if in the for loop will …

Member Avatar for JamesCherrill
0
186
Member Avatar for aarthi87
Member Avatar for JamesCherrill
0
82
Member Avatar for kanjali

Who says there is any? I find it extremely lazy of people to expect there to be software programs that will convert code from one language into code from another. Both languages will have there own idioms, syntax, and "way of doing things", and it is almost guaranteed (regardless of …

Member Avatar for masijade
0
311
Member Avatar for dowen

You also forgot the semicolon in the library method on the following line: [code] yearpublished = yrpub [/code] which is exactly what your first error message says: [code] libmainsys.java:19: ';' expected yearpublished = yrpub ^ [/code]

Member Avatar for masijade
0
382
Member Avatar for Jeun

Yes. [url]http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/essential/regex/[/url] [url]http://java.sun.com/developer/technicalArticles/releases/1.4regex/[/url] [url]http://www.regular-expressions.info/tutorial.html[/url]

Member Avatar for masijade
0
66
Member Avatar for kandarpa
Member Avatar for PhoenixInsilico
Member Avatar for yap_1991

As also said [url=http://www.daniweb.com/forums/thread293686.html]here[/url]. And, there was an old thread in which I had already said this, too. Stop starting new threads simply because you don't like that people are not telling you "yeah you're doing everything right, Java is just corked and so it's not working".

Member Avatar for NormR1
0
644
Member Avatar for sarfarazahmed

Yes, it does, but that "source file" is still not any kind of standalone application code. It is a servlet. You do understand the differences between servlet/jsp (i.e. code that runs in an application container) and a standalone application, right? And, since you would probably only be providing a compiled …

Member Avatar for lemon81
0
860
Member Avatar for jt86442

Look at the API for Color. What are those int values in that statement? Now, what do you think you might try if you want Green? In any case, see the Class JColorChooser, and then Google for the JColorChooser demo and run it.

Member Avatar for freesoft_2000
0
96
Member Avatar for hermann87

Yes, and No. A implements, and so, by default, those methods are "available" through the B Class, since B [i]is[/i] an A, but B, it self, does not, technically, implement the other interface.

Member Avatar for hermann87
0
90
Member Avatar for rajec3

I am sorry to disagree, but learning on an IDE is not the way to go. You should learn the basics (compilation, execution, jarfile packaging, classpath manipulation, basic syntax, etc.) using a simple text editor and the command line. Whenever you do it the other way, you learn some hard …

Member Avatar for stultuske
0
173
Member Avatar for Stefano Mtangoo

I'm sorry, but [url=http://www.lmgtfy.com/?q=Java+SNMP+API]Google's[/url] [url=www.snmp4j.org/]first hit[/url] [i]looks[/i] promising, doesn't it?

Member Avatar for Stefano Mtangoo
0
124
Member Avatar for yap_1991

And again, [url=http://www.daniweb.com/forums/thread293686.html]here[/url]. Closing both this thread and the referenced (in this post) thread.

Member Avatar for masijade
0
609
Member Avatar for yap_1991

As I have told someone else (you I believe) use a BufferedReader, while, reader.readLine, string.startsWith, and string.endWith. Give that a try and post the code, if it "doesn't work", with a complete description of the difference between expected and actual results, along with any and all compiler/error messages.

Member Avatar for masijade
0
425
Member Avatar for kaustubh.pandey
Member Avatar for djenoe

Maybe we could if you described the problem, but don't expect any cut-n-paste code answers, of course.

Member Avatar for javaAddict
0
137

The End.