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



Home Answers Viewqa Java-Interview-Questions Print Alphabets in Horizontal order with Astricks.

Have Programming Question? Ask it here!
 
 
 


kumar
Print Alphabets in Horizontal order with Astricks.
0 Answer(s)      7 months ago
Posted in : Java Interview Questions


How to print "X",?"Y","Z" in console as shown below, user can enter any of these letters, or combination of letters, or all the letters as first parameter, second parameter will be a number which should be odd number minimum of 3 and maximum of unlimited, example of second input parameter is 3, 5, 7, etc. Also it is expected to design the logic to cater other alphabets in future implementation.

For Example : if a user give letters like this X, Y, Z and a number like 3, the output must be combination of Astricks(*).

Output of X is: * * same as remaining. * * *


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Print Alphabets in Horizontal order with Astricks.
Print Alphabets in Horizontal order with Astricks.  How to print "X... to design the logic to cater other alphabets in future implementation. For Example... must be combination of Astricks(*). Output of X is: * * same as remaining
print a-z, A-Z with exact order using loops
print a-z, A-Z with exact order using loops  how to print from a-z, A-Z with exact order using for loop? Thanks for all concern
Advertisements
print from a-z, A-Z with exact order using for loop
print from a-z, A-Z with exact order using for loop  how to print from a-z, A-Z with exact order using for loop? Thanks for all concern
order
order   write a java code to enter order of number of chocolates(bar,powder,giftbox) in arraylist. Also consider exceptional cases like entering integer in name use try,catch ,throw to deal with exception
Horizontal Scrollbar
Horizontal Scrollbar  I am creating a JSF project that has a print("<af:table/>"); the table is too wide to display in the browser. I was wondering if there was anyway to implement a horizontal scrollbar in this table so
Horizontal Scrollbar
Horizontal Scrollbar  How can I implement a horizontal scrollbar
print
print  How to print JFrame All Componant?   Please visit the following link: http://www.roseindia.net/java/example/java/swing/Print.shtml
Print
into the stream and, as opposed to print() method, gets you to the new line after the text
Horizontal scroll bar?
Horizontal scroll bar?  Hi all, I have a HTTP Servlet..., it does not automatically create a horizontal scroll bar when the data written exceeds... with full navigation using as well a vertical as a horizontal scroll bar (when asked
HQL order by.
employee name into ascending order. If you want to print employee name...HQL order by.  HQL Order by query giving problem.   Order... mention, order by automatically sorted the list in ascending order. Here is an example
Ascending order
of them equal to each other, in any order, (for example, 23, 7, 156; but not 23, 7, 23), and then it should print out the three integers in ascending order, saying
vertical scrollbar but without a horizontal scrollbar
vertical scrollbar but without a horizontal scrollbar  How do I make a frame with a vertical scrollbar but without a horizontal scrollbar
Horizontal Rule Attribute in HTML
Horizontal Rule Attribute in HTML        We already know with Horizontal Rule in HTML page. The Horizontal Rule attribute is same as horizontal rule, but only
SQL ORDER BY
SQL ORDER BY       The ORDER BY keyword sort the table result set by a specified column. You want to sort the records in ascending order,  you can use the ASC keyword
frame with a vertical scrollbar but without a horizontal scrollbar.
frame with a vertical scrollbar but without a horizontal scrollbar.  How do I make a frame with a vertical scrollbar but without a horizontal scrollbar
Horizontal Rule in HTML
Horizontal Rule in HTML       A horizontal Rule in HTML is used to separate two lines or two paragraph between any two objects in HTML.To apply horizontal rule, the <hr>
Adding Horizontal lines to Group Nodes
Adding Horizontal lines to Group Nodes       Introduction In this section, you will learn  to create a horizontal tree in java. Description of the Program
print a form of *
print a form of *   * *** ***** ******* ********* ******* ***** *** *   Post the format properly
MySQL Order By
MySQL Order By       Here, you will learn how to use MySQL Order By clause. The Order By clause is used for sorting the data either ascending or descending order according to user
print the newline
print the newline  Why doesn?t the following code print the newline properly? <?php $str = ?Hello, there.\nHow are you?\nThanks for visiting.?; print $str; ?>   Hi friends, Inside the single quotes \n (newline
print numbers
print numbers  1234 123 12 1234   1234 123 12 1234
Print the document
Print the document  I tried to print web page.I am using the below...() { var printWindow = window.open('test', 'Print Window', 'height=600,width...;Print Window</title>'); printWindow.document.write('</head>
Print the document
Print the document  I tried to print web page.I am using the below...() { var printWindow = window.open('test', 'Print Window', 'height=600,width...;Print Window</title>'); printWindow.document.write('</head>
Print a statement
Print a statement  hello what would we output for this statement System.out.println ("5"+"A" + 3);   hello output will be 5A3
date print
date print  how can i print the date in jsp page in the following formate month-date-year. (example. march 8 2012
date print
date print  how can i print the date in jsp page in the following formate month-date-year. (example. march 8 2012
print the sequence
print the sequence  how can I write the code by using for loop to produce this following statement: 10,9,8,7,6,5,4,3,2,1,buzz! please, help me
Order Entry System
Order Entry System  Create a new order entry system using netbeans and microsoft access.can anyone help me
Read a string and reverse it and then print in alphabetical order.
Read a string and reverse it and then print in alphabetical order... String reverse(String str) method and set in alphabetical order by String... in alphabetical order. ReverseAlphabetical.java  
Maven's order of inheritance
Maven's order of inheritance  hello, What is Maven's order of inheritance?   hii, 1.parent pom 2.project pom 3.settings 4.CLI parameters
diamond print
diamond print   print the pattern 1 2 3 4 5 6 7 8 9 10 11 12
print initials
print initials  How to print initials of a name without using arrays?   Hi Friend, You can try the following code: import java.util.*; public class InitialName { public static void main(String[] args
To print initials
To print initials  import java.util.Scanner; class initials { String a ; int e ; char f ; int b ; int c ; char d; Scanner sc = new Scanner(System.in); void main
Print command
Print command  Can I use System.out.println command in Struts form bean or Struts action class. I am using Struts 1.3.8 but when I write this command. It does not work. Please reply me as soon as possible. Thanks.   
SQL Union with order by
SQL Union with order by  I want to combine three queries using union. 1.SELECT * from user_projects where status='O' order by id desc It returns... userprojects where status!='F' and status!='D' and status!='O' and newproject='yes' order
PHP SQL ORDER BY
PHP SQL ORDER BY       This example illustrates how to execute query with ORDER BY clause in the php application. ORDER BY clause is used to sort the result data either
ascending order of a data hierarchy
ascending order of a data hierarchy  The ascending order of a data hierarchy is 1. Bit-byte-record-field-file-database 2. Byte-bit-field-record-file-database 3. Byte-bit-record-file-field-database 4. Bit-byte-field-record-file
SQL ORDER BY
SQL ORDER BY       The ORDER BY keyword sort the table result set by a specified column. You want to sort the records in ascending order,  you can use the ASC keyword
Alphabetically sorting order
sorted order   Hi Friend, Try the following code: import...(st); } System.out.println("ArrayList Elements in Sorted order
string reverse order
string reverse order  Hi I have string s= " kalins naik" then how can i print string s=" naik kalins" Thanks kalins naik   import java.util.*; public class ReverseWords{ public static void main(String[] args
Alphabetical order - Java Beginners
clicked the view button Now i want to display the files in alphabetical order
Reverse Order Java
Reverse Order Java   I am trying to get this into reverse order. Does... in reverse order: "); for (int i = numbers.length-1; i >=0; i...); System.out.println("Numbers in reverse order: "); for (int i = numbers.length-1; i
Pizza Order..?? - Java Beginners
Pizza Order..??  Define a class PizzaOrder class that contains a list... the cost of the entire order. Small pizza costs RM9.90, a medium pizza... wantMore = "n"; PizzaOrder order = new PizzaOrder(); do { order.pepporoni
i want horizontal mlm tree structure code in php with jquery or Ajax
i want horizontal mlm tree structure code in php with jquery or Ajax  i need horizontal mlm tree structure code in php with jquery or Ajax... in advance.. Thank you
how i can add an horizontal scrollbar at my PdfAnnotation ? - JSP-Servlet
how i can add an horizontal scrollbar at my PdfAnnotation ?  How to add the an horizontal scrollbar at my PdfAnnotation ? for example document d=new document(0. document.open
coding for horizontal menubar using using html or javascript - JSP-Servlet
coding for horizontal menubar using using html or javascript  hii friends, i wanted to implement horizontal menubar in my project tht wil open the links to diffrnt pages kindly help
Alphabetical order - Java Beginners
in alphabetical order of ID. How can i implement this... Pls Help..:) Thanks
Mysql ASC Order
Mysql ASC Order       Mysql ASC Order is used to sort the result set by ascending or descending order. The Order by CLAUSE sort the result by specified column. Understand
Mysql Date Order
Mysql Date Order       Mysql Date Order is used to sort the records from a table in ascending order or descending order. Understand with Example The Tutorial illustrate an example
should print in console
should print in console  
Advertisements
 

 

 

DMCA.com