Ask Experts Questions for FREE Help !
Ask
    BellaElvyra's Avatar
    BellaElvyra Posts: 1, Reputation: 1
    New Member
     
    #1

    Aug 7, 2015, 08:29 AM
    Java Code Help
    What is the output of the code below?


    for (int I =1; I<5; I++)
    {
    for (int j=1; j<=i; j++)
    {
    System.out.print("* ");
    }
    System.out.println();
    }
    CravenMorhead's Avatar
    CravenMorhead Posts: 4,532, Reputation: 1065
    Adult Sexuality Expert
     
    #2

    Aug 7, 2015, 12:24 PM
    A bunch of "* ", on many different lines.

    What do you think the output will be?

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Need help for java code... [ 0 Answers ]

Method called printGraph() that takes as a parameter an array of integers. Each integer will be between 0 and 100. The method should print a horizontally oriented bar graph of the values, using ‘=’ characters to produce bars. Each value should be divided By 10 and that many equals characters...

Can somebody help me with Java code? [ 1 Answers ]

A method called dropItems() taking a Robot and an integer. The robot should (try to) drop that number of items. My version doesn't work unfortunately. Here is it: int dropBeepers(String input, int createRobot, int count) { count =0; ...

I want the java code please [ 2 Answers ]

Write a program that ask from the user how many integers you want to read then reads the set of integers from user, and then finds and prints the sum of even valued and odd valued integers . And also count how many even was entered by user and how many odd were entered by user.

Java code [ 2 Answers ]

Please give me a simple java code for addition of two numbers here two numbers are accepted From users please give me explanation about each code

Java code [ 2 Answers ]

Please give me a java program for additon of two numbers here nos are accepted from users here I am not confident about java program so please gieve me java code I only understand a hello program so please help me


View more questions Search