Search:

Type: Posts; User: Voodoo

Search: Search took 0.14 seconds.

  1. Replies
    18
    Views
    11,087

    Re: Checkerboard (asterisk pattern) problem

    Hi jjb1989
    System.out.print() or System.out.println() is the invocation of the the method print() or println() of the Class PrintStream PrintStream (Java 2 Platform SE v1.4.2)
    the print() method...
  2. Replies
    18
    Views
    11,087

    Re: Checkerboard (asterisk pattern) problem

    oh...i misread your posting, terribly sorry. Here is the tweak:



    while ( line_number <= 8 )
    {
    String tmp = "";
    if ((line_number & 1) == 0) tmp = " ";...
  3. Replies
    18
    Views
    11,087

    Re: Checkerboard (asterisk pattern) problem

    by the way try this:


    ...

    while ( line_number <= 8 )
    {
    String tmp = "";
    while ( asterisk_amount <= 8 )
    {
  4. Replies
    18
    Views
    11,087

    Re: Checkerboard (asterisk pattern) problem

    ...by the way, try this:
    [
  5. Replies
    18
    Views
    11,087

    Re: Checkerboard (asterisk pattern) problem

    sorry UBUNTU not ubunto>:)
  6. Replies
    18
    Views
    11,087

    Re: Checkerboard (asterisk pattern) problem

    Hey, what is your OS? On my PC (Windows Vista and Ubunto) it works! Have you this statement System.out.println("\n");?
  7. Replies
    18
    Views
    11,087

    Re: Checkerboard (asterisk pattern) problem

    insert the "\n" as following :cool:



    public class Exe432
    {
    public static void main(String[] args)
    {
    int line_number = 1;
    int asterisk_amount = 1;
Results 1 to 7 of 7