Results 1 to 8 of 8
  1. #1
    elgatoboricua is offline Member
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

    Unhappy Letter with Letters

    Hello, I just started working with Java at school using Texpad like a week ago. We started with the usual tutorial code call "Welcome" Instead of Welcome he wants the following words "MIC" but with letters.

    SOMETHING LIKE THIS.


    MMMM MMMM
    M M M M
    M MMM M
    M M
    M M

    HELP PLEASE
    Last edited by elgatoboricua; 09-15-2008 at 05:13 PM.

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    7

    Default

    study for loops...
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,556
    Rep Power
    23

    Default

    SOMETHING LIKE THIS.
    You'll have to put quote tags around your posting for anyone to see what you want. Last icon on the right.

  4. #4
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    6

    Default

    Can you post smth or some code that you have already tried to write for your application?Nobody will do the homework for you,please,post us smth and we will help you,if you are stuck with.

  5. #5
    elgatoboricua is offline Member
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

    Default

    Thank you, here is the line that I need help with. I guess that is something to do with the spacing in order to have the letter on command promt made by the same letters.


    system.out.print.ln(\t\t"MCI")

  6. #6
    serjant's Avatar
    serjant is offline Senior Member
    Join Date
    Jun 2008
    Location
    Ukraine,Zaporozhye
    Posts
    487
    Rep Power
    6

    Default

    Java Code:
    System.out.println("M\tC\tI");
    "\t" is the tab or space
    "\n" is a new line
    "\\" The backslash character

  7. #7
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,556
    Rep Power
    23

    Default

    Not all print/display software honors tabbing.

  8. #8
    elgatoboricua is offline Member
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

Similar Threads

  1. Replies: 0
    Last Post: 06-25-2008, 10:34 AM
  2. Replies: 20
    Last Post: 05-14-2008, 09:42 AM
  3. Drive letter sniff/open explorer window
    By iiz in forum New To Java
    Replies: 1
    Last Post: 04-04-2008, 03:50 AM
  4. need block letters??
    By dc2acgsr99 in forum New To Java
    Replies: 16
    Last Post: 01-29-2008, 08:31 AM
  5. adjacent repeating letters
    By artemis_r2 in forum New To Java
    Replies: 1
    Last Post: 11-17-2007, 04:48 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
  •