|
||||||
| Java Tutorials Tutorials and Code for Java |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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);
}
}
}
__________________
Free Downloadable Java,J2EE,Struts,XML EBooks Last edited by v0id; 12-14-2007 at 08:28 AM. Reason: Remember the code-tags! |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |