Forum: Java Jan 26th, 2005 |
| Replies: 15 Views: 6,773 |
Forum: Java Jan 25th, 2005 |
| Replies: 15 Views: 6,773 |
Forum: Java Jan 7th, 2005 |
| Replies: 3 Views: 10,956 Re: to delete contents of a text file Two things.
One, show us first what you have. Then we can assist in helping you
Two, this forum is for assistance, not free code. If you want to learn how to do it in Java, show some effort... |
Forum: Java Dec 17th, 2004 |
| Replies: 1 Views: 2,089 Re: Need Help Figuring out errors First glance is you defined a constructor with a parameter. If you define a constructor with a parameter, you also need to define the default constructor. |
Forum: Java Dec 16th, 2004 |
| Replies: 1 Views: 1,540 Thread tutorial link Here is a good tutorial link:
http://www.javaworld.com/javaworld/jw-05-2002/jw-0503-java101_p.html
As a matter of fact:
http://www.javaworld.com/
Has some excellent articals. |
Forum: Java Dec 16th, 2004 |
| Replies: 4 Views: 1,611 Re: Files You can also look here for some help:
http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html? |
Forum: Java Dec 15th, 2004 |
| Replies: 1 Views: 1,860 Re: VB to java convertor I did a search, and found:
http://www.diamondedge.com/
Also
http://www.blackdirt.com/
and
http://www.vb2java.com/vb2java.html |
Forum: Java Dec 15th, 2004 |
| Replies: 3 Views: 1,708 Re: i have problem with array plz help It also helps to state the problem that you are having. Just saying HELP gives me no clue as to the problem you are having.
I can infer somewhat from your statement above, but my determination... |
Forum: Java Dec 15th, 2004 |
| Replies: 7 Views: 3,249 |
Forum: Java Dec 15th, 2004 |
| Replies: 1 Views: 3,436 |
Forum: Java Dec 6th, 2004 |
| Replies: 8 Views: 2,798 |
Forum: Java Nov 30th, 2004 |
| Replies: 3 Views: 3,325 |
Forum: Java Nov 29th, 2004 |
| Replies: 3 Views: 6,497 |
Forum: Java Nov 29th, 2004 |
| Replies: 3 Views: 3,325 |
Forum: Java Nov 28th, 2004 |
| Replies: 10 Views: 2,475 Re: Comenzando con Java Speeking of language, I think this is a JAVA language too. To all parties, just let vyk2rr, make his post now, in english please and be done with it.
Yes, it can be said that we all need to learn... |
Forum: Java Nov 26th, 2004 |
| Replies: 7 Views: 3,382 |
Forum: Java Nov 24th, 2004 |
| Replies: 10 Views: 3,473 Re: using a varible from main method OK, here we go.
The reason for the boolean is you declared 'ifstate' with a return type of boolean. In reality, your "blah blah" (which I assume is shorthand for the remaining code in your method,)... |
Forum: Java Nov 24th, 2004 |
| Replies: 10 Views: 3,473 Re: using a varible from main method Try this (in reference to passing the variable):
public class work {
public static void main (String [] args) {
boolean booleanAnswer;
int number = 1;
// Passes copy of number... |
Forum: Java Nov 24th, 2004 |
| Replies: 10 Views: 3,473 Re: using a varible from main method It is a matter of scope.
Put
int number = 1
outside the Main method (at the begining of your class.)
Look up the deffinition of scope in Java to learn more |
Forum: Java Nov 24th, 2004 |
| Replies: 5 Views: 3,109 |
Forum: Java Nov 24th, 2004 |
| Replies: 5 Views: 3,109 Re: Basic problem calling methods within a class Opps, that was to call a method in a class.
Same way in VB. Use the method name. Just consider if you have a return value in the method, if so then you need to assign the return value to the same... |
Forum: Java Nov 24th, 2004 |
| Replies: 5 Views: 3,109 |
Forum: Java Nov 24th, 2004 |
| Replies: 3 Views: 1,555 |
Forum: Java Nov 24th, 2004 |
| Replies: 2 Views: 4,026 |
Forum: Java Nov 23rd, 2004 |
| Replies: 7 Views: 3,382 |
Forum: Java Nov 23rd, 2004 |
| Replies: 4 Views: 1,512 Re: having problem with this Question Which question? I see 9 questions.
Answer the ones you know, and we MAY be able to help with the rest.
However, this forum is not for you to submit your homework assignments for us to do.
You... |
Forum: Java Nov 23rd, 2004 |
| Replies: 7 Views: 3,382 |
Forum: Java Nov 22nd, 2004 |
| Replies: 2 Views: 3,059 Re: IO and Embedded SQL BTW - If you want to go advanced with parameter queries, then you can check out the following (Keep SQL out of code) at:
http://www.javapractices.com/Topic105.cjp
It has some excellent code to allow... |
Forum: Java Nov 22nd, 2004 |
| Replies: 2 Views: 3,059 Re: IO and Embedded SQL I assume you are wanting to take the value from 'stdin' and build your query?
Then:
ResultSet query =
stat.executeQuery("SELECT * FROM Grade_Report");
becomes
// First create a String to hold your... |
Forum: Java Nov 22nd, 2004 |
| Replies: 9 Views: 2,048 Re: problems accessing class instances Actually you dont even need to assign (I was getting an error too.) This does compile:
public class Intake{
// I now want to work with the instance "calc" created above so I can
// use the... |
Forum: Java Nov 22nd, 2004 |
| Replies: 9 Views: 2,048 Re: problems accessing class instances Opps, I mispelled, Calculations
The second class should be:
public class Intake{
// I now want to work with the instance "calc" created above so I can
// use the variables that were set in... |
Forum: Java Nov 22nd, 2004 |
| Replies: 2 Views: 1,809 Re: Don't understand my problem please help! I imported your code, and the only errors I received when run is an index out of bounds error, (when I clicked one of the buttons,) but that was because you have no values for;
public final... |
Forum: Java Nov 22nd, 2004 |
| Replies: 9 Views: 2,048 Re: problems accessing class instances I think what you have is an issue of scope.
Looking at the above, I think you placed the getCalculator method in the wrong class. It should go in the Parameters Class.
So you would have the... |
Forum: Java Nov 22nd, 2004 |
| Replies: 9 Views: 2,048 |
Forum: Java Nov 19th, 2004 |
| Replies: 5 Views: 2,594 Re: getting a nullpointer exception OK, I think I found your problem.
Change
String getFile = chooser.getName();
to
String getFile = chooser.getSelectedFile().getPath();
The reason you received a Null Pointer exception is
... |
Forum: Java Nov 18th, 2004 |
| Replies: 4 Views: 4,744 |
Forum: Java Nov 18th, 2004 |
| Replies: 4 Views: 4,744 Re: loop to create arrays when reading a file 1. Open file
2. Read line
3. Save values (Name ;Magnitude)
4. Save Name to save variable (saveName)
5. Create Array
6. Store values in array
7. Begin loop
8. Read file
7. If end of file clean up and... |
Forum: Java Nov 17th, 2004 |
| Replies: 3 Views: 1,939 Re: Malthusian Equation Help You want to set up a loop. Save your initial 'P' value, then feed it back into the equation. Then check the result and determine if it is stable or Extinct.
You can put the below in it's own... |
Forum: Java Nov 17th, 2004 |
| Replies: 10 Views: 6,195 Re: Accessing a variable of another class Another thing I just thought of. If you wish to force the use of parameters (in other words you don't want the developer to use the default constructor for Record,) then code the following default... |
Forum: Java Nov 17th, 2004 |
| Replies: 10 Views: 6,195 Re: Accessing a variable of another class Ok, I think I might understand you now.
I think you would need to do the following:
Record c = new Record();
Record r = c.copy();
The reason for the 'c' not initialized, is... |