CANNOT FIND VARIABLE AND CONTRUCT

I get cannot find symbol textio and symbol romanconverter
I need help to fix this and understand what i did wrong or did not do.
Im trying to write a program that has the user input numbers and the the program outputs roman numbers
I hope that i am close to getting there!
public class RomanConverter{
public static void main(String[] args){
System.out.println("Enter a Roman numeral and I will convert it to an ordinary");
System.out.println("arabic integer. Enter an integer in the range 1 to 3999");
System.out.println("and I will convert it to a Roman numeral. Press return when");
System.out.println("you want to quit.");
while (true) {
System.out.println();
System.out.print("? ");
/* Skip past any blanks at the beginning of the input line.
Break out of the loop if there is nothing else on the line. */
while (TextIO.peek() == ' ' || TextIO.peek() == '\t')
TextIO.getAnyChar();
if ( TextIO.peek() == '\n' )
break;
/* If the first non-blank character is a digit, read an arabic
numeral and convert it to a Roman numeral. Otherwise, read
a Roman numeral and convert it to an arabic numeral. */
if ( Character.isDigit(TextIO.peek()) ) {
int arabic = TextIO.getlnInt();
try {
RomanConverter N = new RomanConverter (arabic);
TextIO.println(N.Int() + " = " + N.String());
catch (NumberFormatException e) {
System.out.println("Invalid input.");
System.out.println(e.getMessage());
else {
String roman = TextIO.getln();
try {
RomanConverter N = new RomanConverter(roman);
System.out.println(N.String() + " = " + N.Int());
catch (NumberFormatException e) {
System.out.println("Invalid input.");
System.out.println(e.getMessage());
} // end while
System.out.println("OK. Bye for now.");
} // end main()
} // end class RomanConverter

Here, let me do it!
I get cannot find symbol textio and symbol
romanconverter
I need help to fix this and understand what i did
wrong or did not do.
Im trying to write a program that has the user input
numbers and the the program outputs roman numbers
I hope that i am close to getting there!
public class RomanConverter{
    public static void main(String[] args){
System.out.println("Enter a Roman numeral and I will convert it to an ordinary");
System.out.println("arabic integer.  Enter an integer in the range 1 to 3999");
System.out.println("and I will convert it to a Roman numeral.  Press return when");
          System.out.println("you want to quit.");
          while (true) {
           System.out.println();
    System.out.print("? ");
/* Skip past any blanks at the beginning of the
  input line.
Break out of the loop if there is
  nothing else on the line. */
while (TextIO.peek() == ' ' || TextIO.peek() ==
  '\t')
                TextIO.getAnyChar();
  ( TextIO.peek() == '\n' )
                break;
/* If the first non-blank character is a
  digit, read an arabic
numeral and convert it to a Roman
  numeral.  Otherwise, read
a Roman numeral and convert it to an
  arabic numeral. */
  ( Character.isDigit(TextIO.peek()) ) {
                int arabic = TextIO.getlnInt();
  try {
RomanConverter N = new
  RomanConverter (arabic);
TextIO.println(N.Int() + " = " +
  N.String());
  catch (NumberFormatException e) {
System.out.println("Invalid input.");
ystem.out.println(e.getMessage());
              else {
    String roman = TextIO.getln();
              try {
        RomanConverter N = new RomanConverter(roman);
System.out.println(N.String() + " = " +
  N.Int());
  catch (NumberFormatException e) {
System.out.println("Invalid input.");
ystem.out.println(e.getMessage());
       }  // end while
       System.out.println("OK.  Bye for now.");
        }  // end main()
     } // end class RomanConverterHave you added the import statement for TextIO?

Similar Messages

  • APD issue 'Cannot find Variable'

    Hello experts,
    When i am trying to execute APD following error msg recieved.
    Cannot find variable 4T23JCVG9Z4JPGIFX0WFR1GK9 for ZLASTDATE characteristic in selection 0001
    Message no. RSAN_WB010
    Diagnosis
    Technical key for message: CX_RSAN_MDL_DST_FILTER=>FILTER_VAR_RANGE_ERROR
    Procedure
    If you require further assistance, look for a SAP Note containing the key words CX_RSAN_MDL_DST_FILTER=>FILTER_VAR_RANGE_ERROR or RSAN_WB010.
    has anyone had this issue.Please share your experience.
    Regards
    Kranthi.C

    Thanks Vishal for your prompt response. We running APD from an Infoprovider(Infoobject  as Dattarget) called 0BPARTNER. And 'ZLASTDATE'(Refference of ODATE) is attribute of '0BPARTNER'. We stores the values in CRM.
    We also have an alternative  in BI  system for this to fetch the data from Query and stores it in CRM. But problem is in Prod server we have over 1.5 million records of data and the values of these records  may be changed on  a daily basis. If 1.5 million records can uploaded at the first place later we dont expect many records on a daily basis(hardly 5k).So i executed first time  APD using this Query it ends up with error as cannot a upload the load at one stretch after many hours.I have also tried  split the records like 20k in Query but still taking 5 to 6 hrs time.APD process can be done only after business hours so if i follow this procedure it will take many days for me to upload and may be CRM dont have uptodate data.
    Hope you understood wat the problem is .Please let us know if anything you aware which can resolve the issue.
    Regards
    Kranthi

  • Cannot find variable Configuration

    Hi,
    Could anyone pls see these errors? Many thanks.
    516 am =
    517 Configuration.createRootApplicationModule(appModuleName, appModuleConfig);
    518 sb.append("ImageServletRooAppModule ").append(appModuleName);
    519 ULDLAppModuleImpl amULDL = (ULDLAppModuleImpl)am;
    Error(517,2): cannot find variable Configuration
    Error(519,17): cannot find class ULDLAppModuleImpl
    Error(519,45): cannot find class ULDLAppModuleImpl

    Hua,
    again you don't provide your jdev version or a valid use case and expect us to help. You are posting on this forum long enough to know that we need more information to help.
    By know you should have learned how to use java. This is a beginners question: 'Cannot find x' should not be that hard to solve. Hint: import ... and library
    Timo

  • Windows Vista cannot find bonjour and it won't allow me access to my ipad.

    For some reason my Windows Vista cannot find bonjour and it won't allow me to do anything on my ipad. If I reinstall itunes will that work? If I update itunes will that work?
    Please Help....
    Thanking You in advance,
    Frankie

    Hi Frankie,
    This article covers how to check if Bonjour is installed correctly and how to reinstall if it's not:
    Bonjour for Windows: How to tell if it successfully installed
    http://support.apple.com/kb/HT2703
    Cheers!
    - Ari

  • Cannot find JDK and JRE?

    I am configuration Hyperion, and it pops up an information say: Cannot find JDK or JRE, I have set the JAVA_HOME environment variable to c:\Program Files\Java\Jdk.1.6, but still get this error, what's wrong with me?

    Hi,
    It does not use the JAVA_HOME environment variable, it will try to use the JRE installed with hyperion, if it can't find it then you receive the error message.
    The JRE's should be in the \Hyperion\common directory e.g. \Hyperion\common\JRE or \Hyperion\common\JRE-64
    If you don't have these directories then something has gone wrong with the installation.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Cannot find variable taxRate

    class Goods {
         //instance variables
         String description;
         double price;
         //constructor
         Goods (String desc, double pri)
              description = desc;
              price = pri;
         public void display()
              System.out.println("item " + description + " price " + price);
    class Food extends Goods
         double calories;
         Food (String desc, double pri, double cal)
              super(desc, pri);
              calories = cal;
         public void display()
              super.display();
              System.out.println("Calories " + calories);
    interface Taxable
      final double taxRate = 0.06 ;
      double calculateTax() ;
    class Toys extends Goods
         int minimumAge;
         Toys (String desc, double pri, int minAge)
              super(desc, pri);
              minimumAge = minAge;
         public void display()
              super.display();
              System.out.println("Minimum Age " + minimumAge);
         public double calculateTax()
        return price * taxRate ;
    class Books extends Goods
         String author;
         Books (String desc, double pri, String auth)
              super(desc, pri);
              author = auth;
         public void display()
              System.out.println("Author " + author);
         public double calculateTax()
              return price * taxRate;
    public class InterfaceExample
      public static void main ( String[] args )
        Goods[] inventory =  new Goods[10];
        inventory[0] = new Goods( "bubble bath", 1.40 );
        inventory[1] = new Food ( "ox tails", 4.45, 1500 );
        inventory[2] = new Books ( "Emma", 24.95, "Austin" );
        inventory[3] = new Toys  ( "Leggos", 54.45, 8 );
        inventory[0].display();
        inventory[1].display();
        inventory[2].display();
        inventory[3].display();
    }on line 57 compile tells me that it cannot find the variable taxRate but i have defined it in the Taxable interface
    final double taxRate = 0.06;

    You did define that taxRate variable in an interface you never implemented. Make sure your interface is available by addingimplements Taxableto the classes Toys and Books.

  • Cannot find dashboard and reports after upgrading rdp from 10g to 11g OBIEE

    Hi all
    I am trying to upgrade from OBIEE 10g to 11g. These two products are installed on different servers. I have followed the guide: http://www.oracle.com/technetwork/issue-archive/2011/11-jul/o41bi-402913.html and everything seems to work fine.
    So i have taken a copy of rdp from the server where was installed OBIEE 10g and took it in the server where OBIEE 11g is installed.
    Ran the upgrade tool and upgrade finished successfully. Restarted the BI Servers in core application on Enterprise Manager.
    Now when i access the upgraded rpd, the layers and the fields are fine but I cannot find all the reports and dashboards that i had created.
    Am I missing any upgrade steps?
    Please suggest
    Thank you and best regards

    Hi Deepak,
    Thanks for your response.
    Oracle also came back to me and looks like my method is not valid:
    Hi Jim,
    Thanks a lot for the information. First of all I would like to inform you that upgrade CANNOT be performed across two machine. So, if 10g installation is on Host A, then upgrade to 11g will be on Host A.
    So, in your scenario this is what you can do:
    1. On Host A running Forms/Discoverer 10g on Windows 2003, install Forms/Discoverer/Reports 11g (11.1.1.6.0)
    2. Run the upgrade Assistant to perform the upgrade from 10g to 11g.
    3. Now upgrade OS of Host A to Windows 2008
    In short, I would like to inform you that upgrades across machines does not work. Source instance which is 10g and destination instance which is 11g must exist on same box.
    Here is the documentation which you can follow:
    http://docs.oracle.com/cd/E23943_01/upgrade.1111/e10130/toc.htm
    (Oracle® Fusion Middleware Upgrade Guide for Oracle Portal, Forms, Reports, and Discoverer)
    11g Release 1 (11.1.1)
    Let me know if you have any further questions.
    Thanks,
    Rishi

  • What are the hours of operation for phone support? I cannot find them and the phone system just says between regular hours?

    My patience has been pushed to its  limit with this iPod and I cannot find hours of operation for customer service and tech support and the phone system just tells you no one is available and call back during regular hours, but nothing saying what those hours are. Does anyone know?

    Looking at the Apple's website and previous posts, Apple does not publish the hours.  Did you can in the USA during the times that corresponsd to about 9AM to 4PM Pacific time?

  • Process Control 2.5 - Cannot find controls and control rule assignments

    Dear expert,
    I am trying to set up  Process Control 2.5 and am currently trying to set up controls as well as schedules for control monitoring.  I am, however, having the following basic problems:
    -I cannot find most of the controls which I have created when I search for them in Evaluation Setup u2013> Automated Test rules u2013> Control Rule Assignment.  Therefore, I cannot assign a rule to those controls. 
    -For those controls that I did manage to find and assign to rules, I was in turn not able to find these in Evaluation Setup u2013> Scheduling u2013> Monitoring Scheduler when trying to create a schedule.  I get the error message u201CControl Rule Assignment not foundu201D, even though I do not delimit my search options. 
    -I cannot see the processes which I have assigned to my user under My Home u2013> My Process.
    Thanks for any hints!
    Regards,
    Felix

    Hi Felix,
    Is your user the owner of objects you wish to see in the My Process. Your user should either be Organization Owner or Process Owner. If you are an organization owner but not an owner of lower-level objects within your organization (such as controls or subprocesses), you will still see those objects listed within My Processes because you are responsible for them, although not the direct owner.
    Thanks & Regards,
    Venky.

  • Cannot find symbol and streams

    I am making some progress with implimenting the icaste jar file to control the serial port. My code is below. I have a problem with the statement osOut.write(bData,0,0); at the bottom of the code. cannot find symbol
    I am trying to write one byte to the serial port, I don't understand the use of the outputStream being used here from java.io , If I knew how the access worked on a lower level perhaps I could figure it out.
    In an AVR microcontroller for example, you set up the hardware on the chip to output a byte you place in a buffer, when there is data to read you have an interrupt set to jump to an isr routine that receives a byte and puts it in your own memory space or array. The hardware has a buffer it uses to hold some number of bytes and error flags to find out if you have a buffer overrun.
    Not sure if that concept is what is going on here or not.
    import com.icaste.JCommSerial.*;
    import java.io.*;
    public class newtest {
         * @param args
        public static void main(String[] args) {
            byte[] baData = new byte[1];
            baData[0]= (byte)255;
            String Errorstring = "None";
            System.out.println("Testing Serial port");
            SerialPort myPort = new SerialPort();
            try {
                myPort.openPort("COM1:", 2000, 2000);
            } catch(SerialPortNotFoundException e) {
                Errorstring="Serial port not Found";
            } catch(SerialPortInUseException e) {
                Errorstring="Serial port in use";
            } catch(SerialPortException e) {
                Errorstring="Serial port unable to complete operation";
            } catch(Throwable e) {
                Errorstring="unknown error";
            try {
                myPort.setBaudRate(9600);
            } catch(SerialPortException e) {
                Errorstring="Unable to set baud rate";
            try {
                myPort.setDataBits((byte)8);
            } catch(SerialPortException e) {
                Errorstring="Unable to set data bits";
            try {
                myPort.setStopBits(SerialPort.ONESTOPBIT);
            } catch(SerialPortException e) {
                Errorstring="Unable to set stop bit";
            try {
                myPort.setParityMode(SerialPort.NOPARITY);
            } catch(SerialPortException e) {
                Errorstring="Unable to set parity";
            try {
                OutputStream osOut = myPort.getOutputStream();
            } catch(IOException e) {
            try {
                osOut.write(baData, 0, 0);
            } catch(IOException e) {
                Errorstring="write byte failed";
            System.out.println("Error = "+Errorstring);
       

    Ok, I can finally put this question to bed. My main error was not knowing what the line of code actually was. After 4 hours of reading http://www.yu.edu/faculty/arosnfld/java/javanotes-3.1/c5/s3.html and a nice email from the tech at icaste, I finally understand what is going on and what it all means.
    If you would like to see what I am up too you can check out the DMX light prototype moveie I made a few weeka ago. It is using a program called freescale and a DMX controller connected to a USB port. The serial port can be configured to operate a USB port from windows point of view and that is my next quest to study how a USB port connection works on the hardware side.
    Thanks for the help and links, I wish there was more time in the day, and night to cram all this stuff in my head.
    Quicktime Movie (kind of big) http://www.acousticlights.com/ledmovie.m1v
    import com.icaste.JCommSerial.*;
    import java.io.*;
    public class newtest {
         * @param args
        public static void main(String[] args) {
            SerialPort myPort = new SerialPort();
            String Errorstring = "None";
            System.out.println("Testing Serial port ");
            try {
                myPort.openPort("COM1:", 2000, 2000);
            } catch(SerialPortNotFoundException e) {
                Errorstring="Serial port not Found";
            } catch(SerialPortInUseException e) {
                Errorstring="Serial port in use";
            } catch(SerialPortException e) {
                Errorstring="Serial port unable to complete operation";
            } catch(Throwable e) {
                Errorstring="unknown error";
            try {
                myPort.setBaudRate(9600);
            } catch(SerialPortException e) {
                Errorstring="Unable to set baud rate";
            try {
                myPort.setDataBits((byte)8);
            } catch(SerialPortException e) {
                Errorstring="Unable to set data bits";
            try {
                myPort.setStopBits(SerialPort.ONESTOPBIT);
            } catch(SerialPortException e) {
                Errorstring="Unable to set stop bit";
            try {
                myPort.setParityMode(SerialPort.NOPARITY);
            } catch(SerialPortException e) {
                Errorstring="Unable to set parity";
            try {
    //Get an OutputStream from JCommSerial and reference it by the name osOut.
    //assuming you already created a JCommSerial object called spPort
    // and opened it!
                OutputStream osOut = myPort.getOutputStream();
    //Write your byte to the port
    // the write() function takes an int that is then converted
    // to a byte for transmission.
                int iData = 255;
    // Send 254 bytes of data to the serial port
                while (iData >0) {
                    osOut.write(iData);
                    iData--;             
            } catch(Exception e){
                System.out.println(e.toString());
            System.out.println("Error = "+Errorstring);
    }

  • My photos are not working, any recently taken photos won't show, they're just like blank grey pictures & all my photos cannot be uploaded or loaded into an editing tap, it says error, cannot find photo, and the last photo I take ends up being repeated!

    someone please help me! I just traveled to hong long and the minute I arrived something wrong was happening with my photos, I can't take any new photos because if I did they either get repeated or just be shown as grey pictures and when I try to upload one to a photo editing app it says "error cannot Load photo" and the same happens in twitter and Facebook! this has been found on for Like more than a week now, even when I want to set a picture as my profile picture in man it ends up zooming the picture way more than how I chose it in the border,, I would like to be able to take good photos again, any help?

    1. You did not get an error message telling you that your iPhoto library was getting full. You got a message telling you that your HD was getting full, right?
    OS X needs about 10 gigs of hard drive space for normal OS operations - things like virtual memory, temporary files and so on.
    Without this space your Mac will slow down as the OS hunts for space on the disk, files will be fragmented, also slowing things down, apps will crash and the risk of data corruption - that is damage to your files, photos, music - increases exponentially.
    Your first priority is to make more space on that HD. Nothing else can be done until you do.
    Purchase an external HD and move your Photos and Music to it. Both iPhoto and iTunes can run perfectly well with the Library on an external disk.
    Your Library has been damaged from being run on an overfull disk.
    How much free space on it now?

  • Macbook Pro lost, and cannot find, TC and AEs

    Ok - I've never had an issue backing up to the Time Capsule or streaming iTunes to my two Airport Expresses. Out of the blue today, my Airport utility cannot find my TC or my AEs. However, I still have wireless internet access through the Time Capsule. I have no idea what is happening or why? There appears to be many people having this issue but I cannot find a solution. Can anyone help?

    One other thing - lights are green on all devices.

  • I bought music on my ipod touch from my account, but it was stolen. I wanted to know if the music that I bought on my ipod will show up on my itunes account on my pc? as of now I cannot find it, and i want to add the music I bought on my ipod to my ipad

    So my ipod was stolen, but I bought music on it from my account a couple days ago. I went on my pc and clicked on itunes and its not on there. I want to add my new music to my ipad now but i can't find the music.. well it doesnt show up on my purchased playlist.... Someone help me, pleaseee!!!!

    If you sync your iPod to iTunes, it should be there, if not...
    You can re-download all your iTunes purchases by logging into your iTunes Store account and selecting Purchases from the right-hand sidebar.

  • HT204053 i purchased icloud but cannot find it and install it on my macbook

    can someone help me with this problem?

    You can't purchase iCloud because it is free. You have to install 10.7.2 or later in order for iCloud to be installed on your computer.
    Upgrade Paths to Snow Leopard, Lion, and/or Mountain Lion
    You can upgrade to Mountain Lion from Lion or directly from Snow Leopard. Mountain Lion can be downloaded from the Mac App Store for $19.99. To access the App Store you must have Snow Leopard 10.6.6 or later installed.
    Upgrading to Snow Leopard
    You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s iCloud services; fees and
               terms apply.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mountain Lion, it may still meet the requirements to install Lion.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.
    Upgrading to Mountain Lion
    To upgrade to Mountain Lion you must have Snow Leopard 10.6.8 or Lion installed. Purchase and download Mountain Lion from the App Store. Sign in using your Apple ID. Mountain Lion is $19.99 plus tax. The file is quite large, over 4 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mountain Lion - System Requirements
           Macs that can be upgraded to OS X Mountain Lion
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
    Are my applications compatible?
             See App Compatibility Table - RoaringApps.
         For a complete How-To introduction from Apple see Upgrade to OS X Mountain Lion.

  • Cannot find symbols and characters table in Excel.

    Hi, could you please help me with finding symbols ( arrow up and down etc.) and characters in Excel. I tried all menues but couldn't find them.
    Thank you in advance.

    Is that what you are talking about?
    To display the outline symbols, on the Excel menu, click Preferences, and then click View. Select the Outline symbols check box.

Maybe you are looking for

  • How do I connect an Airport Extreme to my ISP with a static IP address?

    I have 5 static IP addresses from my ISP. The cable modem has five ethernet jacks. I run an ethernet cable from separate jacks on th cable modem to the devices listed next. I have one static IP address assigned to a Linksys wireless router for a MS n

  • Samsung Note 3 Lollipop Stuck at Searching For Service...

    I have terrible signal strength at work and often completely lose cell reception.  Ever since I've updated my Samsung Note 3 to 5.0, whenever I completely lose cell signal for hours and I go outside, my phone will not pick up the mobile network again

  • Bad HDD?

    My 2007 intel dou core iMac is running VERY slow. I have run the DU from start up and it shows that the S.M.A.R.T. working and the drive is verified. I also ran the repair disk, found 1 prob and fixed it and ran repair permission. I ran the AHT from

  • Small Text when printing

    When I type a message in Mail in Arial 12pt regular font, it seems smaller than it should. I tested it by printing the message, and comparing it to the same font created in Word (also in Pages, FireFox, and iWeb) showed that the text from Mail is at

  • [Solved] Pacman error downloading program

    I am trying to install midnight commander (mc), pacman finds the package ok but then when it tries to retreive it from the community it say either not found or Unknown resolver error (see below) I installed mc in a previous aborted install without a