can anyone explain how does this program work.
public static void main(String args[]){
String input ="***NGuyen**Van******A*******";
String result ="";
for( int i = 0 ; i < input.length() ; i++)
{
result = input.charAt(i) + result ;
}
System.out.println(result);
}}
The output will be
*******A******naV**neyuGN***