sentence: this is a self-reproducing program % routinespec r r print symbol ( 39 ) r print symbol ( 39 ) newline % caption % end ~ % caption % endofprogram ~ % routine r % printtext ' % end % endofprogram examples the following java code demonstrates the basic structure of a quine .