fork(1) download
  1. class M{
  2.  
  3. public static void main(String[] a){
  4. a = new String[]{ "global", "glossary" };
  5.  
  6. for(char i = 0, c; i < a[0].length(); ){
  7. c = a[0].charAt(i);
  8. if(c != a[1].charAt(i++)){
  9. break;
  10. }
  11. System.out.print(c);
  12. }
  13. }
  14. }
Success #stdin #stdout 0.04s 711168KB
stdin
Standard input is empty
stdout
glo