2,443 Posted Topics

Member Avatar for craztfreak04

Well, do you have method "main" in those classes? [url]http://java.sun.com/docs/books/tutorial/getStarted/application/index.html[/url]

Member Avatar for masijade
-3
176
Member Avatar for jaxy
Member Avatar for neelkris
0
2K
Member Avatar for stano007

If you mean "the day after" the date provided, then see the Calendar class and it's add method.

Member Avatar for musthafa.aj
0
151
Member Avatar for sujithy15
Member Avatar for sujithy15
0
247
Member Avatar for chern4ever

this [code]totalPerDay[j] += sales[i][j];[/code] should not that first j be i? Hint: Yes it should, [i]according to the way that array is declared[/i], but [i]maybe[/i] (guaranteed) you declared the array wrong, in which case it shouldn't be.

Member Avatar for masijade
1
104
Member Avatar for xlx

There are no such thing as either golobal nor global vars. There are "constants" i.e. public static final variables, but they still need to be referenced through the class. That can be done in the imports however using a static import. I.E. [code]// class Test1 package test; public class Test1 …

Member Avatar for xlx2
0
102
Member Avatar for fowlergod09

The problem is, you have declared an instance variable s. Then in initializeStuff you want to give it a value, but what you really did was declare and define a variable local to initializeStuff rather than defining the instance variable. Change: [code] void initializeStuff() { String s = "aaa"; } …

Member Avatar for javaAddict
0
424
Member Avatar for Gowsi

Try a vb.net forum. This has absolutely nothing to do with Java, abd most people here will look on this question with scorn. And taken in connection with you post, I must ask, what makes you think that you will get answers concerning vb.net on a Java forum. Boggles the …

Member Avatar for ABShaman
0
516
Member Avatar for mark185

If you want to "split up" the initialisation, place the actual processes into private methods and call those methods from the constructors, rather than coding it directly into the constructors. And "private" is not a mistake. The methods [i]must[/i] be either private or final (or both, although that is overkill) …

Member Avatar for mark185
0
141
Member Avatar for javaAddict

