This is a dumb question but please help me anyway!

I have been asked to take a class to learn to teach AP Computer Science. I was very excited to do this and was told that I didn't need prior programming knowledge to be successful. I got my first set of assignments and there are no instructions. There are just some simple programs for me to create. I went online and tried to do the best I could. I've got the first one working ok but the second one keeps giving me errors. I'm going to post what I've written below. If you have any help to offer me, please do! I am an absolute beginner so please be kind.
* @(#)MyInitials.java
* MyInitials application
* @author
* @version 1.00 2009/6/23
public class PrintInitials {
/* This program prints my initials.
public static void main(String[] args) {
System.out.println();
System.out.println("BBBBB          H H          CCCCC");
System.out.println("B B      H H          C");
System.out.println("BBBBB          HHHHH          C");
System.out.println("B B     H H          C");
System.out.println("BBBBB          H H          CCCCC");
System.out.println();
}

Here're are the error messages that came up:
Configuration: DJE - JDK version 1.6.0_14 <Default> - <Default>--------------------
java.lang.NoClassDefFoundError: PrintInitials
Caused by: java.lang.ClassNotFoundException: PrintInitials
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: PrintInitials. Program will exit.
Exception in thread "main"
Process completed.
Here's the code (with code tags...I think)
/**=
* @(#)MyInitials.java
* MyInitials application
* @author
* @version 1.00 2009/6/23
public class PrintInitials {
       public static void main(String[] args) {
          System.out.println();
          System.out.println("BBBBB     H   H     CCCCC");
          System.out.println("B    B    H   H     C");
          System.out.println("BBBBB       HHHHH     C");
          System.out.println("B    B    H   H     C");
          System.out.println("BBBBB       H   H     CCCCC");
          System.out.println();
}

Similar Messages

  • This maybe a dumb question but...If I buy Aperture are the updates already installed into the purchased version or do I need to update them?

    This maybe a dumb question but...If I buy Aperture are the updates already installed into the purchased version or do I need to update them after the prograam is installed?

    Should come updated from the Mac App Store. Obviously, it's tough to keep things up to date when they are sitting in a box on a store shelf.

  • Please excuse if this is a dumb question but........

    How do I empty photos from IPhoto trash? It does not seem to be the same trash basket as my general trash bucket on the dock. But its has 2600 pics in there that I deleted from Iphoto one day when I was cleaning up. Now, are these photos taking up hard drive space? How do I permanently get rid of them?
    Thanks in advance

    I hadn't noticed how quick it was - that was cool. But it does help to have the question in the title though you must admit: then you don't have to open the click the link to see what it is.
    It was just a tip not meant to be a moan.

  • TS1424 Hello:  Please don't think this is a dumb question, but I selected a free trial of a magazine and now I'm being charged and don't know how to stop it.

    How do I cancel a free trial of a magazine?  Also, I was charged for something that I thought was free but isn't.

    There are instructions on this page for managing and stopping auto-renewing subscriptions : http://support.apple.com/kb/HT4098
    For the item that you thought was free, have you made any in-app purchases within it and/or did you add or change your credit card details when downloading it (could it be a temporary store holding charge ?). If you think that you've been charged when you shouldn't have been then you can contact iTunes support here : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption.

  • Might sound like a newbie question but please help! (WRT610N)

    I purchased the WRT610N to replace my old WRT54G. I like the router overall, but I am running into glich after glich. I figured out most of them up to this point, but now I'm running out of ideas. Before the firmware upgrade release on 1-21-09 I was able to access my USB storage drive via hostname on my local network. For example any shares on my local network show up under my workgroup in windows Vista/XP (mixed enviornment). Now after the firmware update no matter what I do if I want to access my shares I have to type \\myroutersip\myshare. I have gotten so used to just going to my network places and and selecting WRT610N (which was the hostname) entering my predefined password,and accessing my share. How do I fix this? I thought about enabling/editing the hostfile, but I should not have to do that (at least I didn't before). If anyone knows how to accomplish this please reply. TIA  

    There is no such settings your router, which will disable your access to the Drive by the Host name.If you have any Firewall or Antivirus you can disable it and try accessing your Drive with the Host name.May be you can try one settings on your router, Login to your router setup page, click on the Storage Tab and Below you need to click on the Sub tab "Media Server" and Enable "UPnP Media Server" and click on Save Settings. I think this might solve your problem.

  • Idiot controller question, but please help anyways:)

    icontrol.....plug it in, everything works.
    The axiom 49 is a bit different. At this time I realize there is no template, but I'm having a hard time getting the midi learn to work at all. All that seems to happen is the volume switches from one slider to the next....but controls the same parameter as before.
    Sorry if I can't explain it right, hopefully someone can help

    i don't understand but try selecting midi click in the arrange then using the environment to open and select the plug-in/instrument parameters you want to learn.

  • I know this is a dumb question but...

    Somehow my spouse has got some kind of Help window open. It explains what's on the screen, isolating various texxt or function boxes. It's a black rectangular box that can be dragged and resized. I've minimized it but would like to get rid of it. Anyone know what this is?

    Turn off VoiceOver in the Universal Access or Accessibility pane of System Preferences.
    (94484)

  • This is probably a dumb question but I'll ask anyways...

    I currently have a White iPhone 4S 16GB, at the time I purchased it through Verizon they had told me that I had to get the White version since the Black version was still out of stock.  I figured that I can use the 14 day guarantee to my advantage so that when the Black version came back into stock I could just swap it out, well that wasn't the case at all since it didnt come back into stock in that time frame.  So I'm stuck with a White iPhone at the moment when I really just want the Black iPhone.  I spoke with Verizon and they informed me that there was nothing else that they could do but that it was possible to bring my iPhone into a store and see if they would be willing to exchange it for the Black iPhone.  Before I went into Apple and testing this theory out, does anyone here know if this is a plausible solution or am I basically just stuck with the iPhone that I have?

    Bottom line, you made a gamble and lost.  There is now
    no other way to get a black iPhone other than to buy a
    new one outright (full retail) and sell the white one.

  • Really dumb question but need help anyway

    I was trying to move an audio book from Downloads to a flash drive. When I looked on the white box icon on the desktop it opened showing the whole
    desktop and everything on it. When I looked on the side of the Finder, the flash drive was not there. When I selected all on the flash drive and hit
    delete, everything on the actual desktop was gone. Command Z. When I dragged the icon to the trash, the flash drive did not shut off.
    This takes real talent on my part, drat it. Help!
    Message was edited by: cam812

    Please close topic. Im sorry for wasted post. Forgot about utilities folder.

  • This is a dumb question but...

    Can anyone tell me where I can find a "bluescreen" in FCP to put at the beginning and end of my short? I'm new at this and just found out that I need "bluescreens" before submiting it.

    Perhaps if you defined the situation a little better.
    who is "they?"
    Typically a screening tape has a show the begins at 01:00:00:00 Typically there is a beep at 00:59:58:00 Before that is a slate naming the program. Before that a minute of bars and tone. At the end of the program it is customary to leave 2 minutes of black. This gives any projectionist time to either shut off the projector or switch to another projector, without the annoying snow or whatever.
    Is this what you mean?

  • Dumb Question but need help.

    After adding all the songs into Itunes and updating my Ipod and everything is copied over just find into the Ipod, can I clear everything in my library in I tunes?

    Yes; set the iPod to manual mode to stop the songs being deleted from the iPod when they are deleted in iTunes. If you do this, you should keep a copy of your music library somewhere else, such as on an external hard disk.
    (11752)

  • Dumb question, but need help with bootcamp

    I havnt messed with my bootcamp since 2009 and frankly forgot how to find bootcamp assistant. I type it in my finder and get nothing, also looked in my system preferences. I need to get rid of it because I sold it and want to return it to fac specs. Thank for any help

    Please close topic. Im sorry for wasted post. Forgot about utilities folder.

  • Might be a dumb question, but I'll ask anyway.

    I just changed my ISP and would like to change my email address on my iTunes account. How would I go about doing that?
    Thanks for your help.
    If this post belongs elsewhere, please feel free to move it.

    When you sign in to the itunes store there is box called view account and you can edit your information there, hope that answered what you are looking for.

  • Please help me! I'm sure this is a stupid questions, but I can't figure out how to name a blank documents...

    Please help me! I'm sure this is a stupid questions, but I can't figure out how to name a blank document...thanks

    Lynn
    Had me stumped for a while too ...
    On the screen that presents all your "Blank" documents, simply touch the word "Blank" under the preview (not the actual preview) and you'll get a dialogue to name your document.
    Simon

  • Where do i find the reference number for my preorder? and yes i no this is prob a dumb question but i cant find it anywhere......

    Where do i find the reference number for my preorder? and yes i no this is prob a dumb question but i cant find it anywhere......

        Hi droidboy52999,
    Your email won't have the same confirmation number as it was ordered over the phone. You will need the last name used for the order, the location code (this ends in 01) and an order number (five to six digit number). Please keep us posted if you need further assistance with this.
    Thank you,
    MariaC_VZW
    Please follow us on Twitter @VZWSupport

Maybe you are looking for

  • LOV query with bind variable

    Hi, I have a LOV with a query has a bind variable: select comp_plan_id,name from cn_comp_plans_all where sysdate between start_date and nvl(end_date,sysdate+1) and org_id = : 1 So I create a CO for this LOV , and in processRequest(), I pass the value

  • How do I close a numbers document without closing the entire app?

    Can anyone tell me how I can close a numbers document without closing the entire app? i.e. go back to the folders display page - is this even possible?

  • RMAN for Oracle8.0.5 problem

    Hi Experts, I am using OmniBackII3.5 Media Management s/w. I am taking online backup. Its working fine with above Oracle8.0.5. We are using Oracle 8.0.6 HPUX10.2 Oracle 8.0.16 HPUX 11.0 in these no problem. In Oracle8.0.5 with Sun 2.7, Backup is fail

  • Problem Activating proxy via SPROXY

    I am currently having as issue trying to activate the external requirements proxy via SPROXY. I regenerated the proxy and save the proxy.  When I attempt to activate the proxy I get the following error message:  "The used object, STRU PRXCTRL, is not

  • Offline Bookmarks - Command-line utility

    Hello, I'm working on zsh script that (wget -pk)'s  a webpage for offline viewing. Includes options for easy viewing and listing. I have one problem. I am unsure of what type of file system i should use to store/organize everything. Right now i have