|
|
Welcome to the Java Forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
- have access to post topics
- communicate privately with other members (PM)
- not see advertisements between posts
- have the possibility to earn one of our surprises if you are an active member
- access many other special features that will be introduced later.
Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact us.
|
|

01-24-2008, 05:45 AM
|
 |
Member
|
|
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
|
|
|
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
|
 |
Moderator
|
|
Join Date: Dec 2007
Location: NewEngland, US
Posts: 840
|
|
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!
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. !
Got a little Capt'n in you? (drink responsibly)
|
|

01-24-2008, 06:58 AM
|
 |
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 143
|
|
|
"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.
__________________
//Haha javac, can't see me now, can ya?
|
|

01-24-2008, 08:02 AM
|
 |
Member
|
|
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
|
|
|
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
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,511
|
|
|
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.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

01-25-2008, 12:56 AM
|
 |
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 143
|
|
Originally Posted by dc2acgsr99
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!
__________________
//Haha javac, can't see me now, can ya?
|
|

01-25-2008, 01:47 AM
|
 |
Member
|
|
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
|
|
Originally Posted by gibsonrocker800
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. 
|
|

01-25-2008, 04:55 PM
|
 |
Senior Member
|
|
Join Date: Dec 2007
Location: South Africa
Posts: 334
|
|
|
Console and GUI
Hello gibsonrocker800
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!
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. 
__________________
If your ship has not come in yet then build a lighthouse.
|
|

01-28-2008, 09:22 PM
|
 |
Member
|
|
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
|
|
|
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
|
 |
Member
|
|
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
|
|
|
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
|
 |
Senior Member
|
|
Join Date: Dec 2007
Location: South Africa
Posts: 334
|
|
|
Semicolons
Hello dc2acgsr99
At the end of each statement in Java, you must have a semicolon:
/** 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");
Any more problems? 
__________________
If your ship has not come in yet then build a lighthouse.
|
|

01-28-2008, 10:57 PM
|
 |
Member
|
|
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
|
|
|
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
|
 |
Senior Member
|
|
Join Date: Dec 2007
Location: South Africa
Posts: 334
|
|
|
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.
__________________
If your ship has not come in yet then build a lighthouse.
|
|

01-28-2008, 11:07 PM
|
 |
Member
|
|
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
|
|
/** 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.....
/*
* 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
|
|

01-28-2008, 11:16 PM
|
 |
Senior Member
|
|
Join Date: Dec 2007
Location: South Africa
Posts: 334
|
|
|
Class and code tags
Sorry about the code tags. The slash must be the other way around.
[C O D E]code here [/C O D E]
Define your class like this:
// First comes the class header:
public class Main{
// Now memorize the next line
public static void main(String[] arg){
// Add your program code here
/** 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");
}
// Now your program is done
}
The file name of the ".java" file containing this must be called: "Main.java". 
__________________
If your ship has not come in yet then build a lighthouse.
|
|

01-28-2008, 11:32 PM
|
 |
Member
|
|
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
|
|
Well slap my face and call me rosy, it works without errors!!  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. 
|
|

01-29-2008, 09:31 AM
|
 |
Senior Member
|
|
Join Date: Dec 2007
Location: South Africa
Posts: 334
|
|
I'm glad I could help.  Only ask, if you get stuck again.
__________________
If your ship has not come in yet then build a lighthouse.
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|