Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


bhaskarreddy
REQUIREMENT
1 Answer(s)      5 years and 2 months ago
Posted in : Java Interview Questions



Advertisement
View Answers

July 24, 2009 at 1:08 AM



/**
* @author Rajesh Sirangu
*
*/
public class displayNumbers {

public static void main(String args[]){

System.out.println("***START**");
for(int i=1;i<5;i++){
for(int j=1;j<=i-1;j++){
for(int p=1;p<=j;p++){
System.out.print(j+",");
}
}
for(int j=1;j<=i;j++){
//condition is to display comma , properly.
if(j==i){
System.out.print(i);
}else{
System.out.print(i+",");
}
}
System.out.println();
}
System.out.println("***END***");
}
}


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
Advertisements
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
logic to process the data line bye line. For example if there is requirement... 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
Functional Requirements - Development process
Functional Requirements  Hi Sir, We are planed to develop an Applicant Tracking System. For that we have to write the Functional Requirement and design Functional Architecture... How to write those...I did search. but didn't get
jsp - JDBC
jsp  how to link jsp code with next htmlcode.  Hi keerthi, Can u explain ur question clearly? What is your exact Requirement
regarding webservice - WebSevices
regarding webservice  hi, I want to implement Webservices, How i have to use? pls reply me.   Hi Mention your requirement properly.Exactly what you wanna do
RichFaces + Spring Connectivity - Spring
RichFaces + Spring Connectivity  Hi We are having requirement of using RichFaces with Spring Framework. When the user fills out all the forms information(textbox) and clicks submit, then how to retrieve the value within Spring
java code - Java Beginners
java code  i have one requirement , i have long value is 150.000- so i neeed to display(convert) as -150.000 using java language,please if u know the anwer send the code
Restricting the user from filling the data in a textfield using html
Restricting the user from filling the data in a textfield using html  I got a requirement like this, If the user is trying to fill a text field, i have to restrict him
calendar
calendar  I got one requirement like this i have to display a calendar with only current month and whenever user selects the date, that date needs to be display in a text field
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
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
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
HttpServlet reading XML from HttpRequest - XML
HttpServlet reading XML from HttpRequest   Hi , My requirement is 1.Input to the HttpServlet will be the XML sent by upstream as HttpRequest... one share the code snippet to my requirement. thanks, Divya
javascript error in IE - JSP-Servlet
javascript error in IE  Please Help me, I have an urgent requirement i.e. JavaScript prompt box is not working in IE. It Works firefox,safari,--- etc. ********Actually my requirement is without changing setting
pre Page load display an image loading - JSP-Servlet
pre Page load display an image loading  hi, We have requirement some pages are loading very slow, while the page is processing we need to display a loading image. How to achieve this requirement. Thanks Manu  
java compilation error - Development process
java compilation error  i have a requirement in my prog where i need to create multiple references while looping is going on for example i have... my requirement is while loop is going on i need to assign references like s1,s2
Joomla Custom Templates Package
to our customers' requirement. We use the logo, picks, custom color.... This package is suitable for your company's business requirement
UTF ecoding
?? hosting solutions are part of the contract requirement" My requirement... of the contract requirement" My approach is DBUtils.java public String getAsset
Database - WebSevices
Database   Hello, Any one know the detail Database Structure for creating new job site with features.   Hi friend, Plz give full details and requirement to solve the problem and visit to : http
Tomahawk inputFileUpload tag" - Java Server Faces Questions
, Read for more information according to your requirement at: http
java - Servlet Interview Questions
java  how to deploy in server by using tomcat?  I think u don't know ur requirement. At first Tomcat is a server, how u think server deploy using a server. Confirm ur doubt. Rajanikant
ATM Java Code - Java Beginners
ATM Java Code  how to write ATM code that requirement is 1)user can insert name, account number, current balance,transaction type, 2)if select transaction is money deposit, the value will be input and current balance
Using of Hibernate - Hibernate
Using of Hibernate  I have a requirement that my table names are dynamic. For example suppose we have two different court using this system then we..._* all the column and keys are same. How can we use hibernate  Hi
Java User Transaction. - Java Beginners
requirement. Thanks & Regards. Sunil Singh
How to create Discussion Forum? - JSP-Servlet
How to create Discussion Forum?  Hi, In my project I want to create Disussion Forum . Pls help me out. hitendra  Hi friend, Please give your requirement for create Disussion Forum. Thanks
Advertisements
 

 

 

DMCA.com