online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online Java Compiler. Code, Compile, Run and Debug java program online. Write your code in this editor and press "Run" button to execute it. *******************************************************************************/ public class Main { public static void main (String[]args){ String word = "TENET"; System.out.println (isPalindrome(word)); } static boolean isPalindrome (String word){ char[] charArray = word.toCharArray(); int n = charArray.length; for (int k = 0; k <= n - 1; k++){ if (charArray[k] != charArray[(n - 1) - k]){ return false; } } return true; } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text



Program is not being debugged. Click "Debug" button to start program in debug mode.