import java.net.*; import java.io.*; import java.util.*; import Heaven.faith.*; import Heaven.hope.*; import Heaven.love.*; public class Prayer extends HumanBeing { private HolySpiritualOutputStream out; static public void main(String args[]) { try { Prayer We = new Prayer(); while (isAlive(We)) { We.worshipGod(); We.prayForDailyNeed(); We.Amen(); } } catch (Exception e) { } } private Prayer() throws IOException { Socket socket = new Socket("OurFather.in.Heaven", Heaven.PRAYER_PORT); out = new HolySpiritualOutputStream(socket.getOutputStream()); } private void worshipGod() throws IOException { out.write("hallowed be your name,"); out.write("your kingdom come,"); out.write("your will be done on earth as it is in heaven."); } private void prayForDailyNeed() throws IOException { out.write("Give us today our daily bread."); out.write("Forgive us our debts,"); out.write("as we also have forgiven our debtors."); out.write("And lead us not into temptation,"); out.write("but deliver us from the evil one."); } private void Amen() throws IOException { out.write("for yours is the kingdom and the power and the glory for ever."); out.write("Amen."); out.close(); } }