Results 1 to 17 of 17
  1. #1
    dc2acgsr99's Avatar
    dc2acgsr99 is offline Member
    Join Date
    Jan 2008
    Location
    Pittsburgh
    Posts
    26
    Rep Power
    0

    Post need block letters??

    I am currently in my first year of school and am completely in the dark here due to missing a class, the first one on programming with Java. For what it is worth we are using the JCreator Pro program with Java 6. This is probably the most basic question but I have searched and searched on my own and am stuck. I sent an e-mail to my instructor to see what I missed and he replied with this in the message, "Since we need block letters, you should be able to do a search and find letter templates at cross stiching sites. If you come to class with an idea as to how your letters (initials) will look before you come to class on Monday, it would be a big step in getting your work done." What are these block letters and how do I find these letter templates and cross stitching sites?? Sorry for the super noob question but I am not trying to fall behind here so any help would be much appreciated, thanks.
    Last edited by dc2acgsr99; 01-24-2008 at 06:28 AM.

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

    Default

    Welcome to the Java Forums!

    Wow.. I have no idea what you are referring to... maybe this? Can you give us some details on the actual code/work you'll be doing... besides block letters you don't really mention a problem or that you need a solution to a problem. Maybe if you describe the work, we can infer where and how you'll need to use block style lettering.

    See you around!
    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)

  3. #3
    gibsonrocker800's Avatar
    gibsonrocker800 is offline Senior Member
    Join Date
    Nov 2007
    Location
    New York
    Posts
    143
    Rep Power
    0

    Default

    "Since we need block letters, you should be able to do a search and find letter templates at cross stiching sites. If you come to class with an idea as to how your letters (initials) will look before you come to class on Monday, it would be a big step in getting your work done."

    I think this might be referring to the link CaptainMorgan posted. For some reason, my first assignment in Java was working with using classes to move graphics. And she had us come in with a picture on graph paper so that we could draw it. So i'm guessing that your teacher wants you to break up your initials into little squares.

  4. #4
    dc2acgsr99's Avatar
    dc2acgsr99 is offline Member
    Join Date
    Jan 2008
    Location
    Pittsburgh
    Posts
    26
    Rep Power
    0

    Default

    Thanks for the replies, I am not sure as to what the actual code is that I will be doing yet. He told me to have and idea of my initials in that cross stitching, with that link I now know and I thank you for that.. As I said in my first post I am new to this and this site seems to be a good reference from reading through other posts, thanks again.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Yes it is, you can find a lot from this forum on the way you are learning Java.

    Me too, felt that your instructors' message more relate on CaptainMorgans' link.

  6. #6
    gibsonrocker800's Avatar
    gibsonrocker800 is offline Senior Member
    Join Date
    Nov 2007
    Location
    New York
    Posts
    143
    Rep Power
    0

    Default

    Quote Originally Posted by dc2acgsr99 View Post
    As I said in my first post I am new to this and this site seems to be a good reference from reading through other posts, thanks again.
    I can't even tell you how much I've learned from other users on this site (mainly from CaptainMorgan and tim). Whenever you have any questions do not refrain to ask, we will be happy to help you!

  7. #7
    dc2acgsr99's Avatar
    dc2acgsr99 is offline Member
    Join Date
    Jan 2008
    Location
    Pittsburgh
    Posts
    26
    Rep Power
    0

    Default

    Quote Originally Posted by gibsonrocker800 View Post
    Whenever you have any questions do not refrain to ask, we will be happy to help you!
    Thats good to know cause I find this stuff interesting and am really trying to learn... I will be in touch with questions as they come up and thrown in when my knowledge increases. :cool:

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

    Default Console and GUI

    Hello gibsonrocker800
    Quote Originally Posted by gibsonrocker800
    I can't even tell you how much I've learned from other users on this site (mainly from CaptainMorgan and tim).
    I'm glad I could help you gibsonrocker800! :D

    Hello dc2acgsr99
    Do you think your instructor will ask you to create graphical programs with graphical user interfaces or will it all be done in the console? I think your educator chose this problem because the algorithms required to generate block letters for stitching from a string, say your initials, could be challenging. Let us know when you need to start coding so that we can help you. ;)
    Eyes dwelling into the past are blind to what lies in the future. Step carefully.

  9. #9
    dc2acgsr99's Avatar
    dc2acgsr99 is offline Member
    Join Date
    Jan 2008
    Location
    Pittsburgh
    Posts
    26
    Rep Power
    0

    Default

    Ok thus far the objective is to get my initials to show up in the build output window on JCreator Pro, problem is I keep getting an error on line 8, here is my code as of now.....

    /** Kevin H
    * CIT111 time of class
    * MiniLab2
    * kthMiniLab2 to show initals
    * The initals KTH
    */

    System.out.println("KKKKK KKKKK")
    System.out.println("KKKKK KKKKK")
    System.out.println("KKKKK KKKKK")
    System.out.println("KKKKK KKKKK")


    I know I am missing something, what is it?

  10. #10
    dc2acgsr99's Avatar
    dc2acgsr99 is offline Member
    Join Date
    Jan 2008
    Location
    Pittsburgh
    Posts
    26
    Rep Power
    0

    Default

    just a quick note, the space in between the K's is allot bigger.. the letters are 2 inch's wide but I will not go any farther until I can get past this line 8 issue.

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

    Default Semicolons

    Hello dc2acgsr99

    At the end of each statement in Java, you must have a semicolon:
    Java Code:
    /** Kevin H
    * CIT111 time of class
    * MiniLab2
    * kthMiniLab2 to show initals
    * The initals KTH
    */
    
    System.out.println("KKKKK KKKKK")[COLOR="Blue"][B];[/B][/COLOR]
    System.out.println("KKKKK KKKKK")[COLOR="Blue"][B];[/B][/COLOR]
    System.out.println("KKKKK KKKKK")[COLOR="Blue"][B];[/B][/COLOR]
    System.out.println("KKKKK KKKKK")[COLOR="Blue"][B];[/B][/COLOR]
    Any more problems? ;)
    Eyes dwelling into the past are blind to what lies in the future. Step carefully.

  12. #12
    dc2acgsr99's Avatar
    dc2acgsr99 is offline Member
    Join Date
    Jan 2008
    Location
    Pittsburgh
    Posts
    26
    Rep Power
    0

    Default

    In "Task View" window the message "class, interface, or enum expected" is popping up for lines 9 through 12, everything is exactly as pasted above with addition of the semicolons... And out of curiosity how do you get the special "code" box when replying?

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

    Default Big picture

    I need the the entire class to check what you are doing. Put your code in a [code] tag like this:
    [C O D E]my code here [\C O D E]
    , but with out the spaces.
    Eyes dwelling into the past are blind to what lies in the future. Step carefully.

  14. #14
    dc2acgsr99's Avatar
    dc2acgsr99 is offline Member
    Join Date
    Jan 2008
    Location
    Pittsburgh
    Posts
    26
    Rep Power
    0

    Default

    Java Code:
    /** Kevin H
    * CIT111 time of class
    * MiniLab2
    * kthMiniLab2 to show initals
    * The initals KTH
    */
    
        
        System.out.println(KKKKK                         KKKKK);
        System.out.println(KKKKK                       KKKKK);
        System.out.println(KKKKK                     KKKKK);
        System.out.println(KKKKK                   KKKKK);
    This is what I have as of now, I know there should be a "public class" and "public static void" somewhere... Better yet below is the sample template of witch the instructer gave us in class.....

    Java Code:
    /*
     * Filename: JavaProgramTemplate.java
     * Created:  MM/DD/YYYY by A. Programmer
     * Modified: MM/DD/YYYY by Someone Else
     * Purpose:
     */
    
    public class JavaProgramTemplate
    {
    
       // main method
       public static void main( String[] args )
       {
    
          // code goes here
    
       } // end main
    
    } // end class
    He said to go off that but I was worse off trying that route so I started with a blank slate and filled in what I have above.
    Last edited by dc2acgsr99; 01-28-2008 at 11:15 PM. Reason: code box

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

    Default Class and code tags

    Sorry about the code tags. The slash must be the other way around. :o
    [C O D E]code here [/C O D E]

    Define your class like this:
    Java Code:
    [COLOR="RoyalBlue"]// First comes the class header:
    [/COLOR]public class Main{
    [COLOR="RoyalBlue"]	// Now memorize the next line
    [/COLOR]	public static void main(String[] arg){
    [COLOR="RoyalBlue"]		// Add your program code here
    [/COLOR]		/** Kevin H
    		* CIT111 time of class
    		* MiniLab2
    		* kthMiniLab2 to show initals
    		* The initals KTH
    		*/
    
    		System.out.println("KKKKK KKKKK");
    		System.out.println("KKKKK KKKKK");
    		System.out.println("KKKKK KKKKK");
    		System.out.println("KKKKK KKKKK");
    	}
    [COLOR="RoyalBlue"]	// Now your program is done
    [/COLOR]}
    The file name of the ".java" file containing this must be called: "Main.java". :D
    Eyes dwelling into the past are blind to what lies in the future. Step carefully.

  16. #16
    dc2acgsr99's Avatar
    dc2acgsr99 is offline Member
    Join Date
    Jan 2008
    Location
    Pittsburgh
    Posts
    26
    Rep Power
    0

    Default

    Well slap my face and call me rosy, it works without errors!! :D So what I am gathering is that I was told the right commands to enter, but the incorrect order in witch to put them in? Because if you look at the template that was given to me the same commands are there but in a different place and that caused errors. Thanks a lot Tim, you have successfully prevented my head from going through the moniter. :p

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

    Default

    I'm glad I could help. ;) Only ask, if you get stuck again.
    Eyes dwelling into the past are blind to what lies in the future. Step carefully.

Similar Threads

  1. text Strings to produce letters
    By dc2acgsr99 in forum New To Java
    Replies: 7
    Last Post: 01-29-2008, 09:08 PM
  2. Programming block
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-25-2007, 12:20 PM
  3. adjacent repeating letters
    By artemis_r2 in forum New To Java
    Replies: 1
    Last Post: 11-17-2007, 05:48 AM
  4. validating a string for numbers and letters?
    By lockmac in forum New To Java
    Replies: 1
    Last Post: 08-09-2007, 10:17 AM
  5. Return to try block
    By Freddie in forum New To Java
    Replies: 2
    Last Post: 05-11-2007, 09:58 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
  •