Bounded int beed help making a test driver  program

Bounded int here's my code i want to make a test drive program
getLowerBound that returns the lower bound for the object
getUpperBound that returns the upper bound for the object
getValue that returns the current value for the object
setValue that modifies the value for the object - if the value passed to the method is within the bounds then the value can be changed, however if the value is outside the legal range then the value should not be changed
public class BoundedInt{
private static final int intLowerBound = 3;
private static final int intUpperBound = 10;
private int value;
public BoundedInt() {
this.value = 3;
public void setValue (int tempValue) {
if(tempValue < intUpperBound && tempValue > intLowerBound) {
this.value = tempValue;
public int getValue () {
     return value;
public int getLowerBound () {
     return intLowerBound;
public int getUpperBound () {
     return intUpperBound;
this is my test drive program (i dont know if i did it right) when i compile it it gives me this error am i doing some thing wrong or i may b missing some line of code ??
import java.util.*;
public class testdriver {
public static void main(String[] args) {
Scanner scan = new Scanner (System.in);
BoundedInt b = new BoundedInt(2);
System.out.println(b);
out put : testdriver.java:30: cannot find symbol
symbol : constructor BoundedInt(int)
location: class BoundedInt
BoundedInt b = new BoundedInt(2);

1) When you post code, use the CODE button or [code] and [/code] tags to preserve formatting and make your code readable. Copy/paste from your original source in your editor, NOT from your post here, which has already lost all formatting. Most of us won't even bother reading your post otherwise.
2) What is your question. Don't say, "How do I make a test driver?"

Similar Messages

  • Help deleting Office Test Drive

    Good afternoon.
    I have never used Office Test Drive on my mini. My daughter, who's in college, purchased Office:Mac and I want to install it on her iBook, as well as the mini, as she often does work on that also.
    I can't seem to delete the version that is on the mini, which needs to be done before you can install the version she bought.
    When I click on the Remove Office icon in the Office folder it goes through and searches my drive. A .txt file is put on my desktop which says it found Office 2004 test drive for Mac. However, when it goes to the results screen in the removal tool, where I suppose to select what I want to remove, nothing is showing up. If I click on continue, it tells me that I've chosen not to removed any office components. Well, duh!! There's nothing to select!!!
    How can I get rid of this to install the full version my daughter purchased?
    Thanks for the help.

    Hi wyzard,
    On your hard disk, open Microsoft Office 2004 folder that contains the Test Drive. Any documents you saved in the Microsoft Office 2004 Test Drive shoud be moved somewhere in your documents folder. 
    In the Microsoft Office 2004 folder, double-click "Remove Office". In the Results window, choose Microsoft Office 2004 (including Test Drive) and then click "continue" and follow the prompts. 
    http://www.microsoft.com/mac/default.aspx?pid=office2004td
    Well, that's what M$ says...

  • Help: Application Server Test Drive

    I have a problem with the installation:
    I have downloaded a file iasEE60SP3-eval-nt.zip.
    I have unzipped this file into c:\temp\iPlanet and have tried to install the
    server with setup.exe.
    I was not asked for the product key but the installation has started. Im a
    few minutes I have got a message 'Could not read ProductKey entry from the
    cache file'.
    Could you help me?
    Thanks in Advance.
    Elvira

    Hi,
    Try with basesetup.exe. Hope it will help. It gives more option and asks user
    for more input. If it will give the same problem let me know it. Just tell me
    the steps you are giving inputs, and when exactly it is saying about product
    key. You may try for custom installation for maximum user input. Typical would
    be better choice if you dont know what to select. Let me know if it solves your
    problem.
    Pissarevskaia wrote:
    I have a problem with the installation:
    I have downloaded a file iasEE60SP3-eval-nt.zip.
    I have unzipped this file into c:\temp\iPlanet and have tried to install the
    server with setup.exe.
    I was not asked for the product key but the installation has started. Im a
    few minutes I have got a message 'Could not read ProductKey entry from the
    cache file'.
    Could you help me?
    Thanks in Advance.
    Elvirathanks.
    parsu

  • How to use compaq test drive program

    I have registered for compaq testdrive program and I got a user id and password. But I couldn't find any step-by-step instructions or any other help for the first time users. Cany any one help me using 9iAS on Tru64Unix?

    Hi Naveen ,
    Enhancement Spot are available.
    Examples:
    -End of Executable Program, Include, Function group, Dialog module
    -Begin/End of Form routine / Function module / Method
    -End of a structure
    -End of Private/Protected/Public Section of a local class
    If you want to create Implementation , You have to right click on yellow color line and gve Zxxx and save it in any
    transport request under any dev class. Then you can write your own code and save it and activate it .
    Later If you want to Transport it you need to transport this request.
    Reqward if usefuil
    Thanks
    Jagadeesh.G

  • Test Drive Got Me!

    Attempting to install iMovie 4 from the original install disk, I was confident there was nothing I could not recover from, software-wise. I thought I would give it a shot and see what the process was like and if it gave me the proper choices. Worst case I thought was going the Pacifist route.
    Totally forgot about MS Office test drive being on it and was surprised that it was the only app restored to original version. When the message 'Test Drive expired..' appeared of course I knew this may not be good.
    So--any hope of salvaging office or will I need to use my last key? (maybe the original key is tied forever to my book?)
    Joe

    Hey JDee, thanks for the shoulder, and the legwork.
    Your first two links were for pc's, but the third was useful and comforting. I went ahead and re-installed Office, after making sure test drive was gone, did the security update for Office, and all is well-at least till the other shoe drops.(;>)
    Whole thing started when my wife brought home from the museum a four-minute VHS tape to transfer to DVD so it could play to the masses. I thought about bringing it into iMovie, copying and pasting the clip to fill up the disk. iMovie never saw my sony codec a/d converter the way it did for our old family VHS tapes. Then I realized it didn't see that anymore either! As it turns out, iMovie 4 could do it but not 5, not sure about 6. One of the members of iMovie forum runs 4 along side of 5 without any problems, even has both in the dock.
    Anyway, thanks again,
    Joe

  • FDS Test Drive - help with sample apps

    I'm trying to use the FDS 30 Minute TestDrive sample apps
    inside
    Flex Builder. I downloaded the test drive and all the samples
    work
    just dandy fine, and I can view the source etc. So I wanted
    to load
    some of the sample apps into Flex Builder so that I could
    modify and
    play with them with the debugger so as to learn more.
    I've tried the following:
    create New Project - use Flex Data Services/compile app
    locally
    Root Folder: C:\fds-tomcat\webapps\ROOT
    Root URL:
    http://localhost:8600/ROOT.
    When I click Finish, I get the
    following 3 errors in the Output panel:
    unable to load SWC fds.swc: multiple points
    unable to load SWC fds.swc: multiple points
    The definition of base class Locale was not found
    Could not resolve<mx:Application> to a component
    implementaion
    I am on Flex 2.0.143459.
    I've verified that fds.swc is indeed in the
    C:\fds-tomcat\webapps\ROOT\WEB-INF\flex\libs folder.
    I don't know what the other messages mean or what to do.
    I then stubbornly unzipped one of the sample apps into the
    FlexBuilder project folder (which I named FDS TestDrive
    Samples) and
    tried to run it anyway to see if I could get more info. I
    then get
    a browser window with the following additional errors:
    type Status report
    message /ROOT/FDS%20TestDrive%20Samples/Chat.html
    description The requested resource (/ROOT/FDS%20TestDrive%
    20Samples/Chat.html) is not available.
    So I guess one problem is that it is not making an html
    document.
    But I don't know how to correct that.
    I have no idea what to do. Any help would be GREATLY
    appreciated.

    Someone helped me offlist with this after I got frustrated
    that this forum is essentially dead. But in case anyone else needs
    this info, I thought I'd post. First you need to be on Flex version
    2.0.155577. So I had to redownload all of Flex, uninstall my older
    version, install the new version. Then I did the following
    to create the Flex Builder project for the dashboard sample
    app:
    File - > New -> Flex Project
    Select Flex Data Services
    Select Compile application locally
    Click Next
    Deselect "Use default local Flex Data Services Location"
    Click Browse... and open c:\fds-tomcat\webapps\ROOT
    Root URL:
    http://localhost:8600/
    Context root: /
    Click Next
    Project name: <Whatever you want to name it>;
    Deselect "Use default location"
    Folder: c:\fds-tomcat\webapps\ROOT\dashboard
    Click Next
    Main application file: dashboard.mxml
    Click Finish
    The Context root was really key. Also, to get my old projects
    back into Flex, I used file:import and then had to do a little
    additional fiddling with some of the projects' properties.
    Too bad this Forum is so dead. I've tried to get feedback to
    Adobe about that concern, but so far it hasn't helped. sigh

  • Microsoft office test drive expired new PowerBook, help

    hi. I don't know where else to ask this question. I have had my PowerBook for about 6 hours and I am already frustrated ... I tired to use the Microsoft Office Test Drive that is on the machine only to have it tell me that my 30 day trial has expired. How can it be expired when the PowerBook has only been used for less than 6 hours and Office for the install only? Any suggestions on how to get this to work? Or who to complain to? To Apple? It is almost impossible to complain to Microsoft or to get an answer from them.
    I have purchased a copy of Microsoft Office but it hasn't shown up yet.
    Thanks for the help.
    Paloma

    Hi, PalomaMouse, et al. - There is a new KBase article containing the solution to this issue, here:
    http://docs.info.apple.com/article.html?artnum=302930
    Tuttle
    1460/8168

  • Need help REMOVING Office 2004 Test Drive

    Can someone please help? I'm about to install Office 2004..... the install instructions say to FIRST remove "Office 2004 Test Drive" if it's on your computer. (Test Drive appears to be a sample of Office).
    The Office Test Drive folder is on my computer.....however, I have never launched anything in it.
    Per instructions, I did try to use the "Remove" program (inside the Test Drive folder).
    All went well, except when "Remove" did its search, nothing showed up. Hence, when clicking "continue," I got a message that I had not removed anything.... new choices being "go back" or "quit."
    Meanwhile, the Remove program DID generate a text file on my desktop "Remove Office log.txt" - which shows:
    Found these items:
    OFC2004TDFOLDERS: /Applications/Office 2004 for Mac Test Drive
    Unfortunatley, this information does not show up in the "Remove" program, so I cannot instruct "Remove" to remove it. (which seems a bit odd, I know, but there you have it.)
    QUESTION ....
    Am I ignoring the obvious?
    Since I have never launched anything in the "Office 2004 Test Drive" folder, might this mean that none of the apps are actually installed on this computer?
    If so..... does this mean I can simply drag the entire "Test Drive" folder into the trash, empty trash, and all will be gone?
    Then, safely install the actual Office 2004 CD?
    iBook G4 1.42GHz PPC, 14"   Mac OS X (10.4.6)   also iBook G3 600MHz/ MacOS 10.1.5

    It seems to me that when I did that I inserted the
    new Office CD and using the uninstaller on the CD
    removed the Test Drive.
    Thanks for your help, Al.
    When I insert the Office CD, I don't see an uninstaller....at least not immediately visible. All I see are 2 options:
    Office Setup Assistant (recommended)
    or
    the Office folder which you can just drag to the hard drive to install all components.
    Do you think the 'uninstaller' is in that first "Setup Assistant" option?
    And if so.....what concerns me is that if it doesn't work (i.e., behaves like the "Remove" I've already tried to use)....will I still have the option of quitting, and going back and just dragging that folder to trash before continuing in the Setup Assistant?
    Logic tells me that you're right....that by never having launched anything, none of the components of Office Test Drive are actually installed....no users or preferences or anything created. So probably I can just drag that folder to the trash. Problem is, I have very little faith/confidence/ that MY logic is anywhere near the same "logic" of Microsoft.
    (am quite sure I fit the Apple profile....cause I definitely "think different.")
    I'm wondering if the better part of wisdom might be to go ahead and trash that Test Drive folder.....then proceed with the Office Setup Assistant....and if an uninstall shows up in there, using it "just in case" anything was left behind? Sound reasonable to you?
    iBook G4 1.42GHz PPC, 14"   Mac OS X (10.4.6)   also iBook G3 600MHz/ MacOS 10.1.5

  • Trashed test drive folder b4 uninstalling, help

    Ok, so I trashed the whole test drive office folder before i uninstalled the software. I still have Microsoft Framework, Microsoft Database Daemon, Microsoft Component Plugin,ShMem.bundle in the trash and they won't trash. How can in uninstall, or am i screwed? I know, bad, bad, bad, but i learned my lesson! Thanks for the help in advance.

    Probably not bad, bad, bad. They are probably just in use. Log out and/or restart and then you can probably empty the trash.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.9)  

  • Running "Flex test drive" - Got error while attempting to connect to data service

    Hi,
    I'm a Flex / Flash builder beginner. I downloaded the 60 days evaluation, and started to run the "Flex test drive" :
    http://www.adobe.com/devnet/flex/testdrive.html
    My configuration :
    XP SP3 PRO french edition
    Tomcat 6.0
    My local Eclipse :eclipse-jee-helios-SR2-win32 (but also got the issue on the Flash Builder Eclipse, which version is 3.4.0 (Generation ID M20090211-1700)
    Flash Builder 4 with Eclipse plug-in
    All on same PC
    The Test Drive proposes examples in three technologies : Cold Fusion, PHP and Java. I'm doing the Java examples.
    Installation of Flash Builder, as well as step 1 of the Test Drive (Build the user interface) went fine. I could run the project, which at the end of step 1 correctly displayed the UI in my browser.
    Only one problem, I don't know if it is relevant for the rest of this post : I first got an error, saying that ports 8080, 8005 and 8009, requested by Tomcat, where used. After a short Google search, I fixed it by changing these ports to 8081, 8006, and 8010, in the Tomcat 6.0\conf\server.xml file.
    The Test drive second step is "Connect to data". I found some discrepancies between the Test Drive doc, and what is displayed in Flash Builder. The Test Drive says :
    "Use the Data menu and the Service Wizard to create a service for your application server. For ColdFusion and Java, specify the service file you put on your application server earlier (see Figure 9 for a PHP example). For Java, select the No password required check box, select the employeeService destination, and change the service package to services.employeeservice."
    --> But there is no "No password required check box".
    Also, when running the "Connect to data/service..." wizard, it was not at first completely clear what to choose. The proposed choices were :
    BlazeDS
    ColdFusion
    HTTP
    LCDS
    PHP
    Web Service
    XML
    Since all others choices, when tried, declared to be unconsistent with my project's server type, I finally selected "Web Service".
    In the next wizard's form, according to the Test Drive indications, I specified the URI of my EmployeeService class : C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\testdrive\WEB-INF\classes\services\EmployeeService.class
    That defined correctly the other fields.
    But when pressing the "Next >" button, Flash Builder issued the following error message :
    English translation : Unable to extract operations and entities from specified WSDL. Reason : an error occured while instrospecting the service.
    And the full error text is :
    An error occured while instrospecting the service. WSDLException: faultCode=PARSER_ERROR: Problem parsing 'file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/testdrive/W EB-INF/classes/services/EmployeeService.class'.: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence.
    It is usually relatively easy to find fixes through Google searches, but this time, it didn't work. So here I am, expecting a bunch of wise answers from all the nice Flex / FB gurus that I'm sure haunt this forum .
    Thanks and best regards.
    Marc.

    For those who would have the same problem, here is how I could eventually fix it.
    Since the Flex Test Drive is sometimes out of sync with flash builder 4, I recreated a project using other help pages on Adobe site :
    Entry point :
    http://help.adobe.com/en_US/Flex/4.0/AccessingData/WSbde04e3d3e6474c4-668f02f4120d422cf08- 7ffd.html
    As suggested, I used the New Project wizard to create a new project, with :
    Application server type : J2EE
    Check the radio button "Use remote object access service : BlazeDS"
    Then, as indicated in following pages (section "Accessing BlazeDS")... :
    file:///C:/Mes%20documents%20C/Commun/Developpement/Documentation/HT-Tracks/AccessingData/ help.adobe.com/en_US/Flex/4.0/AccessingData/WSbde04e3d3e6474c4-668f02f4120d422cf08-7ffe.ht ml#WSbde04e3d3e6474c4-19a3f0e0122be55e1b7-8000
    ...I selected the "Data / Connect to Data/Services..." menu option, which started the Data/service connection wizard.
    There, I selected a BlazeDS (and not Web Services) service type, and everything went fine.
    Suggestion to adobe staff : maybe it would be useful to update the Flex Test Drive to reflect Flash Builder 4 ?
    Very nice product anyway, so far, congratulations...
    Rgds
    Marc.

  • Help making a Install USB of os x 10.4.6. for my Macbook 1.8ghz

    Hi,
    I need help making the USB install of os Tiger.
    The drive is having trouble reading the install disc I own so I am trying to make a USB install of it.
    I wantto install from the usb not install to it to be clear.
    Things I have!
    X1 8gig sandisk flash drive
    1 Macbook white 1.8 ghz Intel
    1 Pc with Macdrive 7
    1 Install disc that seems to have trouble being read in the drive > few marks on the disc and the mac DVD drive make lots of noise reading it but
    It will go to Disk utilities.
    Seems to be a bug in Tiger and restore doesn’t seem to work as in I can’t drag and drop a source to the restore the DVD to the flash drive.
    I already tried only 1 time to copy the DVD to the formatted flash drive using Macdrive and it read it as a bootable drive but the apple simple came up
    And then I got a the error (Can’t find driver for this platform error APCH or something like that.
    I have a torrent download of OS x 10.4.6 as well just in case some files are corrupted > I own the disk so it’s not illegal.
    I am new to mac but long time user of PC.

    Ok ..you need another Mac to make this work!
    you just use another mac even a old one like g4 to make a restore to a flash drive that you have formatted and verified.
    Bye
    Sam

  • Problem Installing ABAP Engine of SAP  WAS 6.20(TEST DRIVE VERSION)

    Hi
    I am trying to install ABAP Engine of SAP  WAS 6.20(TEST DRIVE VERSION) which I got with the official ABAP Reference book of SAP press.
    It is installing upto 91% and giving the following errors:
    RC code form SyCoprocessWait  = -2 .
    Error: DBR3LICENSECREATE ExecuteCheck 2 718
    Exit code from C:\MiniWAS\saplicense: -2.
    Error: DBR3LICENSECREATE InternalInstallationDo 2 718
    Phase failed.
    Error: DBR3LICENSECREATE InstallationDo 2 718
    Phase failed.
    Error: Main {} 2 718
    Installation aborted.
    I am trying to learn ABAP and need to practise it. Could someone please help me in this matter.

    Restart the install and search this forum for "MiniWAS", "Mini Was", "620 install" and you'll find half a dozen people who had the same problem.

  • Office Test Drive: relaunching the initial Entourage setup?

    I have been playing about with the Office Test Drive--does anyone know how to run the initial setup that Entourage performs on its first launch, again? I was testing the import of an old database; now that I see it works well I want to trash that database and rerun the initial setup again, but there is no option to do so that I can find.
    1. "Import" does not work as it won't allow me to select from the Office Identities or Main Identity or Database folder/files. (I want to do this from a backup of the database and not from a program itself. This worked on the initial setup but does not seem to want to work in the "Import" command.)
    2. I cannot seem to trash the old identity; when I drag it to the trash it goes into the trash but the trash will not allow me to empty it as it says the Database is in use.
    3. Holding down the option key upon launching Entourage worked once--it went to launch Database Utility but quit unexpectedly, and when I launched Entourage it was wiped clean and gave me the "new import" option, but I wasn't prepared to install the new database at that moment and now launching Entourage again does not give me that option. Also, when I have tried that trick again--holding down the option key during the lauch of Entourage--Database Utility launches correctly now! It does not "wipe clean" the program this time.
    Should I delete the Office Test Drive and reinstall a new copy? I found it on Mactopia; I'm just worried that the computer will detect that I'm reinstalling Test Drive and refuse to allow it. (I still have 30 days left of the Test Drive as it stands now.)
    Any other suggestions?

    It doesn't make sense to me that you would have a
    problem like this. I have bought 2 iMacs this year.
    One of them was about 7 weeks old when I got it and
    my installation of the test drive worked just fine.
    Bought a 3 month old e Mac last year and used the
    test drive for 30 days while awaiting delivery of my
    full version of Office.
    It has nothing to do with the date the software was
    installed but from the date it was first opened.
    Wierd problem. Did you buy this Mac new?
    yes brand new, from the apple store online at apple.com,, I talked to some guy on the apple help chat thing and he said my machine was manufactured on 10/22/05 I ordered it 11/28/05. Anyway I did trash it lastnight and am going to try and reinstall it it. The tech suggested it then he said he didnt think it would work lol. I also downloaded the program suggested and it works well also.. so either way Im covered now.

  • Office test drive expires b4 30 days...

    i juz purchased macbookpro in early april. it comes with the office 2004 test drive, and i'm supposed to be able to use it for 30 days. but as i've changed the clock once by accident, it expires right away!! no matter how many times i reset the clock in system preferences, it juz doesn't help...
    and, i find out that i can't even transfer the excel file back to my PC to edit...seems that the file is somehow "locked" when the office expires. when i transfer the excel to my PC, it changes to 1k, and simply can't be opened.
    is there anyway i can set back the expiry date to a correct one?!? it's kindda urgent... i juz need more time b4 i can purchase an official copy...million thanx!!
    macbookpro   Mac OS X (10.4.6)  

    hi barry~
    thx for replying!
    i think it's not solely a problem with Microsoft..
    as the same thing happens for adobe photoshop.. =(
    i downloaded the tryout version yesterday, and it expires today...
    i think it's bcoz of the system clock..
    aniDa

  • Microsoft office test drive - Expired??

    Hi there. I bought an emac about 2 months ago, and it had 'microsoft office 2004 for mac test drive' which is supposed to be a 30 day free test drive. But as soon as i tried to open it it said it had expired!
    I rang up the store and the lady said to drag it to the trash, then re-install it by using my grey 'Mac OS X install Disc'
    But when i use the disk and go to 'Optional Installs' i get to the 'custom install' page and there is no 'microsoft office test drive' to tick. under applications it only has iLife, iTunes and about 6 others.
    Anyone out there who could help me?

    You can download MS Office 2004 for Mac Test Drive from the MS website, also. Here is the link:
    MS Office 2004 for Mac Test Drive Download
    iMac Intel Core Duo 20", 1.5 GB RAM, LaCie 200 GB FW HD   Mac OS X (10.4.4)   eMac 1.42GHz, 1 GB RAM, 160 GB HD, SD; iPod w/ video 30 GB

Maybe you are looking for

  • How do I use a Frame to set up an applet animation?

    I am working on this program for a physics class. It is supposed to be an applet which animates a spring. I first set the animation with dummy values and it works fine (aside from a little flicker). I set up a frame which pops up and allows a user to

  • Comments on the 285GTX and the Limiter

    I ask if you have the time and are willing, please post your experiences or feedback with the 285GTX and the limiter whether positive or negative. I will forward to the appropriate parties This is not a official Adobe request or anything incase any a

  • Expdp from diff home

    Hi if i m having two oracle home 10g and 11g on same server and i want to do expdp of 11g database from 10g home is it possible ? for exp it is possible but i m not able to do it using expdp plz suggest

  • Why does iMovie lock up every time I use it?

    I am trying to create a new movie and iMovie keeps locking up.  This has never happened before.  I have no other programs running.  Please help.

  • IMac logs me out and closes all applications while working

    Hi, I am facing a ridiculous problem now with my new iMac. I have been using if for a while now. Recently it has started showing this issue. Issue: While I am working on the mac, suddenly without any notifications or any actions being taken iMac logs