Complex sentence: He went on to the Radio Vocational School in Surabaya but had barely graduated from the school when Japan invaded Surabaya (1942).
Split into simpler sentences: He went on to the Radio Vocational School in Surabaya. He had barely graduated from the school when the Japan invaded Surabaya (1942).