Results 1 to 5 of 5

Thread: error

  1. #1
    simar is offline Member
    Join Date
    Aug 2014
    Posts
    25
    Rep Power
    0

    Default error

    qwhere is also the same error as i ask u the last one that reached end of file while parsing thxxx Java
    Java Code:
     classdisp {publicstaticvoidmain(String args[])   {     System.out.println("screen display");for(inti =1; i<=9; i  )     {for(intj =1; j <= i; j  )       {        System.out.print(" ");        System.out.print(i);       }       System.out.print("\n");     }     System.out.println("we done it"); }
    Edit Post Reply
    Last edited by simar; 08-09-2014 at 08:26 PM.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,679
    Blog Entries
    7
    Rep Power
    21

    Default Re: error

    Please, format your code in a decent way; all that text on one single line is not supposed the way to go.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    844
    Rep Power
    6

    Default Re: error

    no where space is there..how can u expect itto compile?
    Ramya:cool:

  4. #4
    AlexGraal is offline Señor Member
    Join Date
    Jan 2014
    Posts
    184
    Rep Power
    0

    Default Re: error

    What are you doing? I don't understand how you could have publicstaticvoidmain all in one word if you've ever been taught anything about java...those are 4 different words: public static void main

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,679
    Blog Entries
    7
    Rep Power
    21

    Default Re: error

    Quote Originally Posted by AlexGraal View Post
    What are you doing? I don't understand how you could have publicstaticvoidmain all in one word if you've ever been taught anything about java...those are 4 different words: public static void main
    The OP is copying the text from a MS Windows phone.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 3
    Last Post: 05-08-2012, 06:26 PM
  2. Replies: 1
    Last Post: 12-05-2009, 08:28 AM
  3. Replies: 1
    Last Post: 10-26-2009, 05:38 PM
  4. Replies: 3
    Last Post: 01-23-2009, 09:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •