Code:/* * Created on Nov 6, 2007 */ /** * @author books4java.blogspot dot com * * Program to print Pyramid * */ public class Pyramid { static private int x=8; static int z; static{ z=2; } static class B2{ static int y=9; void goB2(){ System.out.println(x+" "+y+" "+z); } } }
Last edited by v0id; 12-14-2007 at 06:28 AM. Reason: Remember the code-tags!
Do you have any questions, or did you just want to show us the code you've made, though it doesn't print pyramids, as far as I can see.
not a pyramid
its a striangle
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks