[java programming] onClick

2009-08-10 Thread tinyang
I have a java program I'm working on, and it has a line in it: public void onClick(guidebtn) { with this error: Syntax error on token "guidebtn", VariableDeclaratorId expected after this token. I'm trying to find documentation for the onclick method so I can understand the problem, but I'm

[java programming] Re: Lab1011

2009-08-08 Thread tinyang
at 9:52 PM, tinyang wrote: > Hello > > I am trying to complete 3.1 of Lab 1011.  Below is 3.1: > > 4. (For your own exercise) Modify TestPassByValue.java as following.  > Build and run the project. > > Pass the second primitive type parameter to the test(..) method - you &g

[java programming] Lab1011

2009-08-08 Thread tinyang
Hello I am trying to complete 3.1 of Lab 1011. Below is 3.1: 4. (For your own exercise) Modify TestPassByValue.java as following. Build and run the project. * Pass the second primitive type parameter to the test(..) method - you can choose any primitive type parameter (such as long or

[java programming] Re: 1036 - Ex. 2 arrays

2009-07-29 Thread tinyang
} } }; Add two more braces (indicated in blue). Hope this helps you. On Wed, Jul 29, 2009 at 4:06 AM, tinyang wrote: Here is my result for exercise 2. int[][][] num = {{ 1000, 1001, 1002}, { 1003, 1004, 1005}, { 1006, 1007, 1008

[java programming] 1036 - Ex. 2 arrays

2009-07-28 Thread tinyang
Here is my result for exercise 2. int[][][] num = {{ 1000, 1001, 1002}, { 1003, 1004, 1005}, { 1006, 1007, 1008} }; The error I get is: Exception in thread "main" java.lang.RuntimeException: Uncompilable source code

[java programming] LAB 1002 - Incompatible types error

2009-07-22 Thread tinyang
Hi all. Here is my code for MyGreatestValueProject2. I'm getting a "Incompatible types" compile error on the following line: min = (zero < num3) ? "The smallest number is less than 10!" : "The smallest number is greater than or equal to 10!"; I think I understand the problem which is declaring