Help, why am i getting an error?

i have the following code, trying to find the smallest of 3 integers that i will input, keep getting an error message, says that "scanner" is not a reconized symbol??
import static java.lang.Math.*;
public class dr {
     static Scanner console = new Scanner(System.in);
     public static void main(String[] args)
     int num1, num2, num3;
     System.out.print("Enter two numbers: ");
     num1 = console.nextInt();
     num2 = console.nextInt();
     num3 = console.nextInt();
     System.out.println("the smallest of" + num1, num2, num3 + "is: " + min(num1, min(num2, num3)));
     }

oops, go corrected that error but still getting another one now:
import java.util.*;
import static java.lang.Math.*;
public class dr {
     static Scanner console = new Scanner(System.in);
     public static void main(String[] args)
     int num1, num2, num3;
     System.out.print("Enter two numbers: ");
     num1 = console.nextInt();
     num2 = console.nextInt();
     num3 = console.nextInt();
     System.out.println("the smallest of" + num1, num2, num3 + "is: " + min(num1, min(num2, num3)));
     }telling me there is an error with print ln
Message was edited by:
kribraider414

Similar Messages

  • Can anyone help why I am getting this error.

    I am seeing these errors when I try to test my database. I
    can't understand why. Does anyone have any ideas?
    The exact file with different field names works on a
    different table of the same database.
    Thanks for the help.
    Errors in ActionScript.
    Error: Error #2101: The String passed to
    URLVariables.decode() must be a URL-encoded query string containing
    name/value pairs.
    at Error$/throwError()
    at flash.net::URLVariables/decode()
    at flash.net::URLVariables()
    at flash.net::URLLoader/onComplete()
    AS3 CODE
    // Changed the mouse event.
    submit_btn.addEventListener(MouseEvent.CLICK, sendData);
    function sendData(evt:Event) {
    if (fname_txt.text!="" && lname_txt.text !=""
    && street_txt.text!="" && city_txt.text!=""
    && state_txt.text!="" && zip_txt.text!="") {
    //for those using PHP
    var myData:URLRequest = new URLRequest("
    http://**********************");
    myData.method = URLRequestMethod.POST;
    var variables:URLVariables = new URLVariables();
    variables.firstName = fname_txt.text;
    variables.lastName = lname_txt.text;
    variables.streetAddr = street_txt.text;
    variables.cityName = city_txt.text;
    variables.stateName = state_txt.text;
    variables.zipCode = zip_txt.text;
    myData.data = variables;
    var loader:URLLoader = new URLLoader();
    loader.dataFormat = URLLoaderDataFormat.VARIABLES;
    loader.addEventListener(Event.COMPLETE, dataComplete);
    loader.load(myData);
    } else {
    status_txt.text = "All fields are mandatory";
    function dataComplete(event:Event):void {
    status_txt.text = event.target.data.successMessage;
    //status1_txt.text = event.target.data.secondMessage;
    fname_txt.text = "";
    lname_txt.text= "";
    street_txt.text = "";
    city_txt.text = "";
    state_txt.text = "";
    zip_txt.text = "";
    PHP CODE:
    <?php
    //Capture data from $_POST array
    $fname = $_POST['firstName'];
    $lname = $_POST['lastName'];
    $street = $_POST['streetAddr'];
    $city = $_POST['cityName'];
    $state = $_POST['stateName'];
    $zip = $_POST['zipCode'};
    //Connection to database
    $connect = mysql_connect("localhost", "**********",
    mysql_select_db ("mttolcom_testDB", $connect);
    //Perform the query
    $result = mysql_query("INSERT into address (firstName,
    lastName, streetAddr, cityName, stateName, zipCode) values
    ('$fname','$lname','$street','$city','$state','$zip')");
    if($result) echo "writing=Ok&";
    else echo "writing=Error";
    echo 'var1=yes&successMessage=Response from server. The
    data has made the server!';
    // echo 'var2=yes&secondMessage=Your data has been
    received and processed!';
    ?>
    Thanks for the help.
    Mike

    Dear Jain,
    I used CA Type 10 CA Categories as Stock Split for corporate action as below.
    Configuration
    FWK0 posting
    Error Msg

  • Why am I getting an error message when trying to use a template?

    Why am I getting an error message when trying to use a Pages template?

    You are getting an error message because there is an error.
    Knowing wht version of Pages you are using, what template you are attempting to open, and what error message Pages is sending you might help determine why you are getting that specific rror message. Without those, the first sentence above i pretty much all that can be said with any assurance.
    Regards,
    Barry

  • Why do I get "generic error" message when trying to upload a self-created, 1hr .wmv file?

    I went through the forums and made sure that any blocks or copywrites weren't triggered by the file, it's clean and can be opened using a media player and other video editing software like windows MovieMaker. I keep getting "The importer reported a generic error" message and have no idea how to proceed. Can someone please help?

    Re: Why do I get "generic error" message when trying to upload a self-created, 1hr .wmv  file?
    This ARTICLE starts with a checklist on setting up a computer to run PrE best, then goes into a series of links for tuning up one's computer and OS, and then links on troubleshooting.
    There is also a link on posting all necessary info, to help others help you.
    Without knowing much more about your system, it is impossible to say much beyond that WMV's are tough assests to work with, requiring a lot of CPU horsepower.
    Good luck,
    Hunt

  • Why am i getting an error message that says "an unknown error has occured" when i try to update my apps in the app store

    Can someone please offer some suggestions why I am getting an error message that says "an unknown error has occured" when I try to download or update my apps in the app store?
    Thanks!
    disregard! i noticed someone else's post about signing out of the app store and signing in again and it worked.....

    Hi ...
    Try here > Mac App Store: "An unknown error occurred (100)" when purchasing
    If that doesn't help, drag the App Store icon straight up off your Dock so it goes, "poof".
    Now drag the App Store icon from your Applications folder to the Dock. Try updating your apps.

  • Why do I get this error message when I open Organizer in Photoshop Elements 11 "Elements Organizer has stopped working"? My only option is to Close Program so I am effectively locked out of my photo catalogue.  I have reinstalled the program to no avail.

    Why do I get this error message when I open Organizer in Photoshop Elements 11 "Elements Organizer has stopped working"? My only option is to Close Program so I am effectively locked out of my photo catalogue. I have tried reinstalling the program but it made no difference to the error message.
    Could someone help please?  Steph

    Hi,
    Please give a try to Photoshop Elements (PSE) knowledge base. steps mentioned on this and see if it works.
    Regards
    Kishan

  • More than maximum 5 filtered album lists trying to register. This will fail,Why i am getting this error when i pick video from Photo library.

    I am able to pick 4 videos from the Photo library in my iPhoneAPP but when i try to pick 5th one it throws an error:
    "More than maximum 5 filtered album lists trying to register. This will fail,Why i am getting this error when i pick video from Photo library."

    Hello Tate r Bulic
    I don't have any idea how to remove this error,can i pick more than 5 videos from the photo library...
    If it's then please help me and gimme idea..Thanks

  • According to my network provider (Amaysim/Optus) Tethering is enabled, so why do I get this error message "to enable personal hotspot on this account, contact OPTUS"

    According to my network provider (Amaysim/Optus) Tethering is enabled, so why do I get this error message "to enable personal hotspot on this account, contact OPTUS"
    Amysim/Optus support can not help.
    I can not check or change any network settings (no APN settings)
    I have synced phone using latest itunes (10.5.3).
    Phone software is up to date (5.0.1).
    Network settings have been reset.
    SIM card has been taken out and put back in.
    Phone has been switched off/on again.
    Another sim card from virgin works ok (hotspot option is visible and can be turned on/off as required)
    The Amaysim/Optus SIM card can be put into another phone (android) and tethering/hotspot works fine.
    Can anyone provide solution to this nightmare?

    I am having the same issue although i have an iphone 5. I have contacted Live connected numerous times an tried everything imaginable to solve the issue. Is it possibly a handset issue? I cant recieve any help from optus as im with live connected, they cant help me and apple keep telling me to contact your carrier ( live connected). Seems to make me want to switch providers pretty shortly..
    please let me know if you can solve your issue and maybe it can help me too..

  • Why am i getting an error when trying to download ios6

    Why am i getting an error when trying ios6

    I have no idea. Don't think anybody else will be able to figure it out either from the information you have provided.
    Might help if we knew the error message and/or number. It is a start anyway.

  • When I want to scroll through My picks why do I get this Error message (A necessary data reference could not be resolved."

    When I want to scroll through My pictures  why do I get this Error message (A necessary data reference could not be resolved)

    Before anyone can help, they need information to work with. Basic stuff:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. What were you doing when the problem arose?
    - Did it ever work properly?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    Anything else you can think of that might allow someone else to understand your issue.
    With this kind of information somebody can develop a starting point for troubleshooting the issue.
    Posts that consist of "iPhoto doesn't work. Help" or "iPhoto won't print" or "Suddenly I have no photos!!!!!!!!!!" mean that any helper is simply guessing. With information, s/he may be able to get your issue resolved sooner.

  • Why am I getting an error telling me to reinstall my application because it appears to be damaged?

    Why am I getting an error telling me to reinstall my application because it appears to be damaged?

    Because it is damaged?
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • Why am I getting an error mesage when I am trying to update , Why am I getting an error mesage when I am trying to update

    Why am I getting an error message everytime I try to update or sync ~ I tried rebooting & not helping ~ This Ipod nano touch is only a few months old ~ wth !

    EMaximus wrote:
    Why am I getting an error message everytime I try to update or sync ~ I tried rebooting & not helping ~ This Ipod nano touch is only a few months old ~ wth !
    No such model.  You have an iPod Nano (which generation?) or an iPod Touch.
    iPod Models

  • Why am i getting an error 1327 invalid drive f, when I try to setup adobe cs2?

    why am I getting an error 1327 invalid drive F, when I am setting up cs2?

    http://help.lockergnome.com/windows/Error-1327-Invalid-Drive--ftopict447642.html

  • Why do I get an error message when attempting to download music into a project in Ellements 13?

    Why do I get an error message when attempting to download music into a project in Ellements 13?

    cornman30
    What computer operating system?
    And, where is the music coming from, iTunes? If so, that is a known problem with Premiere Elements (just about any version).
    The answer has been to convert the iTunes music to the wav version in iTunes.
    The following is the iTunes' document how to.
    iTunes: How to convert a song to a different file format - Apple Support
    Any questions, please do not hesitate to ask.
    If other than above, please supply more details to help us help you.
    Thank you.
    ATR

  • Why do i get quicktime error -50 everytime i try to export a project?

    why do i get quicktime error -50 everytime i try to export a project?

    I had this -50 error when exporting my movie. I tried multiple things to fix that, when I discovered the solution.
    When you insert/add/overwrite a clip into the timeline, sometimes FCPX does not generate the vignettes associated to the video (only the audio waveforms are correctly displayed). You can read the clip successfully, apply effects and do everything with it in the timeline, but when exporting this corrupted clip, the -50 error will occur. The solution is then to remove this clip and add it again (it should not bug twice on the same clip!).
    So I do not know whether you are in the same situation, but I hope this could help.

Maybe you are looking for

  • Web Gallery creation in Adobe Bridge CS6 on iMac stopped working!

    Why have my Adobe Bridge CS6 stopped working on my iMac and why is there strange code in the address bar when I click Preview In Browser?

  • Packet loss when pinging from/to a cisco 3560e switch

    I see Packet loss when pinging from/to a cisco 3560e switch. CPU utilization is normal. Switches are running with IOS c3560e-universalk9-mz.122-35.SE5.bin. Packet loss is observed for all the devices irrespective of directly connected or remote devic

  • Select One Choice-select multiple attributes into mutiple columns

    Select One Choice-select multiple attributes into mutiple columns does not work. read-only view object view1 - columns a, b, c updatable view object view2 - also columns a, b, c Select One choice has the capability to bind multiple columns to multipl

  • Free purchase not received

    for U2 abum--I tired the suggestions listed. here,. None worked. The store says purchased. I did not get it. Now what? I sent a feed back to  itunes support.  Also when people say they got it on iCloud, what do they mean? I don't see any music librar

  • SmartView Hsgetvalue function and Refresh

    Hi All, I'm creating a SmartView Report using HsgetValue() function. When i Refresh the data is getting displayed correctly, but giving pop up warning that Essbase Error (1020047): A column item conflicts with a Row item Why it is happening ? Can any