Cannot find the Symbol

my problem is:cannot find symbol variable coefsAndDegs ; Line 54
please help me
import java.util.*;
class Term {
     private int coefficient;
     private int degree;
     public Term(int coefficient, int degree) {
          this.coefficient = coefficient;
          this.degree = degree;
     public int getCoefficient() {
          return coefficient;
     public int getDegree() {
          return degree;
public class Polynomial {
    private char polyVar;
    private ArrayList<Term> terms;
    public void Polynomial(char polyVar, int ... coefsAndDegs) {
         Scanner kb = new Scanner(System.in);
         String polies = kb.nextLine();
          polyVar = polies.charAt(0);
         if (polyVar < 'a' || polyVar > 'z') {
              throw new IllegalArgumentException("Invalid polynomial variable.");
         } else {
              this.polyVar = polyVar;
         // check that coefsAndDegs are provided in pairs..
         if (coefsAndDegs.length % 2 != 0) {
              throw new IllegalArgumentException("Coefficients and Degrees must be provided in pairs.");
         } else {
              terms = new ArrayList<Term>();
              for (int i = 0; i < coefsAndDegs.length / 2; i++) {
                   Term term = new Term(coefsAndDegs[i * 2], coefsAndDegs[i * 2 + 1]);
                   terms.add(term);
    public void main(String[] args){
     Polynomial main = new Polynomial();
    Polynomial(polyVar, coefsAndDegs);          
}

bluez_exe wrote:
my problem is:cannot find symbol variable coefsAndDegs ; Line 54And what line is that? These forums don't have line numbers, and most of us are waay too lazy to copy and paste your code into something that does.
What do you expect this to do:
public void main(String[] args){
     Polynomial main = new Polynomial();
     Polynomial(polyVar, coefsAndDegs);          
          }Or this:
if (polyVar < ' || polyVar > 'z')

Similar Messages

  • HT204291 I seem to have tried all of the above, but still cannot find the airplay symbol on my Ipad 2. Any suggestions ?

    I cannot find the airplay symbol on my Ipad 2. I have tried all suggestions in te troubleshooting guide, but still no success. Please help.

    Have you left the iPod to charge for a couple of hours and then tried resetting it again? It can take up to at least 30 minutes of charging before an iPod with a dead battery shows any signs of life.  By a reset, I assume you mean pressing and holding both the Select/Center and Menu buttons together long enough for the Apple logo to appear?
    iPod won't turn on
    B-rock

  • In the new Pages 5.0, what is the page break shortcut key. I cannot find the key as indicated on the drop down menu.

    in the new Pages 5.0, what is the page break shortcut key (it used to be the Fn + enter). I cannot find the (new) key as indicated on the drop down menu. Please help.

    Hi Bruce and fruhulda,
    ok, I found the keyboard viewer, it only shows the traditional symbol 'return'.  something like a sideway u-turn continued with the arrow under.  This is the Canadian or US keyboard. 
    btw thanks for your suggestion.

  • HT4437 cannot find airplay symbol in safari

    I just recently installed Apple Tv to my TV.  I am having trouble finding the airplay on my macbook pro in safari.  I can access my music and photos via my wifi connection but cannot find the airplay symbol on my laptop.

    Yeah it's annoying, any audio or video on iOS is available for AirPlay by default, but not on OS X.
    If you have a new computer, you may be able to mirror your entire Mac's display via AirPlay mirroring. Go to System Preferences, Displays, and see if AirPlay Mirroring is an option at the bottom of the window.
    The best way for the time being is to play this content from an iOS device, or find it through the Apple TV apps (if it's YouTube or Vimeo).
    Edit: You can AirPlay all your system audio by holding down Alt, pressing the volume icon in your menubar, and selecting Apple TV. This is for Mountain Lion only, and just sends all audio that would normally come from your speakers.

  • Can not receive Mac mail -error Outlook cannot find the server. Verify the server information is entered correctly in the Account Settings, and that your DNS settings in the Network pane of System Preferences are correct.  Account name: "MacMail"

    Can not receive Mac mail -error Outlook cannot find the server. Verify the server information is entered correctly in the Account Settings, and that your DNS settings in the Network pane of System Preferences are correct.  Account name: "MacMail"
    What are the correct mail account settings and more importantly the correct DNS settings
    Thank you for any help you may be able to provide
    Cheers
    Chris (iMac i7)

    Do not delete the old account yet. sign up for an iCloud account if you haven't.
    I understand .mac mail will still come through. Do not delete the old account yet.
    You cannot use .mac or MobileMe as type of Account, you have to choose IMAP when setting up, otherwise Mail is hard coded to change imap.mail.me.com to mail.me.com & smtp.mail.me.com to smtp.me.com, no matter what you try to enter.
    iCloud Mail setup, do not choose .mac or MobileMe as type, but choose IMAP...
    On second step where it asks "Description", it has to be a unique name, but you can still use your email address.
    IMAP (Incoming Mail Server) information:
              •          Server name: imap.mail.me.com
              •          SSL Required: Yes
              •          Port: 993
              •          Username: [email protected] (use your @me.com address from your iCloud account)
              •          Password: Your iCloud password
    SMTP (outgoing mail server) information:
              •          Server name: smtp.mail.me.com
              •          SSL Required: Yes
              •          Port: 587
              •          SMTP Authentication Required: Yes
              •          Username: [email protected] (use your @me.com address from your iCloud account)
              •          Password: Your iCloud password
    Also, you must upgrade your password to meet the new criteria:  8 characters, including upper and lower case and numbers.  If you have an older password that does not meet these criteria, when you try to setup mail on your mac, using all of the IMAP criteria listed above, it will still give a server error message.  Go to   http://appleid.apple.com         then follow directions to change your password, then go back to setting up your mail using the IMAP instructions above.
    Thanks to dpepper...
    https://discussions.apple.com/thread/3867171?tstart=0

  • I have installed Adobe packages and cannot find the Acrobat extension folder please advise how can I get these applications to load onto my computer?

    I have installed Adobe Creative Cloud for teams CC Packages which says that Acrobat XI Pro is installed. Your support page says it does not install Acrobat and I have to look in the Extensions folder for an MSI file.  I have run a number of searches and  cannot find the Acrobat extension folder please advise how can I get these applications to load onto my computer?
    Also I now administer the teams and have accepted the invitation to I received to be a team member and download the apps.  The admin page shows that I have been sent an invitation but does not show my account as "ACtive" unlike my other team members.  I tried to use the link in the invite to accept it become active but the link displayed an error saying I had already accepted the invite... why is no account not active?
    Finally what other product downloads in Creative Cloud do not actually download as part of the Creative cloud Packager for downloading the apps? e.g. acrobat and what else?

    My apologies Eadeszoo I believe our support agents are unavailable on January 1.
    Are you able to copy the contents of the DVD to your computer?  Are you receiving any particular error messages when you are trying to install?  Finally which operating system are you using?

  • I am so angry - there has to be a misundering.  my Itunes was disabled as there was a charge that I did not authorize and I cannot find the phone

    I am so angry - there has to be a misunderstanding.  my Itunes was disabled as there was a charge that I did not authorize and I cannot find the phone number for security and the dingbat girl who I'm emailing send me a link that does not work.  And I am extremely frustrated.   Please help.  I need a phone # to contact security.

    Contact Apple Support here:
    ACCOUNT SECURITY CONTACT NUMBERS
    Cheers,
    GB

  • I used to have over 2000 songs in my itunes library, now there are only a few and I cannot find the others.

    I used to have over 2000 songs in my itunes library, now there are only a few and I cannot find the others.

    See this post.
    tt2

  • I have purchased a ringtone in the iTunes Store for my iPad, and I cannot find the download together with my music. I have received the invoice but I have no product. I am working with iOS6, if that helps. Can anybody help me?

    I have purchased a ringtone in the iTunes Store for my iPad, and I cannot find the download together with my music. I have received the invoice but I have no product. I am working with iOS6, if that helps. Can anybody help me?

    I am confused. Do you mean you found the music, not the tones, or you can't find either?
    If the former, then this is normal. You can't redownload tones from the Cloud.

  • HT201317 I am trying to upload photos from my Windows 7 machine, and I was told to drag them into the photo stream in the iCloud control panel. I have downloaded the control panel several times, but cannot find the place to upload the photos from my Windo

    I am trying to upload photos from my Windows 7 desktop, and was told to go to the iCloud control panel and drag the photos into the
    upload to photo stream icon. I have downloaded the contol panel several times and cannot find the icon to get this done.  HELP 

    If you're trying to add photos to photo stream on your PC, you drag them to your photo stream uploads folder (normally My Pictures\Photo Stream\Uploads).

  • I put in my memory card to the left side of the computer, but I cannot find the file of pictures anywhere. Its not even on my desktop. What should I do and how can I get it to show up on my desktop?

    I put in my memory card to the left side of the computer, but I cannot find the file of pictures anywhere. Its not even on my desktop. What should I do and how can I get it to show up on my desktop?

    If your Mac is new-ish and has one of the Lions as its OS, the drives, cards, USB sticks no longer show up, even though they're there. Go to Finder's Preferences and tick the corresponding items in the General and Sidebar tabs.

  • Error message on my development workstation: The system cannot find the file specified.

    Post Author: cseverin
    CA Forum: Crystal Reports
    Hi,
    I am currently developing an ASP.NET website using Visual Studio.NET 2005. I am using the .NET 2.0 framework, VB.NET as my programming language and I connect successfully to a SQL Server 2005 database.  I can select, insert, update and delete data from the database elsewhere in my project, so I know basic connectivity isn't an issue.  The problem seems to be with Crystal Reports. 
    I created a folder called 'Reports' in my project and added a Crystal Report file (OpenFiles.rpt) to it.  I designed the report and initally used a hard-coded SQL query as its datasource so I could quickly get the database fields onto the report and preview them.  All worked fine. 
    To make the report accessible to the rest of the website, I created an .xsd dataset file containing the three tables (and their corresponding tableadapters) that the report requires and then redeveloped the report using the dataset as the datasource for the report.  After doing this, the preview no longer worked.
    Next, I added a page to the website and dragged a Crystal Report Viewer Control onto it.  In the code behind the page I wrote:
    Option Strict On
    Imports System.Data
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Partial Class Reports
         Inherits System.Web.UI.Page
         Private objOpenFilesreport As OpenFilesReport
         Private rptOpenFiles As ReportDocument
         Private strLastErrorMessage As String = Nothing
         Private errLastException As Exception = Nothing
         Dim strFileKey As String
         Dim strJurisdictionCode As String
         Dim strStaffId As String
         Dim strReportId As String
         Private Sub ConfigureCrystalReports()
              Dim reportPath As String = Server.MapPath("OpenFiles.rpt")
              Dim rptopenfiles As New ReportDocument
              rptOpenFiles.Load(reportPath)  <== I checked this during execution and the value correctly points to the OpenFiles.rpt file in the Reports     folder of my project
              Dim ConnectionInfo As ConnectionInfo = New ConnectionInfo()
              ConnectionInfo.DatabaseName = my database
              ConnectionInfo.UserID = login id of user
              ConnectionInfo.Password = user's password
              SetDBLogonForReport(ConnectionInfo, rptopenfiles)
              CrystalReportViewer1.ReportSource = rptopenfiles
         End Sub
         Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
             ConfigureCrystalReports()
         End Sub
         Private Sub SetDBLogonForReport(ByVal ConnectionInfo As ConnectionInfo, ByVal myReportDocument As ReportDocument)
              Dim myTables As Tables = myReportDocument.Database.Tables
              For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In myTables
                   Dim myTableLogonInfo As TableLogOnInfo = myTable.LogOnInfo
                   myTableLogonInfo.ConnectionInfo = ConnectionInfo
                   myTable.ApplyLogOnInfo(myTableLogonInfo)
              Next
         End Sub
    End Class
    I added a hyperlink to one of the existing pages on the website to navigate to this page with the report viewer on it.  When I run the website in Visual Studio and click on the hyperlink I get the following:
    Server Error in '/MyTest' Application.
    The system cannot find the file specified.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: The system cannot find the file specified.Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
    &#91;COMException (0x80004005): The system cannot find the file specified.
    &#93;
       CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +126
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +442
    &#91;Exception: Load report failed.&#93;
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +513
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +1378
       CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport() +149
       CrystalDecisions.CrystalReports.Engine.ReportDocument.get_DataDefinition() +85
       CrystalDecisions.CrystalReports.Engine.ReportDocument.get_ParameterFields() +158
       CrystalDecisions.Web.CrystalReportSource.BindControlParameter(Parameter parameter) +130
       CrystalDecisions.Web.CrystalReportSource.DataBindParameters() +191
       CrystalDecisions.Web.CrystalReportSource.EnsureParameters(Boolean forceDataBind) +90
       CrystalDecisions.Web.CrystalReportSource.LoadCompleteEventHandler(Object sender, EventArgs e) +47
       System.Web.UI.Page.OnLoadComplete(EventArgs e) +96
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4086
    Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 
    Any ideas, anyone?
    Also, assuming I can get past this error, I will need to figure out how to fill the tables in the .xsd dataset file.  I have written a class for the dataset that includes functions that populate the tables in the dataset from the database by executing SQL queries.  But how do I call these functions at the time the report is run?
    This is my first Crystal report written in .NET and I've been struggling with it for days now.  Any help would be most appreciated!
    Thanks very much!
    Chris Severin

    hello, the error message is obviously coming from one of the installed mcafee extensions. please directly contact mcafee technical support - they can likely give you more detailed guidance and are the only ones who can fix bugs or make necessary adjustments in the addon.

  • Safari cannot find the internet plug in

    I have a new Intel iMac that initially had no problem surfing any web site. I now have a problem with any page that contains "shockwave". As and example when I try to got to www.autotoll.com.hk I get stopped by the following message...
    ++Safari cannot find the internet plug in++
    ++The page “Autotoll” has content of MIME type “application/x-shockwave-flash”, but you don’t have a plug-in installed for this MIME type. A plug-in should be available on this page:++
    ++http://www.macromedia.com/go/getflashplayer++
    ++Do you want to open the page?++
    I have gone to macromedia numerous times and tried to download and install Flash Player 9. I still get the same message.
    I have also tried using FIREFOX and get the same message.
    How do I install Flash Player 9 properly??????
    HELP!!!

    Re: FLASH 9 won't work with Safari 2.0.4 or Firefox (A FIX!!!)
    Posted: Aug 24, 2007 4:44 AM in response to: threejay10
    threejay10,
    thanks for pointing me to the other discussion thread on
    http://www.justin-cook.com/wp/2007/03/08/flash-9-doesnt-work-on-mac-os-x/
    i am not that comfortable in Terminal so I opted for the one other option i could see that doesn't reliance on me typing a slew of sensitive characters into Terminal.
    So, instead, I downloaded Pseudo from VersionTracker
    http://versiontracker.com/dyn/moreinfo/macosx/9608
    installed it in my applications folder. then dragged the Flash 9 installer onto Pseudo. Flash then installed perfectly and all is working well.
    It seems there is a simple fix after all. Apparently Pseudo installs into the root and therefore, I assume, bypasses the permissions issues. After 2 days of trying to solve this, I"m happy it's over. Thanks again for pointing me in the right direction. I hope others can find this thread and the solution.
    Cheers, TM

  • I actually need help but cannot find the answer. Please.......Lately when open a new tab it does not open with a blank page. I don't want to set my homepage as

    I actually need help but cannot find the answer.
    Please.......Lately when open a new tab it does not open with a blank page. I don't want to set my homepage as blank as when I first open Firefox, it automatically loads my hotmail page. But then if I open other pages I don't get a blank page. Help, please?
    Thank you.
    ''[Personal information removed by moderator. Please read [[Forum and chat rules and guidelines]], thanks.]''

    hello, please refer to [[New Tab Page – show, hide and customize top sites]] in order to switch the feature off.

  • Safari and firefox 'cannot find the server' for every other page that i navigate to, unless I turn Wifi off and on. How do I fix this?

    Safari and firefox 'cannot find the server' for every other page that i navigate to, unless I turn Wifi off and on. Once i reconnect to the network, the page loads, but after loading a few more pages, the same thing happens all over again.
    This happens each and every time, on different Wifi networks, in different locations.  On the other hand, I don't ever encounter this problem when I tether my laptop to my mobile phone's 3g/2g network using Personal Hotspot. How do I fix this?

    Try this DNS server ...
    Open System Preferences > Network > Advanced > DNS
    Click + and type:
    208.67.222.222
    Click + again and do the same.
    208.67.220.220
    Click OK.
    Quit and relaunch both your browsers to test.
    If that doesn't help, try here >  iOS: Troubleshooting Wi-Fi networks and connections
    And here >  Wi-Fi: How to troubleshoot Wi-Fi connectivity

Maybe you are looking for

  • Having problem installing Adobe Extension Manager 6.0.7 update. Received Error  Code  U44M1P7.Help?

    I am having a problem installing Adobe Extension Manager 6.0.7 update.  Received Error Code: U44M1P7.  Help? Thank you for your assistences.

  • Print Information on Banner Page - Documaker 12.1

    Hello, Below is my scenario. Environment/Setup We are using Documaker Studio 12.1 and WIPEdit Plug to let our users interact with the Forms. The upstream application passes an XML with the required data to be printed on the Form. During the day time,

  • File compare

    Hello, How can I turn off file compare, it is not something I remembered turning on, Now when I connect to a site and try and open a page I am always asked do I want to compare the uploaded page to the page on my local. regards k

  • Cannot Sync With Office 2010

    Office 2010 has been released to Technet, schools, and other organizations. Maybe RIM should think about pulling one of their dusty programmers out of the closet to write a snippet of code so we can actually sync with Office 2010? I really getting si

  • Ipod file structure

    itunes has reorganized my file structure (on my windows machine) to separate songs from different artists into different folders.... I had them all nicely organized by artist/album. because i use more than just an ipod to listen to my music, i'd like