Import Function Problem.

I made a new ICT with a name of "DrawSquare" and imported the code my teacher gave me.
* DrawSquare This class will create a piece of paper and a pencil,
* place the pencil on the paper and then draw a square 100 units on
* each side.
* @author G. Peck
* @created March 23, 2002
import apcslib.*;
public class DrawSquare
* The main program for the DrawSquare class
* @param args The command line arguments (not used)
public static void main(String[] args)
DrawingTool pencil;
SketchPad paper;
paper = new SketchPad(300, 300);
pencil = new DrawingTool(paper);
// draw the square
pencil.forward(100);
pencil.turnLeft(90);
pencil.forward(100);
pencil.turnLeft(90);
pencil.forward(100);
pencil.turnLeft(90);
pencil.forward(100);
* DrawSquare This class will create a piece of paper and a pencil,
* place the pencil on the paper and then draw a square 100 units on
* each side.
* @author G. Peck
* @created March 23, 2002
import apcslib.*;
public class DrawSquare
* The main program for the DrawSquare class
* @param args The command line arguments (not used)
public static void main(String[] args)
DrawingTool pencil;
SketchPad paper;
paper = new SketchPad(300, 300);
pencil = new DrawingTool(paper);
// draw the square
pencil.forward(100);
pencil.turnLeft(90);
pencil.forward(100);
pencil.turnLeft(90);
pencil.forward(100);
pencil.turnLeft(90);
pencil.forward(100);
However when I try to compile this file it gives me this error.
Configuration: j2sdk1.4.2 <Default>
C:\java\basic\square\DrawSquare\DrawSquare.java:52: 'class' or 'interface' expected
import apcslib.*;
^
1 error

Ok I removed the second half of the file and tried compiling. Now I get 5 errors now.
C:\java\basic\square\DrawSquare\DrawSquare.java:1: package apcslib does not exist
import apcslib.*;
^
C:\java\basic\square\DrawSquare\DrawSquare.java:23: cannot resolve symbol
symbol : class DrawingTool
location: class DrawSquare
DrawingTool pencil;
^
C:\java\basic\square\DrawSquare\DrawSquare.java:24: cannot resolve symbol
symbol : class SketchPad
location: class DrawSquare
SketchPad paper;
^
C:\java\basic\square\DrawSquare\DrawSquare.java:26: cannot resolve symbol
symbol : class SketchPad
location: class DrawSquare
paper = new SketchPad(300, 300);
^
C:\java\basic\square\DrawSquare\DrawSquare.java:27: cannot resolve symbol
symbol : class DrawingTool
location: class DrawSquare
pencil = new DrawingTool(paper);
^
5 errors

