So I coded up a simple test program for an algorithm in Eclipse 3.7.2. When I went to go run it, I was met with some gray bar that appeared on the top portion of the console. It reads: <terminated> test[Java Application]C:\Program Files\Java\jre6\bin\javaw.exe. Anyone know what’s causing this?

So I coded up a simple test program for an algorithm in Eclipse 3.7.2.
Share
Your program is executing properly. The problem is in the logic of your program which is never allowing it to reach the print statement.
When you do
This statement
s==originalalways returns true in your case since this operator will compare the two objects.You need to rethink your logic here and google about what
== operatordoes in Java.Also, on another note, instead of using an array
String[] s = {"a","b","c"}, why dont you use a stringString s = "abc";