Import.java. Avenue to Jane . *;
Import.java. Yugong Yishan . *;
Public class yugongyishan//defines a class named Yugongyishan
{//Start of class definition
String is a foolish man , a descendant , a three-man of the Lotus ;
Boolean ifend=false;//Judge whether the mountain has been leveled
Void doIt ()//start to move Mountain
{
Shan sh=new Shan ();//Affirm the object of a mountain;
Shan. The =bigbignumber of the punishing mountain ;
A group of project organizers, group managers, programmers, technical analysts, etc.
The descendants of the three-person Dutch three technicians
The man is a foreign association
Goal for the flat Wang Huata two mountain
while (!sh.ifend)//If the mountain is not leveled;
{
Sh. Punishing mountain = sh. decrease in the number of -1;//in the Correctional Hills
if (Sh. ==0)//If Daishan has been leveled, make ifend=true
Sh.ifend=true;
Else
{
If (Fool's death )
{
A foolish male = The word of a foolish male;
Then let the descendants and descendants of the descendants continue to move Mountains ;
}
Else
{
The foolish Duke then moved himself and his descendants to the mountain ;
}
}//else End
}//while End
public static void Main (string[] args)//define main program
{
Yugongyishan yu=new Yugongyishan ();//Affirm a Yugongyishan
The object
Yu. DoIt ();
}//the end of the main program
End of}//class definition
public class Shan ()//define a Mountain object
{
Long Correctional Hill;
The =bigbignumber of the punishing mountain ;
Boolean ifend=false;//defines a Boolean object and initializes it to false;
}
Java pseudo-code of the Boulevard to Jane's reading