Similar Messages

  • Import Function problem Lightroom 5

    I'm testing Lightroom 5 and it seems to be great, but the import function seems to be stupid! Even when I make a new folder in lightroom it doesn't import there, it makes a new folder in Lightroom using where the photos used to be! I've lost some now because of that! That's really annoying! Or is there something I don't understand?

    Hi,
    here are the screen captures:

  • LR 1.2 Import Function - Shows Previously Imported Directories

    I have 40,000 pictures I am trying to import into lightroom. I have 1500 left to go. The process I used has been:
    1. File:Import Photos from Disk
    2. I then select the main directory that has every photo I have taken or scanned. The directory structure is MAIN DIRECTORY/YEAR/EVENT.
    LR scans all directories and runs its' comparison.
    3. The "problem with Importing Files" dialog box appears to let me know the following photos will not be imported because they already exist in catalog.
    a. Best I can tell it generally gets most of the files that have already been imported correct.
    5. I select IMPORT and I then get the dialog box import photos.
    a. It shows I have 44 folders left to import.
    b. At least 20 of them (I am guestimating) have already been imported.
    c. When I select a directory, for example. /Thanksgiving 2003, those photos appear correctly in the preview section.
    d. I know these have been imported already and are in my catalog. For giggles, I enter my keywords 2003,Thanksgiving and select IMPORT.
    e. I am using "IMPORT FILES AT THEIR CURRENT LOCATION", BTW.
    6. Sure enough, the dialog box appears:
    a. Import Results | Some import operations were not performed | The files already exist in the catalog (21).
    6. I want to NOT view those 20 directories whenever I run the IMPORT function.
    a. Also, there are a few directies that had 100 photos imported. The IMPORT CATALOG COMPARISON shows that there is 1 photo in a directory that hasn't been imported. Of course, it has, because when I try to import the one remainind item, is clearly shows as IN LIBRARY.
    HERE IS THE IMPORTANT ISSUES, most of the directories are correctly being imported and then removed from the initial scan. I had hundreds of directories that are disappearing from the catalog comparison correctly. It is just these 20 or so that will not go away.
    Needless to say, I would like to run import and have NO FILES or DIRECTORIES to import when I am completed this project.

    Jao, as a general rule I always want to see exported jpegs or tiffs in LR library. My ideal is to not have to use the file browser in Windows to manage files. I want to know if I have jpeg or tiff versions of a raw file. Otherwise I might end up creating identical jpegs, when I receive a request for a particular file. Since my jpegs are created from raw files adjusted in LR's develop module, I have been considering deleting the jpegs after sending them to the client who requested them, that way I don't waste hard drive space on files that I can easily recreate. Even in this case, I would like to see them in LR, so that I can delete them after sending them to the client.
    I create tiffs for two purposes. One is to edit in PS, which automatically gets recognized by LR. But some times I create tiffs that are used in assembling an HDR file. I want to see these in LR, otherwise I need to open the Windows file browser and navigate to the folder to see the tiffs.
    I prefer to work in a single program so in general I would like LR to be able to recognize other file types such as Acrobat or InDesign files. The more the better as far as I am concerned. LR could have a preference that would allow turning off the display of other file types, so users who don't want this will not see them.

  • Import Function not working

    I'm having problems in RoboHelp 7.0
    with using the Import function. When I use it, the application freezes up and I have to use the Task Manager to close the
    application. I have all updates installed.

    Whoa! Profile? Where is RH installed?
    Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
    Follow the RoboColum(n) on Twitter

  • I want to import bookmarks from internet explorer, but the import link is ghosted out and won't give me access. How do I access the import function?

    ''locking as a duplicate - https://support.mozilla.com/en-US/questions/857989''
    I want to import bookmarks from Internet Explorer 8, but the import link under file in Firefox is ghosted out and doesn't allow me access. How can I access the Firefox import function?

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_places-database-file

  • Disable auto import function?

    I want to disable the auto import function in iTunes, but can not find the setting.
    My problem is I download a new song into a temp directory, immediately iTunes opens and imports the song into the iTunes library. I DO NOT want iTunes to import the song at this time. I want to move the song to my MP3 folder first.
    This is a real pain because I have to first delete the song from iTunes then move the song file, then import the song again from the MP3 folder. If anyone knows a way around this please let me know.
    Thanks!
    na   Windows XP  
    na   Windows XP  

    Edit/preferences/import uncheck "show import dialog when..."
    Charlie...
    http://www.chocphoto.com

  • Missing Thumbnails in Organizer Importing Function

    I recently upgraded my my operating system from Windows XP to Vista.  When I used the import function in Elements Organizer (with XP) I could preview the thumbnails and select the desired images on the camera or compact flash card.  Now that I have moved to Vista the thumbnail preview or selection is no longer visible or accessable. 
    I have been through the software options, search engines and this forum but have seen nothing about this problem.  I do sometimes have a perchance to miss the obvious and apologize if this is the case.  Any help is appreciated.
    OS Windows Vista 64 bit
    Photoshop elements 9
    8Gb RAM

      Possibly due to display or dpi settings in the Windows control panel being below 96 dpi or 100% especially if you have a short screen e.g. laptop or notebook.
    A work around is to import everything from the card into a folder on the hard drive. Then use File à Get Photos
    It’s then possible to select and deselect from the Organizer import dialog.
     

  • Import Functionality in Oracle ADF BC with Jdeveloper 11.1.1.2

    Hi all,
    I am using Jdeveloper 11.1.1.2 and I am trying to import functionality in my application.
    I am following the steps of: http://andrejusb.blogspot.com/2008/07/import-functionality-in-oracle-adf-bc.html
    I have 2 data model and I would like to import the functionality of one data model, in the other.
    My problem is when I tried: myModel2-->right click-->project properties-->deployment-->edit
    I don't see nothing to filter myModel2, I see only Library Dependencies, Connections, JAR Options ADF Validation.
    If I tried : myModel2-->right click-->project properties-->deployment-->new-->filters
    I see only the folders: Merged Contents of this file Group's contributor, .data, 00000000
    But I can't see the folders I have (mypackage.test.model.entities).
    Where I can found them? Is there a workaround?
    Any suggestions?
    Thanks
    Andrea

    Ok, but I taught that after importing myModel2 in myModel1, Jdeveloper realise a merge and it visualizes a unique package, even if it is splitted on two or more projects/models.
    So that, it seems to me this procedure is useful for importing jar file, but not for splitting a very big project in a lot of smaller projects, doesn't it?
    Thanks for your opinion
    Andrea

  • Software Functionality Problems

    Hi Experts,
    I'm new in Xcelsius and facing two serious problems:
    1. When opening and working with the Xcelsius the "Connections" function is greyed-out and also the "export to flash (SWF)" is greyed. But, except for these functions I can work properly, create & design my components and use the export function for Powerpoint/PDF/Word.
    2. After importing XML file to the Excel spreadsheet (in the Xcelsius), using the "Import" function in the Developer tab, I refreshed the data (using "refresh data" function) and it works fine. When closing the XLF file, opening it again and tring to "refresh data" again I'm getting a pop-up message says "data source not found", although I checked the XML file in the path and found it is exist.
    My developing station details are:
    Windows Vista
    Microsoft Excel 2007
    Xcelsius  2008 Peresent
    Also notice my work station is a LG laptop (I found threads here about Xcelsius software problems which refer to Laptop systems).
    Any Ideas???
    Shani

    Hi Shani
    Welcome to Xcelsius.
    First make sure you update to the latest Fix Pack 1, many issues have been fixed since the initial release.
    Now the bad news. If you have Xcelsius Present, you do not get connectivity options. You need to buy Xcelsius Engage for that.
    And more bad news, the XML import that you use in Excel 2007 is not recognized by Xcelsius. You would need to use the Xcelsius XML import which is not available to you in Xcelsius Present.
    Please contact whoever you bought from to see if they can help you get the right version.

  • Importing from  HDD camera panasonic only partly successful : one third of images imported. The rest can't be imported ! Problem has arisen since update to iMovie 10.0.2

    Since the  latest update to iMovie 10.0.2   uploading video has become a problem : only one third of the videoscenes has been imported.
    I don't succeed in importing the rest. 
    There's a symbol     ( triangle above a dash )  that I get , but I have no idea what it means .
    I didn't use to have any problem with the preceding version.
    My camera is a Panasonic HDD    six years old.
    All help and suggestions welcome

    I'afraid it was a mistake to remove the event from the library using the Finder.  (It is never a good idea to mess with the contents of libraries with the Finder).  It would have been better to move the event from within iMovie to a different library then move that library to some external storage to free up space.
    You can't replace the event with the Import function - that is for adding clips to an event. 
    Libraries containing events from earlier versions of iMovie should be updated automatically, (after you accept a notification that they need to be updated) but you now have an event that iMovie no longer "knows about" and which contains projects which are also out of date.   At least you have the original media from the event back but I don't know how you can restore the projects unless you have a backup of the library from the earlier version of iMovie that contains the problem event. 
    probably not a solution but I hope this helps.
    Geoff.

  • Import function LR3...

    Hi, Guys.
    I think theres a bug in LR3s import function. I have had som problem with importing from my camera (SD card) that i didn't have with LR2. Some of the files, not all, is marked as " photo missing" although they have been imported and stored in correct folder, they just don't appear in LR. When i right click and find the file it's no problem, but i have to do it file by file and that sucks. Is there anyone who had the same problem or know how to solve it?
    -Jens-

    I did rename the file, but in the same way i did in LR2. The strange thing is that about 7 files of 50 in the last import are ok, but the rest of the files i have to re-import or find individually.

  • How can apple send out an os update that renders an important function of the software/hardware to not work? They knowingly have sent out this new os update for iPad which makes airplay nonfunctining! I need this for my business!

    How can apple send out an os update that renders an important function of the software/hardware to not work? They knowingly have sent out this new os update for iPad which makes airplay nonfunctining! I need this for my business!  I could understand if they didn't know, but it is all over the Internet! When I went in to have it revert back to os6 (which worked fine!) I was actually asked if I had done any research before I installed the upgrade! As if this is the consumer's fault for being dumb enough to fall for the upgrade!

    That is not what I have discovered, nor what others have discovered, nor what I was told when I went the Genius Bar.  I cannot remotely mirror to my MacBook Pro and it only started the day after I installed the upgrade.  We tested it with an iPad that had not been upgraded, no problem.

  • Has anyone had a problem with TapMedia File Manage on iPhone 5. I reported a WIFI functionality problem to the developer and asked for support. Instead they have been very unprofessional by name calling me instead of logically evaluate and troubleshoot th

    Has anyone had a problem with TapMedia File Manage installed on iPhone 5? I reported a WIFI functionality problem to the developer and asked for support. Instead the company has been very unprofessional by name calling me instead of logically evaluate and troubleshoot the problem

    Hi AKE1919,
    Welcome to the Support Communities!
    The following information should help you with this:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/HT1933?viewlocale=en_US
    Cheers,
    Judy

  • Useless Contact Import Function

    A suggestion for the next version of PC Suite ...
    The inclusion of a real import function would be nice.
    Only required fields would be FirstName, LastName, PhoneNo.
    Period.
    This function should be able to take only a minimal amount of field names and transfer them to the phone without all the other junk in a .CSV format or even better yet TSV.
    So far I've wasted more time and drive space on a utility that does not work correctly. I do NOT use Outlook, I don't need it to sync anything (that is what the usb drivers are for). While the sync feature is nice I'd like to disable it. I'd rather copy it myself.
    I have spent the last 31 years of my professional programming career on developing software and this is by far the worst software that I have seen. It violated programming 101 to the max. You have certainly taken making a phone call to a new level indeed.

    Not exactly all.
    XI supports WSDL in document-style. Other styles are internally converted but ideally should be converted to document format beforehand
    regards,
    Prateek

  • Import function is blocked. Can this be changed with a security setting?

    I want to import bookmarks that I saved from old computer. When I go to File in the menu bar, the import is blocked (shaded white). How can I activate the import function?

    Do you have an HTML or JSON backup from that old computer?
    See:
    * http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox
    Make sure that the backup file with the bookmarks has the correct file extension: .html for a HTML backup and .json for a JSON backup.<br />
    You can check that via the right-click context menu of that file and open the Properties.<br />
    If you are not sure about the file type then you can open the file in Firefox via "File > Open File"<br />
    A JSON backup will show as one long text line without line breaks and a HTML backup as a web page with clickable links.
    A JSON backup starts with: <nowiki>{"title":"","id":1,"dateAdded":</nowiki>
    An HTML backup starts with: <nowiki><!DOCTYPE NETSCAPE-Bookmark-file-1></nowiki>
    You may need to add quotes ("bookmarks.xxxx") around the name to rename the file to the correct file extension.

Maybe you are looking for

  • Application Sudo listed in Activity Monitor - Is this a default app that should be running?

    First Question:        Do other MBP users have an application Sudo listed in Activity Monitor from start up of their mac or with typical use? Second Question:   If you have Sudo process listed in your Activity Monitor, do you also use an Huawei USB w

  • Unable to install itunes 10.4.1 on my dell laptop windows 7 64 bit

    Hello I am unable to install itunes 10.4.1 on my dell laptop windows 7 64 bit: i have tried to install itunes on my windows 7 64 bit dell laptop, and everytime it says installation successfully installed, but i can't find the files anywhere in the co

  • Roles and Authorization strategy for SAP BIBO

    Hello All, We are doing an implementation where Source is a Oracle, SAP BI warehouse and BO XI3.1 as reporting solution. Our customer has asked for the authorization strategy that will be implemented in SAP BI. Currently the users belong to different

  • Vendor analysis - MC$6

    Hi Expert, In vendor analysis screen (tcode MC$6), what is the used of this transaction? Is it anything to do with vendor evaluation? There are Deliv dt vr2, Deliv dt vr 3... Can the "Del dt vr" be customized to the user's preferred definition?  Wher

  • Creating presets for new features?

    I can't seem to set Process Version using a preset. I'm sure I've tried other new features too, but can't remember what wouldn't work right now. Am I doing something wrong, or are v6 presets not complete?