[url=http://www.iana.org/assignments/media-types/]registered iana media types[/url] (and a link to a registration form)

Member Avatar for javaAddict
1
929
Member Avatar for deepu.bhanu

Google first for some CSV utility library, then Google for some "rbnb server" (whatever [i]that[/i] is) utility library, and write a program to use them.

Member Avatar for javaAddict
0
152
Member Avatar for yasin.mr

In what way it "doest seem to be working"? That switch looks just fine. Maybe include a break in the default case, though, just for completeness.

Member Avatar for yasin.mr
0
286
Member Avatar for benregn
Member Avatar for AnnaBaker
Member Avatar for DavsTaylor

What is the return value if the age is 18? Either make the last one a simple "else", not an "else if" so the compiler is able to ensure that the method will always return something.

Member Avatar for AndreiDMS
0
145
Member Avatar for praveensagi
Member Avatar for sweetheart39150

You can't declare a method inside another method, and that one is being declared inside of main (as is the entire class, seemingly).

Member Avatar for masijade
0
183
Member Avatar for deftech69
Member Avatar for stahlsta210

You have a double opening brace '{' for your main method (which is the reason that it is indented so far). Fix that. Then remove one of the "closing" braces '}'

Member Avatar for masijade
0
103
Member Avatar for shashwatk

print the stack trace. How do you propose to find out what is going wrong when you ignore the cause. In any case, get all of this scriptlet BS [i]out[/i] of this JSP's. Create Beans and other helper classes and use those, don't use scriptlets, especially not ones of this …

Member Avatar for sank_03
-1
95
Member Avatar for kiroyzki

There is nothing wrong with the Error. It is 100% correct. Your code is wrong. (As noted above.)

Member Avatar for musthafa.aj
0
100
Member Avatar for Acegikmo

As long as the method is [i]not[/i] static, you will be using whichever one is most appropriate to the object it is being called on. I.E. if the same method is declared in that object it will use that one, otherwise it will use the one from its super class, …

Member Avatar for masijade
0
276
Member Avatar for valatharv
Member Avatar for tmayb

Okay, so what do you have so far. We are not here to do your work for you, but we are more than happy to help you correct yours.

Member Avatar for mrnutty
-2
100
Member Avatar for oxxxis

[QUOTE=stultuske;1106421]hmmm ... don't have the time to look into it right now, but you're just showing a one-dimensional array. a two-dimensional one would look like: [CODE=JAVA] String[][] ColorAndDebt = new String[2][2]; ColorAndDebt[0] = {"RED","285"}; ColorAndDebt[1] = {"BLUE","180"}; [/CODE][/QUOTE] Uhm, no, array[index1][index2] = x is also a two dimensional array, just …

Member Avatar for stultuske
0
131
Member Avatar for dangari
Member Avatar for musthafa.aj

Configure the firewall to allow the connection. Edit: IOW it is [i]not[/i] a Java problem, it is a system configuration problem. If you do not know how to configure your firewall, then read it's documentation or contact its support.

Member Avatar for masijade
0
99
Member Avatar for nader_shadi2010

It would help to know [i]what[/i] error you get, and what line it refers to. Edit: And use code tags when you post code.

Member Avatar for masijade
0
342
Member Avatar for hellonikki

If you insist on using RandomAccessFile (which I don't suggest), then call setLength(0) right after the seek. However, since you're reading the entire file, then operating on the data, then writing the entire file, use a FileReader to read it (assuming simple text), then close that, and use a FileWriiter …

Member Avatar for hellonikki
0
134
Member Avatar for denniskhor

Read the API docs for FileReader and see if some other method there is better. Or wrap it in a BufferedReader, then read the API docs for BufferedReader and see if there is yeat another method there that is even better for your purposes.

Member Avatar for rrusin
0
103
Member Avatar for jogendar

How are you loading the images? Hopefully with getResource (or getResourceAsStream) and not with File (or FileInputStream, etc) as the items in a jarfile are [i]not[/i] Files, at least until the jarfile is unpacked.

Member Avatar for masijade
0
139
Member Avatar for P00dle

No help whatsoever. @p00dle Why don't you show us your "read" and "print out" code?

Member Avatar for P00dle
0
88
Member Avatar for jogendar

A program (so long as it is "self-contained") [i]is[/i] an application. What is your actual question here? Is it how to create an installer? Is it how to create "cool" start buttons on the desktop? etc, etc

Member Avatar for masijade
0
56
Member Avatar for Banderson

Thread Closed as it is old and has now become a simple dumping spot for "Give me teh codez" responses. No, thank you.

Member Avatar for masijade
1
2K
Member Avatar for dua khan

[code] public class PerformanceAppraissal { public static void main (String[] args) { System.out.println("Unsatisfactory"); } } [/code]

Member Avatar for masijade
0
55
Member Avatar for deepakraj

Don't use scriptlets in your JSP. Move this out into a Bean. If you still have a problem, post the Bean, and the JSP tags you use to access it, and we'll continue.

Member Avatar for javaAddict
0
223
Member Avatar for ryy705

No. Java is pass-by-value and pass-by-value only. When you pass an object rather than a primitive, you are not actually passing an object. What you have is a variable that is only a reference to an object, and when you pass this, what happens is that the reference value is …

Member Avatar for tux4life
0
225
Member Avatar for M.Khan

Do you know how to do it in HTML (since JSPs simply produce HTML pages)? If so, then do it, it's that simple. If not, find an HTML forum and ask there.

Member Avatar for masijade
0
41
Member Avatar for adams161

You are probably "sending your data" on the event thread which prevents any other event from triggering (and prevent most other GUI functions as well) until it is finished. Your action listener should start another thread and that thread should "send the data", or, better, you should start a new …

Member Avatar for adams161
0
103
Member Avatar for sindhu1

There is another forum for hiring people to do your work for you. This one is not it.

Member Avatar for masijade
0
51
Member Avatar for seriousgeek

Yea, simply change what's being displayed. It [i]might[/i] help to know exactly what you want to do, but just so you know, "AJAX" essentially imitates for browser client actions what is essentially native to standalone applications, so don't start out by thinking about what you can do in AJAX (or …

Member Avatar for masijade
0
91
Member Avatar for naziatarannum

None of those. This is simply accessing a file on a shared disk. Not a download at all. Take a look at his other threads on this forum about access times and downloads.

Member Avatar for serpiko
0
333
Member Avatar for dave_nithis
Member Avatar for johndoe444

Make sure the ssh is configured to allow public key access. Also, make sure your authorized_keys file is setup properly, [i]and[/i] are you sure its asking for a password and [i]not[/i] a pass[i]phrase[/i], which is connected to the ssh key.

Member Avatar for JeoSaurus
0
101
Member Avatar for Stefano Mtangoo

Well, then, Google for SQLite JDBC Driver. There [i]is[/i] one out there. It is [i]not[/i] a Type 4.0 Driver (AFAIK), however.

Member Avatar for Ezzaral
0
153
Member Avatar for alkeshtech

There is no "conversion" involved. It is a simple cast, and after the return the instance will still be the same type it was before. And, it's not possible to "dynamically" change the return type of a method anyway, so the entire is doomed to failure. Maybe if you would …

Member Avatar for javaAddict
0
99
Member Avatar for P00dle

Um, I'm sorry, but what is wrong with [url=http://java.sun.com/javase/6/docs/api/javax/swing/JFileChooser.html]JFileChooser[/url]? In any case, if you insist on recreating the wheel, [url=http://java.sun.com/docs/books/tutorial/uiswing/events/actionlistener.html]here[/url].

Member Avatar for P00dle
0
186
Member Avatar for GiRL,IT

[QUOTE=GiRL,IT;1074765] I want solution for code before saturday[/QUOTE] Then you'd better get cracking. We are [i]not[/i] a homework (cheating) service. Maybe next time you'll do your homework rather than go partying.

Member Avatar for GiRL,IT
-2
156
Member Avatar for Bandre

It [i]might[/i] help to [i]see[/i] this "LOGIC ITERATOR", but if you are doing something akin to [code]while(next()) { if (valid) { print data } print newline }[/code] then, yes, of course, it is coming from your "LOGIC ITERATOR", don't do that.

Member Avatar for masijade
0
85
Member Avatar for deecy1
Member Avatar for javaAddict
0
95

The End.