Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

Java tree from star

public static void main(String[] args) {

        for (int i = 0; i < 10; i++) {
            for (int j = 0; j < 10 - i; j++)
                System.out.print(" ");
            for (int k = 0; k < (2 * i + 1); k++)
                System.out.print("*");
            System.out.println();
        }
    }
Comment

PREVIOUS NEXT
Code Example
Java :: dijkstra java 
Java :: putting scanner into an array 
Java :: convert bytebuffer to string 
Java :: n queens problem leetcode 
Java :: enum to int java 
Java :: get type java 
Java :: spigot send player action bar message 1.8 
Java :: how to do the maximum of three numbers in java 
Java :: create stream from array java 
Java :: Cannot invoke toString() on the primitive type int 
Java :: remove fragment from backstack 
Java :: view get text android 
Java :: java get year 
Java :: java get number of threads 
Java :: java format use same value multiple times 
Java :: java random array 
Java :: difference between access specifiers and access modifiers in java 
Java :: for loop java 
Java :: java list distinct by key 
Java :: string reverse in java 
Java :: java join two list 
Java :: set size button java 
Java :: convert arraylist to array in java 
Java :: java remove character from string after 
Java :: Failed to collect dependencies at net.sf.jasperreports:jasperreports:jar:6.2.0 
Java :: how to check the end of a string java 
Java :: Getting Pending intent for 12 version 
Java :: retainall java 
Java :: hide element selenium 
Java :: default argument in java 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =