Unfortunatly, I have not done any development work using J2ME. Sorry I couldn't help; it was a shot in the dark.

Is this for a mobile device? The library you downloaded is:
[b] Micro Edition[/b] Mobile Media API Reference Implementation Version 1.0 (MMAPI)
You may be experiancing problems because you are trying to run the app as a PC app, and the library is not designed for the PC environment. Hence the Link error.

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 first. I work for a living and do research accordingly. I read the books, search the web for code libraries, etc. It's not that hard if you put forth the effort.

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.

Here is a good tutorial link:
[url]http://www.javaworld.com/javaworld/jw-05-2002/jw-0503-java101_p.html[/url]

As a matter of fact:
[url]http://www.javaworld.com/[/url]
Has some excellent articals.

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 is you want to know how to read input and place it into the array?

If that is not it, then you need to be more specific.

:)

Here is a document you might also want to read:
[url]http://www.javaworld.com/javaworld/jw-04-1996/jw-04-synch.html[/url]

Hummm.....personal computers; did not exist when I was 14!
:lol:

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:
[code]
// The below method (MyMethod) is passed two parameters,
// one is a Integer, and another is a String
// It also RETURNS a character value
public char MyMethod(int myInt, String myString) {
char someChar = 'A';
// someChar is my return value (which can be modified in the method)
// You can then use myInt, and myString in your method
// ... Some other processing
return someChar;
} // End of MyMethod
[/code]

Now to call this your would code:
[code]
// Somewhere in your program (can be in the main method,
// or can be called in another method too)
returnChar = MyMethod( 1, "test string" );

// Noticed we passed an integer, and a string value.
[/code]
Note - that 'returnChar' is declared somewhere in your program (mose times at the begining of the main, or it can be declare in the class or the method in which it is used. It just depends on how you wish to use 'returnChar' (look up scope.)

Also, you can have methods that do not return a value. In this case the above MyMethod would look like this:
[code]
// The below method (MyMethod) is passed two parameters,
// one is a Integer, and another is a String
public [B]void[/B] MyMethod(int myInt, String myString) {
char someChar = 'A'; // My return value (which ...

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, ... ) ?

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.

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 about other cultures. Being retired military, I have seen other cultures in Europe and Aisa. And belive me it does help to learn a little about the culture where you are at.

However with that said, I am sure vyk2rr will now make his post in english. At least with the majority of us knowing english, you should be able to (hopefully) get an answer.

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:
[code]return cipherArray[COLOR=Red][i][0][/COLOR];[/code]
So your return type would still be char, instead of char[][].

Sorry about that

[QUOTE=jerbo]Try this (in reference to passing the variable):
[code]
public class work {

public static void main (String [] args) {
[COLOR=Red]boolean booleanAnswer;[/COLOR]
int number = 1;
[COLOR=Red]// Passes copy of number to ifstate[/COLOR]
[COLOR=Red]booleanAnswer = ifstate(number); [/COLOR]
}

public static boolean ifstate([COLOR=Red]int passedNumber[/COLOR]) {
if ( [COLOR=Red]passedNumber[/COLOR] == 0 )
//blah blah
}

Let me know if it is not clear

}//end class
[/code][/QUOTE]

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,) would contain a return statement of type boolean.

Where did you place "int number = 1;" when you placed it outside of main?
If you placed it outside of main, it should look like this:[code]
public class work {
[COLOR=Blue]int number = 1; // Creates the variable outside of the class[/COLOR]

public static void main (String [] args) {
[COLOR=Red]boolean booleanAnswer;[/COLOR]
[COLOR=Red]// Passes copy of number to ifstate[/COLOR]
[COLOR=Red]booleanAnswer = ifstate(number); [/COLOR]
}

public static boolean ifstate([COLOR=Red]int passedNumber[/COLOR]) {
if ( [COLOR=Red]passedNumber[/COLOR] == 0 )
//blah blah
}

Let me know if it is not clear

}//end class
[/code]

