Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





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.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-24-2008, 05:45 AM
dc2acgsr99's Avatar
Member
 
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
dc2acgsr99 is on a distinguished road
Send a message via AIM to dc2acgsr99
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-24-2008, 06:39 AM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 840
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
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)
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 01-24-2008, 06:58 AM
gibsonrocker800's Avatar
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 143
gibsonrocker800 is on a distinguished road
Send a message via AIM to gibsonrocker800
"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?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 01-24-2008, 08:02 AM
dc2acgsr99's Avatar
Member
 
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
dc2acgsr99 is on a distinguished road
Send a message via AIM to dc2acgsr99
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.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 01-24-2008, 08:24 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,511
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
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.
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 01-25-2008, 12:56 AM
gibsonrocker800's Avatar
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 143
gibsonrocker800 is on a distinguished road
Send a message via AIM to gibsonrocker800
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!
__________________
//Haha javac, can't see me now, can ya?
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 01-25-2008, 01:47 AM
dc2acgsr99's Avatar
Member
 
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
dc2acgsr99 is on a distinguished road
Send a message via AIM to dc2acgsr99
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.
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 01-25-2008, 04:55 PM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
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!

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.
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 01-28-2008, 09:22 PM
dc2acgsr99's Avatar
Member
 
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
dc2acgsr99 is on a distinguished road
Send a message via AIM to dc2acgsr99
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?
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 01-28-2008, 09:24 PM
dc2acgsr99's Avatar
Member
 
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
dc2acgsr99 is on a distinguished road
Send a message via AIM to dc2acgsr99
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.
Bookmark Post in Technorati
Reply With Quote
  #11 (permalink)  
Old 01-28-2008, 10:48 PM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
Semicolons
Hello dc2acgsr99

At the end of each statement in Java, you must have a semicolon:
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");
Any more problems?
__________________
If your ship has not come in yet then build a lighthouse.
Bookmark Post in Technorati
Reply With Quote
  #12 (permalink)  
Old 01-28-2008, 10:57 PM
dc2acgsr99's Avatar
Member
 
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
dc2acgsr99 is on a distinguished road
Send a message via AIM to dc2acgsr99
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?
Bookmark Post in Technorati
Reply With Quote
  #13 (permalink)  
Old 01-28-2008, 11:02 PM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #14 (permalink)  
Old 01-28-2008, 11:07 PM
dc2acgsr99's Avatar
Member
 
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
dc2acgsr99 is on a distinguished road
Send a message via AIM to dc2acgsr99
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.....

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
Bookmark Post in Technorati
Reply With Quote
  #15 (permalink)  
Old 01-28-2008, 11:16 PM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
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:
Code:
// 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.
Bookmark Post in Technorati
Reply With Quote
  #16 (permalink)  
Old 01-28-2008, 11:32 PM
dc2acgsr99's Avatar
Member
 
Join Date: Jan 2008
Location: Pittsburgh
Posts: 26
dc2acgsr99 is on a distinguished road
Send a message via AIM to dc2acgsr99
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.
Bookmark Post in Technorati
Reply With Quote
  #17 (permalink)  
Old 01-29-2008, 09:31 AM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
text Strings to produce letters dc2acgsr99 New To Java 7 01-29-2008 09:08 PM
Programming block Java Tip Java Tips 0 12-25-2007 12:20 PM
adjacent repeating letters artemis_r2 New To Java 1 11-17-2007 05:48 AM
validating a string for numbers and letters? lockmac New To Java 1 08-09-2007 10:17 AM
Return to try block Freddie New To Java 2 05-11-2007 09:58 PM


All times are GMT +3. The time now is 11:41 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org