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 str="zbdhajfnsmloeituryqp"; str=str.toUpperCase(); int arr[]=new int[26]; lexo(str,arr); } public static void lexo(String str,int arr[]){ String ans=""; for(int i=0; i<str.length(); i++){ int temp = (int)str.charAt(i)-65; arr[temp]++; } for(int i=0; i<arr.length; i++){ if(arr[i]>0){ for(int j=0; j<arr[i]; j++){ ans+=(char)(i+65); } } } System.out.println(ans.toLowerCase()); } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

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

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue