Click here for important information about

I am new to Java

February 3, 2011 at 17:52:22
Specs: Windows 7
In need to create a program that declares an array alpha of 50 elements of type double. Initialize the array so that the first 25 elements are equal to the square of the index variable, and the last 25 elements are equal to three times the index variable. Output the array so that 10 elements per line are printed. I have to use Eclipse to do this program. I am having lots of trouble. If anyone can help please! My email address is Thank you.

See More: I am new to Java

February 4, 2011 at 00:57:56
Sounds like a homework question. Show us what you have done so far and explain how it is failing.

Report •

February 17, 2011 at 11:04:16
Change this line
class javaboolean
public class javaboolean

Change this line
public static void main()throws IOException //here it asks for a semicolon
public static void main(String[] args) throws IOException {

Change this line
boolean z = (10>2)? true:false;
boolean z = 10>2;

Have fun.

Report •
Related Solutions

Ask Question