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



Home Answers Viewqa Java-Interview-Questions Write a question to display the follwing
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Srinivas Kumar
Write a question to display the follwing
3 Answer(s)      3 years and 4 months ago
Posted in : Java Interview Questions


Write a Java program to display a pattern?


Advertisement
View Answers

June 13, 2011 at 2:33 PM


String str = "";
int count = 4; for( int i=9,j =0; i>=0;i--){

     if(j== count){
         str =str+" "+i;
         count --;
         j = 0;
     }else {

         str= str+i;
     }  
     j++;        
 }
 System.out.print(str);


June 23, 2011 at 12:24 PM


class Display { public void manipulate(int N) { int count=N; int split=N/2; while(count>-1) { for(int i=0;i } }



June 23, 2011 at 1:28 PM


public void manipulate(int N) { int count=N; int split=N/2; while(count>-1) { for(int i=0;i



Related Tutorials/Questions & Answers:
Write a question to display the follwing
Write a question to display the follwing  Write a Java program to display a pattern?   String str = ""; int count = 4; for( int i=9,j...++; } System.out.print(str);   class Display { public void
want to display the follwing matrix format - Java Beginners
want to display the follwing matrix format  Hi frends, Actually i was working on the following matrix format........I neeed to use arraylist... on..........it is compulsory to use arraylist or any data structures in swings to store follwing
Advertisements
to write a program to display the employee details..
to write a program to display the employee details..  To dipslay the employee details like empid,empname,salary,wonno bye using java swings.by running this program the new window has to be opened asking us to enter all
Write a query to display a row using index
Write a query to display a row using index  Write a query to display a row using index
Write a program to display grade message according to the marks
Write a program to display grade message according to the marks  pls give d answer how to Write a program to display grade message according to the marks     Write a program to display grade message according
Write an applet to display scrolling image in an applet window using thread.
Write an applet to display scrolling image in an applet window using thread.  Write an applet to display scrolling image in an applet window using thread
Write a JSP program to display the grade of a student by accepting the marks of five subjects.
Write a JSP program to display the grade of a student by accepting the marks of five subjects.  Write a JSP program to display the grade of a student by accepting the marks of five subjects
Write a java program to display the season given the month using switch case
Write a java program to display the season given the month using switch case  Write a java program to display the season given the month using switch case
write a java pogram to add elements to linked list using keyboard and display it
write a java pogram to add elements to linked list using keyboard and display it  write a java pogram to add elements to linked list using keyboard and display
please any one can help me to write a code for this question?
please any one can help me to write a code for this question?  1) Copy one file content to other? 2) Count the number of words in a file
please any one can help me to write a code for this question?
please any one can help me to write a code for this question?  Q 1) In a class first day 25 students are joined. After two days that total students will increased to 60. We can develop a program by using ArrayList concept
Write an Applet which display current date and time on the web page??
Write an Applet which display current date and time on the web page??  Write an Applet which display current date and time on the web page??  Here is an applet code that display date and time. import java.applet.
Write an Applet which display current date and time on the web page??
Write an Applet which display current date and time on the web page??  Write an Applet which display current date and time on the web page?  Here is an applet code that display date and time. import java.applet.
to display single row from database and next to display other question - JSP-Servlet
questions in database we have to display first question on clicking the button it has to display the next question. i tried it first question is displayed...to display single row from database and next to display other question 
display
display  write a program that determines the limit of an integer
display
display  write a program that determines the limit of an integer
display
display  please tell me how to display the content from database.. if we click on any image using servlets/jsp...please
How to Display Next question from database after clicking Next Button using "Arraylist concept"
How to Display Next question from database after clicking Next Button using... = null, question = null; Iterator...(); question
question
question  Sir, could you please help me to write a php program to display the contents of html registration form in a php page but i need to verify the phone number is number or not and also verify the email is valid
question
question   sir plz tell me what should i give in title box. just i want java program for the question typed in this area
question
question   sir plz tell me what should i give in title box. just i want java program for the question typed in this area
Question
Question   When there is an exception in my program how java runtime system handles
question
question  dear sir/madam my question is how to compare two text format in java..we are java beginners..so we need the complete source code for above mentioned question...we have to compare each and every word
question
question  Dear sir i had some typing mistake at previous question so its my humble request to let me know the steps to start the tomcat6 under the tomcat directory
Question?
Question?  My question is how to: Add a menu bar to the program with a File menu. In the File menu, add a submenu (JMenuItem) called About. When the user clicks on the About menu item, display a JOptionPane message dialog
question
question  how to display the uploaded video file size in database using java or javascript
question
question  i need to inser in to table and display success using jsp and bean
question
question  i need a jsp and mysql program to display all employees on leave
question
question  i need a simple code to display all employees on leave using jsp and mysql
question
question  Good Afternoon, code to display the employees on leave,and approve that leave for manager.using JPanel+mysql+Java
question
question  can we write calss A extend StringBuffer?   No you cannot extend
 

 

 

DMCA.com