Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Cool Rename System.out.println in java

    is it possible to rename System.out.println to some other name like
    welcome.show.println() , if, how ?
    Last edited by rikky.1410@gmail.com; 04-15-2012 at 11:43 PM.

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

    Default Re: Rename System.out.println in java

    Quote Originally Posted by rikky.1410@gmail.com View Post
    is it possible to rename System.out.println to some other name like welcome.show.println() , if, how ?
    Is this homework?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Default Re: Rename System.out.println in java

    question in an interview

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

    Default Re: Rename System.out.println in java

    Quote Originally Posted by rikky.1410@gmail.com View Post
    question in an interview
    Start with a class named 'welcome' (bad name!) and a static member named 'show'.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: Rename System.out.println in java

    Quote Originally Posted by JosAH View Post
    a class named 'welcome' (bad name!)
    Aw. c'mon, what would you do if the only key on your keyboard that responded to the Shift key were 's'?

    db <-- lowercase initials
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. System.out.println
    By chandrasekhar.melam in forum New To Java
    Replies: 8
    Last Post: 09-19-2011, 08:53 PM
  2. Replies: 8
    Last Post: 06-21-2011, 03:21 PM
  3. Println VS system.out.println
    By ccie007 in forum New To Java
    Replies: 2
    Last Post: 05-20-2010, 09:52 AM
  4. difference between system.out.println() & out.println()
    By wickedrahul9 in forum Advanced Java
    Replies: 5
    Last Post: 10-19-2008, 12:06 AM
  5. Replies: 2
    Last Post: 11-24-2007, 07:25 AM

Tags for this Thread

Posting Permissions

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