Thread: Source Code
View Single Post
  #3 (permalink)  
Old February 7th, 2006, 10:20 AM
nappydyno234 nappydyno234 is offline
Registered User
 
Join Date: Feb 2006
Location: Belleville, NJ, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to nappydyno234 Send a message via Yahoo to nappydyno234
Default

I created my program, and it looks like this:

public class power {
    public static void main(String[] args) {
     int base;
     int order;
     int p;
     System.in.println(base, order);
     System.out.println("Java power" base order);
     System.out.println("Mariner Eccles");
     p = pow(base, order);
     System.out.println(p);
    }
}

When I go to compile, it comes up with this:

power.java:7: ')' expected
     System.out.println("Java power" base order);
                                     ^
1 error

I am new at this, so I dont quite understand what the error i...if anyone out there knows, I would appreciate it greatly...



Reply With Quote