Results 1 to 17 of 17
Thread: need block letters??
- 01-24-2008, 05:45 AM #1
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.
- 01-24-2008, 06:39 AM #2
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)
- 01-24-2008, 06:58 AM #3
"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.
- 01-24-2008, 08:02 AM #4
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.
- 01-24-2008, 08:24 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 26
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.
- 01-25-2008, 12:56 AM #6
- 01-25-2008, 01:47 AM #7
- 01-25-2008, 04:55 PM #8
Console and GUI
Hello gibsonrocker800
Originally Posted by gibsonrocker800
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.
- 01-28-2008, 09:22 PM #9
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?
- 01-28-2008, 09:24 PM #10
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.
- 01-28-2008, 10:48 PM #11
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]
Eyes dwelling into the past are blind to what lies in the future. Step carefully.
- 01-28-2008, 10:57 PM #12
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?
- 01-28-2008, 11:02 PM #13
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.
- 01-28-2008, 11:07 PM #14Java 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);
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
Last edited by dc2acgsr99; 01-28-2008 at 11:15 PM. Reason: code box
- 01-28-2008, 11:16 PM #15
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]}
Eyes dwelling into the past are blind to what lies in the future. Step carefully.
- 01-28-2008, 11:32 PM #16
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
- 01-29-2008, 09:31 AM #17
Similar Threads
-
text Strings to produce letters
By dc2acgsr99 in forum New To JavaReplies: 7Last Post: 01-29-2008, 09:08 PM -
Programming block
By Java Tip in forum Java TipReplies: 0Last Post: 12-25-2007, 12:20 PM -
adjacent repeating letters
By artemis_r2 in forum New To JavaReplies: 1Last Post: 11-17-2007, 05:48 AM -
validating a string for numbers and letters?
By lockmac in forum New To JavaReplies: 1Last Post: 08-09-2007, 10:17 AM -
Return to try block
By Freddie in forum New To JavaReplies: 2Last Post: 05-11-2007, 09:58 PM
Bookmarks