Share on Google+Share on Google+

1 Answer(s)      7 years ago
Posted in : Java Interview Questions
View Answers

July 24, 2009 at 1:08 AM

* @author Rajesh Sirangu
public class displayNumbers {

public static void main(String args[]){

for(int i=1;i<5;i++){
for(int j=1;j<=i-1;j++){
for(int p=1;p<=j;p++){
for(int j=1;j<=i;j++){
//condition is to display comma , properly.


Related Tutorials/Questions & Answers:
Key requirement for business analyst
Key requirement for business analyst  What are the key requirement of the business analyst?   A Business analyst plays a key role in handling organisational business and projects and thus need to possess technological
REQUIREMENT - Java Interview Questions
REQUIREMENT  i have requirement like this i want to print 1 1,2,2 1,2,2,3,3,3 1,2,2,3,3,3,4,4,4,4 i want print like this ?i want source code plz reply    /** * @author Rajesh Sirangu * */ public class
What is the most important requirement for OLTP ?
What is the most important requirement for OLTP ?   What is the most important requirement for OLTP ?   Hi, In the transaction server, the client component usually includes GUI and the server components usually
System and Hardware Requirement for Windows 8
Microsoft has launched its new Windows 8 in the market, but most of the users are thinking is their computer, laptop or tablet enough to run Windows 8. Here are the minimum system and hardware requirement that your computer, laptop
JRequisite - Requirement Management Tool
JRequisite - Requirement Management Tool       JRequisite 0.0.1 is released! The first version includes a flowchart diagram editor. See more about this agile requirement
Hardware Requirement for Linux.
Hardware Requirement for Linux. For Installing Linux Server/ Desktop... Intel processor. Minimum Requirement for 32-bit version. Fedora Core 6... Hard Disk Space Requirement. Minimum space required at the initial stage
Third Normal Form (1NF)
Third Normal Form (1NF)       Third Normal Form (1NF) The Third Normal Form has one more additional requirement :         A. It should meet all
What is CMS
What is CMS? A Content Management System (CMS) is a system that allows the user to customize the web pages according to user's requirement. The end user can do more changes than the site builder using CMS system. A basic CMS allows
The Prototype Pattern
customized as per the requirement. It copies the existing object to avoid so much
Application Using JAX-RPC
Application Using JAX-RPC       Project Requirement Make a Netbeans Web Project.In it develop a Web Service application using the JAX-RPC concept.The Web Service should have operation for interest
Tomahawk inputDate tag
according to our requirement. This component can be of various types. We can create... CSS and java script to make it useful according to our requirement
MySQL Order By
requirement. ORDER BY: This keyword is used to sort the records in ascending order
Marker Interface In Java
viz. what is marker interface, use of marker interface, requirement of marker... marker interface. Requirement of Marker interface As we discussed above
Access Modifiers and Garbage Collection
Access Modifiers and Garbage Collection       Previously it was a requirement to allocate and release memory manually to assist with this problem it provides a reference
Spark BorderContainer in Flex4
Spark BorderContainer in flex4: It is a spark container in Flex 4. If user want to add a border for a component or want to change the background of the content area then Flex 4 provide a container for this requirement Flex defines
Flex Custom Components
the requirement. This time, we need to create custom components and provide
JSF Application
to the requirement of the application. This topic explains about how to create custom
PHP Control Statement
PHP Control Statement The PHP Conditional statements helps us to perform different actions for different decisions. You can use conditional statements to control the flow of the program according to the requirement of the program
PHP Frameworks: Which PHP Framework to choose for 2014?
frameworks that meet your requirement, saves time and efforts. A PHP framework
Java Read File Line by Line - Java Tutorial
. For example if there is requirement to process the large legacy data store in txt... size as per requirement. Here are the constructor of 
VoIP Vendors
requirement are misleading enterprise customers, according to industry insiders
Web Hosting Services India
on Linux Server to Dedicated Hosting on Windows Server, as per the requirement
Regarding one business scenario
Regarding one business scenario  Ya actually i have a requirement...? 4.Grand father occupation? My requirement is getting any of two questions randomly into jsp page? How to solve this requirement using Struts 2.x
Ajax user interface - Ajax
Ajax user interface  hello could anyone help my requirement is to design the database interaction using AJAX my requirement is a table... the operation has to be performed without page refreshing this requirement
memory span and shrink - pointers
memory span and shrink - pointers  Memory span and shrink as per application requirement and this is one of major advantage of pointer. please explain the above statment with an example with respect to c
URL folder download to local
URL folder download to local  I have a requirement to download all the folders and files inside from a SVN link to my local directory. Can you help how it could be done
Disabling the back button in all the browsers
Disabling the back button in all the browsers  I have a requirement like this, I have to disable back button of all the browsers(It should support all the browsers). Can u plz help me