Lost Password?

  #1 (permalink)  
Old 12-14-2007, 05:42 AM
satya5321 satya5321 is offline
Newbie
 
Join Date: Dec 2007
Posts: 6
Rep Power: 0
satya5321 is on a distinguished road
Default Program to print Pyramid

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 08:28 AM. Reason: Remember the code-tags!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 12-14-2007, 08:30 AM
v0id's Avatar   
v0id v0id is offline
Super Mod
 
Join Date: Apr 2007
Location: Denmark
Posts: 1,880
Last Blog:
CherryPy(thon)
Rep Power: 23
v0id is a name known to allv0id is a name known to allv0id is a name known to allv0id is a name known to allv0id is a name known to allv0id is a name known to all
Send a message via MSN to v0id
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial - Smarterchild copy travy92 VB Tutorials 15 06-02-2008 02:06 PM
Help with Square root and calculator program!!! 123456789asdf C and C++ 10 12-02-2007 04:35 PM
How do I Program another Program? ! bosco General Programming 1 06-15-2007 11:15 AM
How to modify a program written in .NET 2.0? jackyjack C# Programming 7 03-27-2007 12:26 PM


All times are GMT -5. The time now is 11:33 PM.

Contest Stats

dargueta ........ 93.00000
John ........ 87.50000
Xav ........ 50.00000
MeTh0Dz ........ 20.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000

Contest Rules

Ads