Results 1 to 3 of 3
  1. #1
    eva
    eva is offline Member
    Join Date
    Dec 2007
    Posts
    49
    Rep Power
    0

    Default Escape sequence problem

    I used new line and new tab escape sequence in the following line of code:

    Java Code:
    System.out.println("/n/t Test String");
    Its not working - I get weird output:

    Output:
    Java Code:
    /n/t Test String
    Where I went wrong?

    - PEACE

  2. #2
    tim's Avatar
    tim
    tim is offline Senior Member
    Join Date
    Dec 2007
    Posts
    435
    Rep Power
    7

    Default Typo

    Hello eva

    Your slashes are the wrong way. Try this:
    Java Code:
    System.out.println("\n\t Test String");
    Hope this worked. :D
    Eyes dwelling into the past are blind to what lies in the future. Step carefully.

  3. #3
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    Location
    NewEngland, US
    Posts
    835
    Rep Power
    8

    Default

    Simple mistake eva. We all make them. ;)
    Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
    Want to voice your opinion on your IDE/Editor of choice? Vote now!
    Got a little Capt'n in you? (drink responsibly)

Similar Threads

  1. Replies: 0
    Last Post: 02-14-2008, 11:00 AM
  2. Using escape sequence with like clause (%)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-14-2008, 10:57 AM
  3. Using escape sequence with like clause (_)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-14-2008, 10:55 AM
  4. Frog Escape 0.0.1 alpha
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-14-2007, 09:26 PM
  5. Create entity field SEQUENCE oracle
    By Marcus in forum JDBC
    Replies: 1
    Last Post: 06-27-2007, 04:31 PM

Posting Permissions

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