Using Methods not Defined in a class that you are calling them from

For one of my assignment I have had to create a class with methods and then create another class to test the methods.
I keep getting the error message "cannot resolve symbol"
And the error points to the line where I am calling the class.
I have put the classes in a package and imported them.
Here is the method I am calling.
public boolean validDate(int day, int month, int year)
if(leapYear(year))
daysInMonth = 29;
else
getNumberOfDaysInMonth(month);
return true;
This is how I am calling it from the test class
if(validDate(day1,month1,year1))
testnewDate.java:38 cannot resolve symbol
symbol : method validDate(int,int,int)
location:class newdate.testnewDate
if(validDate(day1,month1,year1))
^
If anyone is able to help I can give you my java source files if I haven't given enough information.

You can't call another class's method directly from your class. You need to get an object of that class and should call the method using that object.
If you have written public boolean validDate(int day, int month, int year) method in class DateValidator, then from your test class, you have to call that like this,
DateValidator dv = new DateValidator();
if(dv.validDate(day1,month1,year1)) {
// Take actions
Hope it is clear.
Sudha

Similar Messages

  • Automatic Payment program: Payment method not defined for vendor abroad

    Hi All,
    I have a situation wherein the client has a company code in Poland . The Company code is trying to make a payment via f110 to a vendor based in sweden. The vendor wants payment to the invoice to be made in Polish Currency i.e. it wants clearing to be done in Company codes local currency.
    But F110 is throwing the error Payment method not defined for vendor abroad. Can you suggest what could be the possible Error.
    Regards
    Nitin

    Nitin,
    Have you followed the above advice, i.e. used the same medium format just allowing foreign payments for it?
    AFAIK, the Poland banks require a separate format for foreign payments, if only because international bank nbr SWIFT has to also be given and not just the IBAN.
    At my company, the Deutsche Bank Poland requested IDocs to be set up instead, I'm working on it now..
    thanks

  • JavaScript required. The browser that you are using does not support JavaSc

    I keep on getting this message when I'm trying to log on to Hotmail
    JavaScript required. The browser that you are using does not support JavaScript, or you may have disabled JavaScript
    And my browser (IE 6) cannot go to any java links. They either don't load or they are blank pages. I tried installing java, enabling them on the internet options, and even installed a new browser it is still the same thing!!!
    I'm very pissed right now but I really really need some help. Sorry for the inconvenience.
    Thank you, Zaragon

    JavaScript is different from Java. Somehow, security has gotten turn on in IE. If you go to tools, internet options, security, then look at Internet (for hotmail anyway), hit the custom level button, you will see that scripting has been disabled.

  • Secure zone - ERROR: The payment gateway that you are using does not support recurring payments

    So I want to sell a product that is made up of 4 downloadable products. (Totalling ~ 200meg)
    The only way I have found is to sell membership to a secure area where the files are linked.
    When I create the secure zone, I want a one-time-fee, but the system says:
    "ERROR: The payment gateway that you are using does not support recurring payments"
    The payment isn't recurring!
    Micah

    "Note that you have to use seamless gateway to process such payments."
    Right, but that's the problem, we're not usiong a seamless gateway and thus we get the error.  Again, the system should note that we're doing a one-time charge and not throw the seamless gateway error.
    Micah

  • The feature: "The edition of Reporting Services that you are using requires that you use local SQL Server relational databases for report data sources and the report server database." is not supported in this edition of Reporting Services.

    Hello all,
    I have SQL express 2014 advance edition installed ..
    and i am connecting SQl server 2008 r2 instance which is in network 
    while creating datasource in Reportserver which has Express installed ..
    got this error ..
    please help me how to connect to remote server
    Dilip Patil..

    Error message says it all.
    With SQL Express, Data source should be local SQL DB.
    With SQL Enterprise, Standard, BI edition, you can create Data soruce which are hosted on other servers.
    Please refer similar thread:
    https://social.msdn.microsoft.com/Forums/en-US/c0468e3f-bad7-47a7-a695-75c13762280a/the-feature-the-edition-of-reporting-services-that-you-are-using-requires-that-you-use-local-sql?forum=sqlreportingservices
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • I can not connect my I Pad to a Samsung TV. Does the following make any sense?     Dear Phillip Baker,   Thank you for contacting Samsung Electronics.  We understand that you are not able to movies on the iPad on the TV.   We are sorry to say that you can

    Will the I Pad 2 connectr to a Samsung TV to play a movie from I Tunes.  Samsung sent the following.
     Dear Phillip,
     Thank you for contacting Samsung Electronics.
    We understand that you are not able to movies on the iPad on the TV. We are sorry to say that you can connect devices which are DLNA compatible and PC or laptops which are
    installed with PC Share manager. If the iPad supports DLNA, you can connec it to the TV and play the files
    supported by the TV. The TV supports following file video types : MKV, AVI, MP4, WMV, MPEG, MPG, ASF, 3GP, TS, TP, TRP. If you have any other questions, please feel free to contact us.
    Thank you. 
    Samsung Online Support.
    Any help?

    What method of connection are you trying to use? DLNA looks like a standard for sharing media between devices over your home network, but I'm fairly certain the iPad doesn't support this protocol. Apple sell adaptors to connect your iPad directly to TV using composite or HDMI connectors. I'd be surpsied if your TV won't support either of those.
    tt2

  • The Web application at could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application

    Hi,
    I have created on windows service to fetch sharepoint list ad update the list items.
    when i run this service in sharepoint server(where the sharepoint site is hosted),it is working fine. If i run the same service in another machine(sharepoint installed in this machine also). it is giving the below error
    The Web application at [URL] could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
    Code snippet
    SPSite sharepointSite = null;
                SPWeb rootWeb = null;
                try
                    //SPList current = null, previous = null;
                    string colmId = ConfigurationManager.AppSettings[ID_COLM];
                    List<TaskEntity> list = new List<TaskEntity>();
                    sharepointSite = new SPSite(URL);
                    rootWeb = sharepointSite.OpenWeb();
                    SPList current = rootWeb.Lists[ConfigurationManager.AppSettings[OMEGA_REGISTRATION_LIST]];
                    WriteEventLog("current" + current.Items.Count.ToString());
                catch (Exception ex)
                    ExceptionMethod(ex);
                finally
                    sharepointSite = null;
                    rootWeb = null;
    I have pointed .net framework to 3.5 version and target palform as Any CPU. Please suggest me

    Hi mallela1,
    I also had similar issue couple of months back when I was trying to access a remote URL from a Windows service when the site does not exists in the server where service resides.
    You cannot access a remote url (even though it is SharePoint server and also in same network ) from server object model.
    SPSite can look in the current server only. here what is happening is SPSite will look for this in the current server DB and it is not finding this errror.
    So please dont use ServerObject model for accessing remote sites. You can use Client Object model for the code /requirement you have stated above.
    I wasted lot of time in finding a work around to make to work. It did not. So look for other options.
    Regards,
    Nandini

  • How do I resolve this problem: This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required

    When attempting to log in to the web site the following message is received. This web site works
    on other systems using Firefox.
    This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
    Additionally, a 401 Authorization Required error was encountered while trying to use an ErrorDocument to handle the request.
    == URL of affected sites ==
    http://www.mdyc.org/members_only

    You may have saved a bad password so Firefox is entering that rather than giving you the option to try again. Go to Tools > Options > Security > Saved Passwords and delete the saved passwords for that site and then try logging in again.

  • Windows Mail could not be started. Make sure that your disk is not full or that you are not out of memory (0x800C0155).

    I have Vista SP2. Every time I open Firefox (3.6.13), I get three consecutive error messages:
    1) Windows Mail could not be started. The application was unable to open the Windows Mail message store. Your Windows Mail mailbox data is currently being used by another program, such as a virus scanner. Close the program or wait for it to complete its operation, then open Windows Mail again (0x800C0155).
    2) Windows Mail could not be started. Make sure that your disk is not full or that you are not out of memory (0x800C0155).
    3) Windows Mail could not be started because MSOE.DLL could not be initialized.
    This series of messages continue to recur during my Firefox session and eventually will freeze up my session.
    I use Gmail. I do not use Windows Mail or Outlook Express and deleted Windows Live Mail. There is a a file named msoe.dll using the path C: /Program Files/Windows Mail. I also found C:/Program Files/Windows Live/RemoteActiveX even though I thought I deleted all Windows Live programs.
    I have set Firefox as the default browser. Also, in Firefox, if I click on "File=>Send Link", it triggers the series of three error messages above.
    I don't understand why Gmail would reference Winmail. Any ideas how I can fix this? Can I or should I delete the Windows Mail and Windows Live folders?

    I have had many problems with permissions on Windows Vista, 7,8 & 81.1.  It is usually after an update or installation, especially one that requires a reboot to finish (some AVG, Windows Live, Windows Updates, etc).  Once File(s), Folder(s)
    and Registry Key(s) permissions are screwed up, it can take days to work them out if ever.
    After having spent several hours on a clients PC and online forums with this problem.  I transferred her user profile with a free program called
    Transwiz (run as Administrator) to a zip file on the HDD.  I renamed her user in manage User Accounts to "Username old".  I then ran Transwiz again to restore the profile but telling it to create a new user using the original Username.
     After it completed restoring the profile, I logged out of "Username old" and logged in to Username and all wass well, I only needed to supply the email password which is not transferred.  When you move profile data, all the old permissions
    have to be removed and <st1:personname w:st="on">new</st1:personname> permissions added so the data and files belong to the <st1:personname w:st="on">new</st1:personname> user.  This cleared up all the permission
    problems.
    James Taylor

  • SQL ENTERPRISE: The edition of Reporting Services that you are using requires that you use local SQL Server relational databases for report data sources and the report server database

    The error below makes absolutely no sense! I'm using Enterprise Core...yet I'm being told I can't use remote data sources:
    w3wp!library!8!03/05/2015-19:08:48:: i INFO: Catalog SQL Server Edition = EnterpriseCore
    w3wp!library!8!03/05/2015-19:08:48:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.OperationNotSupportedException: , Microsoft.ReportingServices.Diagnostics.Utilities.OperationNotSupportedException: The feature: "The edition of Reporting
    Services that you are using requires that you use local SQL Server relational databases for report data sources and the report server database." is not supported in this edition of Reporting Services.;
    Really? This totally contradicts the documentation found here:
    https://msdn.microsoft.com/en-us/library/ms157285(v=sql.110).aspx
    That article says remote connections are completely supported.
    ARGH! Why does this have to be so difficult to setup?!?

    Hi jeffoliver1000,
    According to your description, you are using Enterprise Core edition and you are prompted that you can’t use remote data sources.
    In your scenario, we neither ignore your point nor be doubt with what you say. But actually we have met the case before that even though the SQL Server engine is Enterprise but the reporting services is still standard. So I would recommend you to find the
    actual edition of reporting services you are using. You can find Reporting Services starting SKU in the Reporting Service logs ( default location: C:\Program Files\Microsoft SQL Server\<instance name>\Reporting Services\LogFiles). For more information,
    please refer to the similar thread below:
    https://social.technet.microsoft.com/Forums/en-US/f98c2f3e-1a30-4993-ab41-acbc5014f92e/data-driven-subscription-button-not-displayed?forum=sqlreportingservices
    By the way, have you installed the other SQL Server edition before?
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • The version of Adobe Flash Player ActiveX that you are trying to install is not the most current v

    I'm installing Flash Player on my Windows 7 64-bit OS using IE 8 32-bit. The installation terminates and the log file contains the following. (Please note, this log file was in "C:\Windows\SysWOW64\Macromed\Flash"). Flash player (32-bit) has been working, but just currently quit working. Advise please.
    Start Main Section - Date=13/05/2010 (Thursday)
    Time=8:14:27
    CreateDirectory: "C:\Windows\system32\Macromed\Flash" (1)
    Call: 441
    Safety Check
    Call: 116
    Call: 1191
    File: overwriteflag=1, allowskipfilesflag=2, name="C:\Users\Rich\AppData\Local\Temp\nsdB8C7.tmp\UserInfo.dll"
    File: wrote 4096 to "C:\Users\Rich\AppData\Local\Temp\nsdB8C7.tmp\UserInfo.dll"
    CheckAdminPermissions Name = Rich
    Call: 1191
    File: overwriteflag=1, allowskipfilesflag=2, name="C:\Users\Rich\AppData\Local\Temp\nsdB8C7.tmp\UserInfo.dll"
    File: skipped: "C:\Users\Rich\AppData\Local\Temp\nsdB8C7.tmp\UserInfo.dll" (overwriteflag=1)
    CheckAdminPermissions Account Type = Admin
    Jump: 148
    Call: 148
    Call: 74
    GetWindowsVersion -
    CheckSupportedPlatform  - OS=
    Call: 447
    CheckFPPermissions
    Call: 74
    GetWindowsVersion -
    Call: 1191
    File: overwriteflag=1, allowskipfilesflag=2, name="C:\Users\Rich\AppData\Local\Temp\nsdB8C7.tmp\fpinstall.dll"
    File: wrote 8704 to "C:\Users\Rich\AppData\Local\Temp\nsdB8C7.tmp\fpinstall.dll"
    ObjectExistsAndIsOwnedBySomeoneElse = 0
    Jump: 490
    MessageBox: 12582960,"The version of Adobe® Flash® Player ActiveX that you are trying to install is not the most current version.
    Please visit http://www.adobe.com/go/getflashplayer to obtain the latest, most secure version."
    Delete: DeleteFile("C:\Users\Rich\AppData\Local\Temp\nsdB8C7.tmp\fpinstall.dll")
    Delete: DeleteFile("C:\Users\Rich\AppData\Local\Temp\nsdB8C7.tmp\System.dll")
    Delete: DeleteFile("C:\Users\Rich\AppData\Local\Temp\nsdB8C7.tmp\UserInfo.dll")
    RMDir: RemoveDirectory("C:\Users\Rich\AppData\Local\Temp\nsdB8C7.tmp\")

    That's a good question. I may have installed FP 10.1 Beta in many of the attempts to resolve the issue. I've scanned my registry for any reference to Flash and removed anything that remotely resembles Flash Player (of course backing up Registry first). I've run uninstall_flash_player.exe, which doesn't appear to do anything. I've checked logs and there's no reference to Flash Player being installed.
    When I go to the link provided ( http://www.adobe.com/software/flash/about/) I get the messageThe version of Adobe® Flash® Player ActiveX that you are trying to install is not the most current version. Please visit http://www.adobe.com/go/getflashplayer to obtain the latest, most secure version. and when I look at the log (install.log) I see an attempt to install Flash Player. Here's the most recent log file:
    Start Main Section - Date=14/05/2010 (Friday)
    Time=7:02:52
    CreateDirectory: "C:\Windows\system32\Macromed\Flash" (1)
    Call: 441
    Safety Check
    Call: 116
    Call: 1191
    File: overwriteflag=1, allowskipfilesflag=2, name="C:\Users\DEVELO~1\AppData\Local\Temp\nspDCDD.tmp\UserInfo.dll"
    File: wrote 4096 to "C:\Users\DEVELO~1\AppData\Local\Temp\nspDCDD.tmp\UserInfo.dll"
    CheckAdminPermissions Name = developer
    Call: 1191
    File: overwriteflag=1, allowskipfilesflag=2, name="C:\Users\DEVELO~1\AppData\Local\Temp\nspDCDD.tmp\UserInfo.dll"
    File: skipped: "C:\Users\DEVELO~1\AppData\Local\Temp\nspDCDD.tmp\UserInfo.dll" (overwriteflag=1)
    CheckAdminPermissions Account Type = Admin
    Jump: 148
    Call: 148
    Call: 74
    GetWindowsVersion -
    CheckSupportedPlatform  - OS=
    Call: 447
    CheckFPPermissions
    Call: 74
    GetWindowsVersion -
    Call: 1191
    File: overwriteflag=1, allowskipfilesflag=2, name="C:\Users\DEVELO~1\AppData\Local\Temp\nspDCDD.tmp\fpinstall.dll"
    File: wrote 8704 to "C:\Users\DEVELO~1\AppData\Local\Temp\nspDCDD.tmp\fpinstall.dll"
    ObjectExistsAndIsOwnedBySomeoneElse = 0
    Jump: 490
    MessageBox: 12582960,"The version of Adobe® Flash® Player ActiveX that you are trying to install is not the most current version.
    Please visit http://www.adobe.com/go/getflashplayer to obtain the latest, most secure version."
    Call: 1191
    File: overwriteflag=1, allowskipfilesflag=2, name="C:\Users\DEVELO~1\AppData\Local\Temp\nspDCDD.tmp\NSISArray.dll"
    File: wrote 17920 to "C:\Users\DEVELO~1\AppData\Local\Temp\nspDCDD.tmp\NSISArray.dll"
    Delete: DeleteFile("C:\Users\DEVELO~1\AppData\Local\Temp\nspDCDD.tmp\fpinstall.dll")
    Delete: DeleteFile("C:\Users\DEVELO~1\AppData\Local\Temp\nspDCDD.tmp\NSISArray.dll")
    Delete: DeleteFile("C:\Users\DEVELO~1\AppData\Local\Temp\nspDCDD.tmp\System.dll")
    Delete: DeleteFile("C:\Users\DEVELO~1\AppData\Local\Temp\nspDCDD.tmp\UserInfo.dll")
    RMDir: RemoveDirectory("C:\Users\DEVELO~1\AppData\Local\Temp\nspDCDD.tmp\")

  • The FTP server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the

    When i tried to login in inbrowserediting.adobe.com i see that:
    The FTP server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the same user.
    What does it mean? What is problem?

    Hi,
    I have just created my First website using Muse and Its all been uploaded to my FTP server but i cant access the in browser editing which was the whole reason why i re-done the website for my client using muse
    its saying the following
    "The FTP server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the same user. server configured for this site doesn't seem to match the URL you entered. Make sure that you use the Upload to FTP Host feature in Muse to publish the site directly to the final location and that you are logging on to In-Browser Editing with the same user."
    Yet i Can access my website fine "www.calmwood.com.au"
    My ftp server responds to either the IP Address or the DNS Address www.calmwood.com.au
    so i am not understanding how it thinks its different. when its fully referenced
    any help would be appreciated.
    thanks

  • The version that you are trying to install is not the most current version

    I have multiple snapshots of this one. I am trying to install Adobe Flash Player on a Windows7 64bit machine from adobe.com. I keep getting the following error:
    The version of Adobe Flash Player ActiveX that you are trying to install is not the most current version. Please visit (adobewebsite) to obtain the latest, most secure version.
    This is the message that I am getting from Adobe.com website!
    I tried uninstalling multiple times + reinstalling, same error. I tried offline installing, same error (is not the most current version).
    Help?

    Hi, It may be helpful if you read over this troubleshooting guide by Adobe.
    http://kb2.adobe.com/cps/191/tn_19166.html
    If you decide to Uninstall and Install again, I would use the "executable" which you can download to your Desktop.
    Have you previously installed any beta version? I'm sure you know you need to use the 32bit browser since Flash Player
    is not supported on the 64bit.
    The Anti-Virus/Firewall, Security Settings for IE, Permission requirement are important. Also the necessity of Rebooting twice after the Uninstall for IE, to make sure old files are removed.
    If you have any questions, just post back.
    Thanks,
    eidnolb

  • I updated my iphone 3g to ios4.2.1 ... the update was succesful but nw itunes says that sim card inserted in this phone is not acceptable and also states that on;y compatible sim from supported carrier is acceptable !!! kindly suggest ...

    i updated my iphone 3g to ios4.2.1 ... the update was succesful but nw itunes says that sim card inserted in this phone is not acceptable and also states that on;y compatible sim from supported carrier is acceptable !!! kindly suggest ...

    horsie10 wrote:
    i bought my iphone in USA and im using it in india .... kindly hellp me how can i resolve this problem !!!
    It has NEVER been possible to purchase an unlocked iPhone 3G in the US. Your phone was hacked. Updating it has re-locked it to AT&T. AT&T will NOT unlock iPhones for any reason.
    The phone is now useless to you. There is no legitimate way to fix this. Buy a new phone. Preferably in India.

  • My iPhoto library is not opening, it said check that you have the permission to write the library directory

    My iPhoto library is not opening, it said check that you have the permission to write the library directory

    Hey Tam50,
    Thanks for using Apple Support Communities.
    iPhoto '11: If you see a message that iPhoto can’t access one or more photo files
    http://support.apple.com/kb/ph2512
    To correct a permissions issue:
    Quit iPhoto, if it’s open.
    Hold down the Command and Option keys as you click the iPhoto icon.The Photo Library First Aid window opens.
    Click Repair Permissions to repair permissions and unlock necessary files and folders.For information about the remaining checkboxes, visit the iPhoto Support website.
    Click Repair.
    Have a nice day,
    Mario

Maybe you are looking for

  • Viewing passed variables in an alert from the new window

    If I am passing a param, SD and ED to another window, how can I view it using an alert when an applet is created.  I have the FirstUpdateEvent established and I place the alert in the function. How should the alert look? I have tried alert([Param.1])

  • Appalled by Verizon's lack of honesty and customer service

    I am so frustrated with Verizon right now...I have been with Verizon for over 10 years. My phone stopped working, and was replaced through the insurance. I was past my 45 days in returning the phone, but spoke with SEVERAL representatives who told me

  • Macbook Pro will not boot from internal drive

    I have a macbook pro model indentifier: macbookpro 7,1. The system would not boot what I have tried is first running apple diagnostics and all test fine, I tried booting from a snow leopard cd to re-install and it would not boot from the cd, however

  • How to develop dll towards VB and Delphi for vi's of a third-part usb device

    Hello, dear lv'ers: Recently i am evolved in a project where i want to reuse my developed ac measurement modules (certainly in .vi format) in target computers. The related information has been collected below: 0) Develope machine: win7, lv2010 sp1 de

  • How to open  .exe file located in server system by the client system

    hi, i am using tomcat 5.0 as server and jsp as front end. I placed some of the software in the server system.I want to open the exe of those software from the client system when the user clicks the button. I am able to open them in the server system