Showing results 1 to 40 of 84
Search took 0.01 seconds.
Posts Made By: jerbo
Forum: Java Jan 26th, 2005
Replies: 15
Views: 6,773
Posted By jerbo
Re: Question about java.lang.UnsatisfiedLinkError in MMAPI

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: 6,773
Posted By jerbo
Re: Question about java.lang.UnsatisfiedLinkError in MMAPI

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 to...
Forum: Java Jan 7th, 2005
Replies: 3
Views: 10,956
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
Re: Question about synchronized and wait

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: 1
Views: 3,436
Posted By jerbo
Re: What "race condition" is?

See:
http://www.javaworld.com/javaworld/jw-10-1998/jw-10-toolbox-p2.html
Forum: Java Dec 6th, 2004
Replies: 8
Views: 2,798
Posted By jerbo
Re: The World's Youngest IBM Certified J2EE Developer.

Hummm.....personal computers; did not exist when I was 14!
:lol:
Forum: Java Nov 30th, 2004
Replies: 3
Views: 3,325
Posted By jerbo
Re: How to invoke array varibles to another main method

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: 6,497
Posted By jerbo
Re: Need help writing a program to classify a poker hand

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: 3,325
Posted By jerbo
Re: How to invoke array varibles to another main method

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,475
Posted By jerbo
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
Posted By jerbo
Re: missing return statement 106 and 123, any ideas??

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: 3,473
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
Re: Basic problem calling methods within a class

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...
Forum: Java Nov 24th, 2004
Replies: 5
Views: 3,109
Posted By jerbo
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
Posted By jerbo
Re: Basic problem calling methods within a class

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,555
Posted By jerbo
Re: Is ther somthing wrong with this code

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: 4,026
Posted By jerbo
Re: URGENT Help Needed With TicTacToe Application Source Code!!!

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: 3,382
Posted By jerbo
Re: missing return statement 106 and 123, any ideas??

Opps, I see you are returning char[][] not char []......change to char[][] :)
Forum: Java Nov 23rd, 2004
Replies: 4
Views: 1,512
Posted By jerbo
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
Posted By jerbo
Re: missing return statement 106 and 123, any ideas??

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,059
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
Re: problems accessing class instances

public Calculator getCalculator()
{
return calc;
}

You never declare what 'calc' is.

public Calculator getCalculator()
{
Calculator calc;
Forum: Java Nov 19th, 2004
Replies: 5
Views: 2,594
Posted By jerbo
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
Posted By jerbo
Re: loop to create arrays when reading a file

Opps, step 11 sould return to step # 8
Forum: Java Nov 18th, 2004
Replies: 4
Views: 4,744
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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
Posted By jerbo
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...
Showing results 1 to 40 of 84

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 7:06 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC