Search Results

Showing results 1 to 40 of 84
Search took 0.01 seconds.
Search: Posts Made By: jerbo
Forum: Java Jan 26th, 2005
Replies: 15
Views: 7,790
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
See:
http://www.javaworld.com/javaworld/jw-10-1998/jw-10-toolbox-p2.html
Forum: Java Dec 6th, 2004
Replies: 8
Views: 3,371
Posted By jerbo
Hummm.....personal computers; did not exist when I was 14!
:lol:
Forum: Java Nov 30th, 2004
Replies: 3
Views: 4,504
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
Opps, I see you are returning char[][] not char []......change to char[][] :)
Forum: Java Nov 23rd, 2004
Replies: 4
Views: 1,895
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
Opps, step 11 sould return to step # 8
Forum: Java Nov 18th, 2004
Replies: 4
Views: 7,051
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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...
Showing results 1 to 40 of 84

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC