Forum: Java Jan 26th, 2005 |
| Replies: 15 Views: 7,790 Unfortunatly, I have not done any development work using J2ME. Sorry I couldn't help; it was a shot in the dark. |
Forum: Java Jan 25th, 2005 |
| Replies: 15 Views: 7,790 Is this for a mobile device? The library you downloaded is:
Micro Edition Mobile Media API Reference Implementation Version 1.0 (MMAPI)
You may be experiancing problems because you are trying... |
Forum: Java Jan 7th, 2005 |
| Replies: 3 Views: 17,358 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,364 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: 2,013 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,869 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: 2,242 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: 2,131 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: 4,535 Here is a document you might also want to read:
http://www.javaworld.com/javaworld/jw-04-1996/jw-04-synch.html |
Forum: Java Dec 15th, 2004 |
| Replies: 2 Views: 6,752 See:
http://www.javaworld.com/javaworld/jw-10-1998/jw-10-toolbox-p2.html |
Forum: Java Dec 6th, 2004 |
| Replies: 8 Views: 3,371 Hummm.....personal computers; did not exist when I was 14!
:lol: |
Forum: Java Nov 30th, 2004 |
| Replies: 3 Views: 4,504 If you are familure with VB, it is simular.
In your declared method, you declare the types of variables you wish to receive, like this:
// The below method (MyMethod) is passed two parameters, ... |
Forum: Java Nov 29th, 2004 |
| Replies: 3 Views: 8,968 Please clarify by what you mean by 'what type of poker hand it is'?
Are you refering to the type of hand (i.e. Straight, flush, full house, ... ) ? |
Forum: Java Nov 29th, 2004 |
| Replies: 3 Views: 4,504 Actually in a program (application) you will only have one main method.
All others are just classes (with no main method).
Same as in VB, you only have one 'Sub Main' routine. |
Forum: Java Nov 28th, 2004 |
| Replies: 10 Views: 2,955 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: 4,088 I must appoligize again. I was looking at your code while getting ready to go out the door.
In your code above, you are actually returning one characher:
return cipherArray[i][0];
So your return... |
Forum: Java Nov 24th, 2004 |
| Replies: 10 Views: 4,220 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... |
Forum: Java Nov 24th, 2004 |
| Replies: 10 Views: 4,220 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... |
Forum: Java Nov 24th, 2004 |
| Replies: 10 Views: 4,220 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: 4,727 Simple:
//Assuming you have a String Array (String args[]), lets call it:
String[] myStringArray = new String[2];
// And assuming you initilized myStringArray to somenting, you would have:... |
Forum: Java Nov 24th, 2004 |
| Replies: 5 Views: 4,727 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... |
Forum: Java Nov 24th, 2004 |
| Replies: 5 Views: 4,727 You use DOT notation (much like you do in VB I think.)
ClassInstanceName.MethodName(Optional parameters)
So if you have:
String myString = "Something";
// Then you could say: |
Forum: Java Nov 24th, 2004 |
| Replies: 3 Views: 1,820 You also need to enclose it in a try/catch block
try {
int vals[] = new int [12];
vals[18] = 10;
} catch (ArrayIndexOutofBoundsException) {
//handle error
} |
Forum: Java Nov 24th, 2004 |
| Replies: 2 Views: 5,122 One hint I will give you.
Where do you set the value of 'play' after each turn?? |
Forum: Java Nov 23rd, 2004 |
| Replies: 7 Views: 4,088 Opps, I see you are returning char[][] not char []......change to char[][] :) |
Forum: Java Nov 23rd, 2004 |
| Replies: 4 Views: 1,895 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.
... |
Forum: Java Nov 23rd, 2004 |
| Replies: 7 Views: 4,088 In both methods:
char crypt
char decrypt
You specify a char return type, but you are returning an char array type
char[] crypt
char[] decrypt |
Forum: Java Nov 22nd, 2004 |
| Replies: 2 Views: 3,731 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... |
Forum: Java Nov 22nd, 2004 |
| Replies: 2 Views: 3,731 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... |
Forum: Java Nov 22nd, 2004 |
| Replies: 9 Views: 2,466 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... |
Forum: Java Nov 22nd, 2004 |
| Replies: 9 Views: 2,466 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... |
Forum: Java Nov 22nd, 2004 |
| Replies: 2 Views: 2,112 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,466 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,466 public Calculator getCalculator()
{
return calc;
}
You never declare what 'calc' is.
public Calculator getCalculator()
{
Calculator calc; |
Forum: Java Nov 19th, 2004 |
| Replies: 5 Views: 3,467 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... |
Forum: Java Nov 18th, 2004 |
| Replies: 4 Views: 7,051 Opps, step 11 sould return to step # 8 |
Forum: Java Nov 18th, 2004 |
| Replies: 4 Views: 7,051 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... |
Forum: Java Nov 17th, 2004 |
| Replies: 3 Views: 2,407 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: 12,097 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: 12,097 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... |