Results 1 to 5 of 5
  1. #1
    ScottVal is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    Default Starting the console on Mac

    Does anyone know how to start the console on Mac? -scott

  2. #2
    ScottVal is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    Default

    Note that I'm talking about starting the console for use by locally-run Java programs, not applets inside a browser.

    Until I figure this out, as a workaround, I'm going to improve exception reporting in my program, rather than relying on the console. Probably a good idea anyway...

    -scott

  3. #3
    javasucks2009 is offline Member
    Join Date
    Mar 2009
    Posts
    9
    Rep Power
    0

    Default

    hello guys!!! I have some problems with my work cos i dont knw where to start the coding for this question. if anyone would not mind to help me then have a look at the question below:-


    • Write a program that sums up the elements of an array of size 11 recursively. Use a recursive method that takes
    as parameters the array and the size of the array. (2 marks)
    // returns the sum of all elements in a[]
    int findSum ( int a [] , int n )



    thanks

    Andy
    Last edited by javasucks2009; 03-18-2009 at 07:45 PM. Reason: jst done corrections

  4. #4
    emceenugget is offline Senior Member
    Join Date
    Sep 2008
    Posts
    564
    Rep Power
    7

    Default

    do you mean open a new terminal in general? or if there is something in java that can run a program such as the terminal?

  5. #5
    ScottVal is offline Member
    Join Date
    Jan 2009
    Posts
    35
    Rep Power
    0

    Default Starting the console on Mac

    I was talking about the Java Console, you know, the thing under Windows you can open by clicking on the task bar.

    I'm not very good with Macs. I figured out how to get the Java Console to open up when you have an applet running in a browser on a Mac. But I wanted to figure out how to open the console for Java programs running outside a browser.

    Actually, I'm feeling better because I figured out how to start the Utilities/Terminal, and I'm running my Java program from the terminal. Exceptions appear on the terminal, so I don't really need the Console.

    As for the post about the recursive method -- I don't see why you'd want to do something like that recursively. Why not just write a loop which sums up the elements in the array?

    -scott

Similar Threads

  1. starting problem
    By anithananduri in forum New To Java
    Replies: 1
    Last Post: 03-17-2009, 02:27 PM
  2. Need help starting program
    By mk3823 in forum New To Java
    Replies: 8
    Last Post: 11-02-2008, 02:41 AM
  3. Indexing starting with 1
    By ravian in forum New To Java
    Replies: 4
    Last Post: 01-04-2008, 01:03 PM
  4. Help, starting with java
    By mathias in forum New To Java
    Replies: 2
    Last Post: 08-15-2007, 08:15 AM
  5. just starting
    By specbailey in forum New To Java
    Replies: 23
    Last Post: 08-14-2007, 12:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •