twitter

Monday, October 24, 2011

Java Programming Chapter 2 (The Tree)

Ok in this chapter we will show words in 4 line. Check this Code: 

public class TheTree {
 public static void main(String[] args) {
  System.out.println("I thinnk that I shall never see,");
  System.out.println("a poem as lovely as a tree.");
  System.out.println("A tree whose hungry mouth is pressed");
  System.out.println("Againts the Earth's sweet flowings breast.");
 }
}


That code will show :
  I think that I shall never see,
  a poem as lovely as a tree.
  A tree whose hungry mouth is pressed
  Againts the Earth's sweet flowings breast.

No comments:

Post a Comment