Hello venkat,
System.out.println is not working on Android, but there is sth at least same powerful
'replacement':
The so called 'LogCat'.
If you are using
Eclipse, then you can goto Windows-> Show View -> Android -> LogCat.
- It should be visible in the DDMS-View by default
How to get to the DDMS-View (B if A is not visible):

If you are using the
Command-Line:
- Browse the tools directory of your Android-SDK and...
- use: ` adb logcat `
Using java Syntax Highlighting
android.util.Log:
Log.v (for verbose)
Log.d (for debug)
Log.i (for info)
Log.w (for warnings)
Log.e (for errors)
Parsed in 0.030 seconds, using
GeSHi 1.0.8.4
Usage in your code:Using java Syntax Highlighting
private static final String TAG = "MyActivity";
Log.v(TAG, "index=" + i);
Parsed in 0.033 seconds, using
GeSHi 1.0.8.4
Hope I could help.
Regards,
plusminus