Does anyone know how to start the console on Mac? -scott
Printable View
Does anyone know how to start the console on Mac? -scott
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
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
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?
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