czwartek, 2 kwietnia 2015

how to draw nice line separator in Java (def line python substitute)

public class test
{
public static void line(int leng)
{
for (int i=0;i<leng;i++)
{
System.out.print("-");
}
System.out.println();
}
public static void main(String[] args)
{
                 line(50);
}
}

it can be substitute of:

def line():
    print(50*"-")

Brak komentarzy:

Prześlij komentarz