Answer to Question #6400 in Java | JSP | JSF for Subhojeet

Question #6400
print a heart...using asterix(*) ......in java
1
Expert's answer
2012-02-10T08:14:59-0500
package heart;

public class Main {

public static void main(String[] args) {
& String[] heart = {" ******* & *********",
quot; ************ *******& ****",
quot; ************************& ***",
quot; ************************& ***",
quot; ************************& ***",
quot; **********************& ***",
quot; & ***********************",
quot; *****************",
quot; *************",
quot; *******",
quot; ***",
quot; *"};

& for(int i = 0; i < 12; i++)
System.out.println(heart[i]);
}

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS