Adding a .class so I can import...?

My teacher provided me with a class that allows me to get input from the user. In order to use this class we have to copy and paste it into every folder which this class needs to be used...having 20 different folders for 20 different projects makes this a pain in he butt since I have to keep copying that .class file every time I make a new folder.
Is there a more conventional way of doing this? iI hought maybe I could add it to the JDK and import it, but I have no idea how to do this. Whats the best thing to do?
Thanks in advance,
Marcelo
P.S. Feel free to e-mail me [email protected]

Do you know anything about packages?
So you have MyInput.java, in it you should have something like:
package school.project;
class MyInput
ALL of your 20+ classes you need to use this class with should ALSO be in a similar package:
package school.project.class1;
import school.project.InputClass;
public class Class1
InputClass cl = new InputClass();
public void someMethod()
cl.someMethod();
This is pretty basic first month java teaching. If your teacher is not teaching you this, find a new teacher, or go buy a book for $50 or so and learn it. Not trying to be rude, just saying this stuff should be taught early on. I don't know why teachers still dont get into namespaces with packages, scope (public, private, protected, package), etc right at the start. I have never worked with an application written in JAva that doesn't use these things, so it should be a rule to teach it right away.
Good luck.

Similar Messages

  • I am considering the purchase of an iMac or macbook and want to know whether I can import my iTunes library of  400 albums from my Windows PC over my Home Network?  300 of these albums have been imported from CD's, so would not want to have to do that aga

    I am considering the purchase of an iMac or Macbook and want to know whether I can import my iTunes library of  +400 albums from my Windows PC over my Home Network?  300 of these albums have been imported from CD's, so would not want to have to do that again.

    Just copy the entire /Musci/iTunes/ folder from old computer to /Music/ on new computer.
    The libraries will be identical (date added, ratings, artwork, etc.).
    You can do this easily over the network.

  • Vignetting added and color adjusted immediately post import into Lightroom5.

    Vignetting added and color adjusted immediately post import into lightroom5.
    My photos from my most recent trip, when imported into Lightroom, have a heavy vignette very close to all 4 corners of the photo, and seem to have some small adjustments being done to them immediately when I import. The thumbnail looks great, and when i import --> then select it to open it as if I was going to view it full size in Lightroom, it looks great [no vignetting or tone/color adjustment] for about 1-2 seconds while a 'loading' footer is shown, following which the color is slightly altered and the vignetting is added (at this point then the thumbnail changes as well). This is a significant and noticable change to the photo. The pictures also do not have these issues if I view them through any other software. I have Can any one help me figure out what is causing this and remove it?
    I shoot
    with a Sony Alpha6000
    shoot in RAW (.ARW)
    use the standard sony kit lens that comes with the camera bundle, lens SELP1650 (3.5-5.6/16mm-50mm)
    edit on Windows 7 64bit with Lightroom5
    and don't believe I've adjusted any camera settings since last taking pictures 1 week ago with the exact same lens. I looked at photos from my last trip (only one week ago), and none of them are having these or an alterations/changes upon import.
    I took over 300 photos last weekend wthout any sign of these issues post import
    Every single photo I took this weekend seems to have this same issue.
    Any help is appreciated!

    Vignetting added and color adjusted immediately post import into lightroom5.
    My photos from my most recent trip, when imported into Lightroom, have a heavy vignette very close to all 4 corners of the photo, and seem to have some small adjustments being done to them immediately when I import. The thumbnail looks great, and when i import --> then select it to open it as if I was going to view it full size in Lightroom, it looks great [no vignetting or tone/color adjustment] for about 1-2 seconds while a 'loading' footer is shown, following which the color is slightly altered and the vignetting is added (at this point then the thumbnail changes as well). This is a significant and noticable change to the photo. The pictures also do not have these issues if I view them through any other software. I have Can any one help me figure out what is causing this and remove it?
    I shoot
    with a Sony Alpha6000
    shoot in RAW (.ARW)
    use the standard sony kit lens that comes with the camera bundle, lens SELP1650 (3.5-5.6/16mm-50mm)
    edit on Windows 7 64bit with Lightroom5
    and don't believe I've adjusted any camera settings since last taking pictures 1 week ago with the exact same lens. I looked at photos from my last trip (only one week ago), and none of them are having these or an alterations/changes upon import.
    I took over 300 photos last weekend wthout any sign of these issues post import
    Every single photo I took this weekend seems to have this same issue.
    Any help is appreciated!

  • Which function module or class is used to import UNICODE files

    Hello all,
    Does anyone know which function module or global class is used to import files when the UNICODE check for the FILE port is ON?
    Thanks
    Ed Baker

    Hi,
    According to your requirement, you can prepare report through S_PH0_48000513 - Ad Hoc Query , you can get percentage from IT0007 in Ad Hoc query. first decide how many fields you want and then choose in selection criteria and generate the report.
    Thanks,
    Nirali P.

  • How many types i can import as file in FLA and what's the differences ??

    Hello
    How many types i can import as file in FLA and what's the differences ??

    you wouldn't import a .as file. 
    you could open it in the flash ide (or any text editor) and edit it.
    you could  create a fla and assign a document class which flash will compile into your swf.
    you could create a library object in a fla, tick export for actionscript and assign a class that flash will compile that class into your swf.
    you could instantiate a class object (using the "new" constructor) in a flash movieclip timeline or in another class file and flash will compile that class into your swf.
    for Workers to extend a class use something like:
    package
    import Citizens;
          public class Workers  extends Citizens
           protected var baseSalary:Number = 1000;
               public function Workers()
                   super();
              public function receivePayment():Number
                    return this.baseSalary;

  • What class needs to be imported when you use loadVars?

    Does anyone know what class you need to import to get this
    working?
    var my_lv:LoadVars = new LoadVars();
    my_lv.onData = function(src:String) {
    if (src == undefined) {
    trace("Error loading content.");
    return;
    content_ta.text = src;
    my_lv.load("content.txt", my_lv, "GET");

    Thanks, i noticed it.
    But now i wrote a class for it, but why can't i run a
    function after the text is loaded?
    It seems it never run's the function doSomething.
    Am i doing Something wrong?

  • In captivate version 7,  I am localizing an english quiz in Russian . I can import the project capti

    In captivate version 7,  I am localizing an english quiz in Russian . I can import the project captions and closed captions in the Russian translation and this works but there is one word that won't translate which is the review area button.
    Any suggestions greatly welcome!
    Thanks
    Oonagh

    Lilybiri may be talking about this blog post that offers a solution for localising parts of the TOC that cannot be changed to match a language.
    http://blogs.adobe.com/captivate/2009/02/changing_default_captions_in_t.html
    There is no mention in the blog about the dialog you are interested in because it was only added in a later version of Captivate.  But perhaps one of the Adobe reps here would know if it would work.  You would need to know the specific name of the internal string variable that needs to be changed.

  • How do I find class name I should import for java method name

    If I have the class name I know how to look in java docs list for methods.
    If I have a method name but don't know the class,
    how do I find class name I should import to use the java method name?

    I'm not sure the other reply answered your question. If you truly don't know the class name, one approach would be a Google search. Another approach works if you have an IDE. Eclipse, for example, can find the class for you (assuming it's on your classpath) & automatically import it for you. Ctrl-Shift-O normally does the trick.

  • Lightroom will not import my photos.   It did up to a week ago.   I have changed cards and cameras (both worked two weeks ago).   I can import the photos to Picasa and iPhoto

    Lightroom will not import my photos.   It did up to a week ago.   I have changed cards and cameras (both worked two weeks ago).   I can import the photos to Picasa and iPhoto.   I get the following error message:  
    Some import operations were not performed.
    The following files were not imported because they could not be read  [followed by a list of the files I wanted to import]
    Thumbnails show up.  LR just will not import them.
    Any idea what is going wrong?

    If the Import button is not clickable, that means that Lightroom thinks you have no new photos to import (one possible reason is that they are duplicates)
    So, you need to figure out why Lightroom thinks that. The way I would do this is to search your Library module for at least one of the photos, by file name. To do this, you would follow all 4 of these steps in sequence:
    Click on All Photographs in the Catalog Panel on the left of the Library Module
    Turn off all Filters (Ctrl-L or Cmd-L once or twice)
    Expand all stacks: Photo->Stacking->Expand All Stacks
    Search for one or more of the photos using the Filter Bar (press backslash), search by File Name

  • I can import some songs from another computer but not others.  All the songs were purchased with the same apple id. Message says "...check connection to network..." Any ideas as to what could be causing this problem?

    Using home share, I can import some songs from my son's  computer but not others.  All the songs were purchased with the same apple id.  Err msg:"There was a problem downloading ... You do not have enouggh access privileges for this operation. Please check that the connection to the network is active and try again."  The network appears to be fine .  I can import other songs from his library.  The same songs cause me a problem each time I try.  My husband had no trouble importing the same songs I have trouble with. I get the same error message if I try to import the same songs from my husbands computer as well.  "Command I" appears to show the same protections on both the songs I can import & the ones I cannot.  My husband and son are both running OS 10.6, while I am running 10.7.  I think I had this problem even before I upgraded, but I am not certain.

    x0SiN0x:
    Welcome to Apple Discussions..
    My first suggestion is to Repair Disk. Here's how:
    Insert Installer disk and Restart, holding down the "C" key.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel, and report)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    If DU reports errors it cannot repair you will need to use a utility like Tech Tool Pro or Disk Warrior
    Please post back and let me know how that goes.
    Here are a few links that may help you to identify the issues:
    Resolving Disk, Permission, and Cache Corruption
    Tuning Mac OS X Performance
    Mac OS X System Maintenance
    Please don't hesitate to post back should you have further questions or comments, or with update.
    Good luck.
    cornelius

  • : how can I import mp3s from my gmail account into my iTunes application so that I can import audio for recording into GarageBand ?

    : how can I import mp3s from my gmail account into my iTunes application so that I can import audio for recording into GarageBand ?

    Save the file from Gmail onto your computer and add it to iTunes.  How you save from Gmail is a Gmail question (their own support pages), not an iTunes question.

  • Looking for a Notes app that I can import CSV files into?

    As the title says, I'm looking for a good notes application for my iPhone that I can import CSV files into. I have tried both Appigo and Notespark, but I can't easily scroll through them, as I have 2,000+ notes. Is there any app that I can import my notes into and also scroll through quickly? I'd like something that works similarly to how you scroll through songs on the iPhone/iTouch, with the column on the right where you can skip to songs (notes, in this case) that start with a certain letter.
    Thanks!

    Hi Tx Tar Heel,
    I've been using Office2HD: https://itunes.apple.com/us/app/office2-hd/id364361728?mt=8
    Its cheaper than Numbers and it also works for Word and PowerPoint files too. I like the Dropbox integration. I can start on my Office docs (Word, Excel, PowerPoint) in the office and then edit those files with Office2HD when I'm out of the office. Files saves right back to Dropbox so that when I get back to the office the files are already updated. Not bad for a $7.99 app!
    Hope this helps!
    ~Joe

  • After upgrading to MAC OS X 10.10.2 Lightroom 5 has an error that it cannot read the card when trying to import photos.  The card is fine as I can import into iPhoto so any ideas?

    After upgrading to MAC OS X 10.10.2 Lightroom 5 cannot read the card (RAW files , converting to DNG) when importing.  The card is fine as I can import into iPhoto - any ideas?

    It’s usually necessary to trash the prefs after updating OSX to Yosemite. Start by quitting Lightroom 5.
    Launch Finder and click the Go menu whilst holding down the Option (alt) key. Then go to:
    Library >> Preferences
    clear everything relating to LR5 which usually means deleting the following files:
    com.adobe.Lightroom5.plist
    com.adobe.Lightroom5LSSharedFileList.plist
    Then re-launch Lightroom.

  • Is it possible to create a form with Livecycle that a user in Adobe Reader can import data into?

    I made a form, then found out that much of the data that needs to be filled out by our data entry personnel (in Adobe Reader) already exists in an Excel file. Is there a way I can set up this form so that my coworkers can import specific records from the Excel file and save themselves time?
    I noticed that when I open the Reader-Enabled version of the file that the "Import Data" command under "Extensions" is dimmed out. So even if I could successfully create an XML file it looks like we couldn't import, even to a Reader-Enabled PDF form. Why is that?
    https://www.dropbox.com/s/bk2cpyzx9qiw4vp/AFBS_PaidClaim_V2_051412.pdf
    Thanks for help!

    We now support multiple fields on one line. This post provides a brief overview.
    Give it a try and send us your feedback.
    Sorry it took so long.
    Randy

  • HT202020 Using a SDHC card adapter I can import directly on my iPad2 videos (.mov) taken with a Panasonic DMC-ZS3. The same video files (same file format) imported in Aperture 3.3 cannot be synchronized with iPad. Is Aperture causing the problem?

    Using a SDHC card adapter I can import directly on my iPad2 videos (.mov) taken with a Panasonic DMC-ZS3. The same video files (same file format) imported in Aperture 3.3 cannot be synchronized with iPad. Is Aperture causing the problem?

    Oh, baby! This bad boy flies!! Here's what to expect:
    I had 40,000 images in Aperture 3 and it was dog slow at everything. I installed 3.1 update today. It took 5 minutes to update the database and then behaved marginally better than before at ASIC library navigation. I was disappointed.
    Then I QUIT the app. It took a couple of hours to "update files for sharing" with a counter that went to 110,000 images. So it must have updated every thumbnail and variation of preview. Turned it back on , and BAM. Came up fully in seconds. Paused for 10 seconds ten everything was lickrty split. For the first time ever, I can use the Projects view with all 791 projects and scroll quickly. I even put it in photos modevand whipped thru all 49,000 images!
    Haven't done anybprocessing yet, but i'm liking it!!
    Jim

Maybe you are looking for

  • IMac 4,1 2 Ghz

    I have been given my inlaws Imac Intel 4,1 which runs OS X 10.6.8. I would like to reinstall the OS X in order to start from fresh and remove all of my inlaws data, which they have already transferred onto a new iMac. I would be grateful for any advi

  • Balance Sheet Data question

    I have a BCS balance sheet that is only pulling current month data but it should be YTD. What do i need to modify in the query to make it pull in YTD instead of current month? Thanks in advance

  • ABAP Proxy - BASE64 content

    Hi, We have a requirement to send content in base64 encoded binary form. We have done all the encoding in ABAP and the BASE64 content is available in internal table. We need to use ABAP proxy to send the data to XI and further to target client via ht

  • DVCPro HD 720 25p

    Hi, I'm just sitting down to edit a short film and noticed that all the clips have come in at 50fps despite the DOP telling me they were shot at 25fps. They seem to play fine in an FCP project with a sequence set to 25fps, so what's the deal? Is ever

  • Cloning in Photoshop

    Ok, I'm trying to adapt to Photoshop after having used Photostudio for ages. The electronic help manual is really awful and isn't answering my question about the cloning tool at all (I just want to copy some cloud onto an empty space of background).