To declare and pass multiple parameters you separate them with a coma.
[code]
//Passing to a method
MyMethod(1, parm2, "Parm3");

//The declared method would look like this:
public void MyMethod(int p1, double p2, String p3) {
// Your code here
}[/code]

Note, in my example above, I passed an Integer, ...

Try this (in reference to passing the variable):
[code]
public class work {

public static void main (String [] args) {
[COLOR=Red]boolean booleanAnswer;[/COLOR]
int number = 1;
[COLOR=Red]// Passes copy of number to ifstate[/COLOR]
[COLOR=Red]booleanAnswer = ifstate(number); [/COLOR]
}

public static boolean ifstate([COLOR=Red]int passedNumber[/COLOR]) {
if ( [COLOR=Red]passedNumber[/COLOR] == 0 )
//blah blah
}

Let me know if it is not clear

}//end class
[/code]

It is a matter of scope.
Put
[code]int number = 1[/code]
outside the Main method (at the begining of your class.)

Look up the deffinition of scope in Java to learn more

Simple:

[code]
//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:
DrawCraneKitbox(myStringArray);
[/code]

Since the Method was decalred as [B]void[/B], it has no return type. I would assume you want 'DrawCraneKitbox' to just do something. and then execute the next line of code.

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 type.

You use DOT notation (much like you do in VB I think.)

[COLOR=Red]ClassInstanceName[/COLOR].[COLOR=DarkOrange]MethodName(Optional parameters)[/COLOR]

So if you have:

[CODE]
String myString = "Something";

// Then you could say:
System.out.println( [COLOR=Red]myString[/COLOR].[COLOR=DarkOrange]toUpper()[/COLOR] );
[/CODE]
'.toUpper' is a method of the String class that will output the string in upper case. :cool:

You also need to enclose it in a try/catch block
[code]
try {
int vals[] = new int [12];
vals[18] = 10;
} catch (ArrayIndexOutofBoundsException) {
//handle error
}
[/code]

Note - since you create the vals[] array in the try/catch block the vals[] array will not be available after the try/catch (see scope documentation on try/catch)

To avoid this declare your member variables outside the block:
[code]
int vals[] = new int [12];
try {
vals[18] = 10;
} catch (ArrayIndexOutofBoundsException) {
//handle error
}
[/code]

One hint I will give you.

Where do you set the value of 'play' after each turn??

Opps, I see you are returning char[][] not char []......change to char[][] :)

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 should at the very least try to answer them yourself first.

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

BTW - If you want to go advanced with parameter queries, then you can check out the following (Keep SQL out of code) at:
[url]http://www.javapractices.com/Topic105.cjp[/url]

It has some excellent code to allow you to store your queries in your properties file. This allows you to modify the queries without having to modify your code.

I assume you are wanting to take the value from 'stdin' and build your query?
Then:
[code]
ResultSet query =
stat.executeQuery("SELECT * FROM Grade_Report");
[/code]
becomes
[code]
// First create a String to hold your query at the begining of your code
String sqlQuery;

// Now either after you read the input or just before your query is built:
sqlQuery = "SELECT * FROM Grade_Report WHERE StudentNumber = " + stdin.toString();

ResultSet query = stat.executeQuery(sqlQuery);
[/code]
Note, I haven't done inputs, so I think it is stdin.toString(), but am not 100% sure.

Also, the Grade_Report table only contains the StudentNumber, not name. So you would have to do some other lookups to find the Student number from the Student table if given the name.

Hopefully with the above you should be able to find the Student number when given the name. ;)

Actually you dont even need to assign (I was getting an error too.) This does compile:
[code]
public class Intake{
// I now want to work with the instance "calc" created above so I can
// use the variables that were set in Parameters.class, but I don't know
// how to reference this instance!!
Parameters pram = new Parameters();
Calculations calc2 = pram.getCalculator();
// or you could even say (since calc is public)
Calculations calc3 = pram.calc;
}
[/code]