Just a noob simple question

how do i print System Time?
System.out.println(/* what do i need to put here?*/)

Check out the methods of class System,
http://java.sun.com/j2se/1.5.0/docs/api/

Similar Messages

  • Just a few simple questions

    1. Is it taking 5 days for me to receive my phone when it's getting shipped from a place that is 70 miles from where I live?
    2. Was I promised I would have my phone by the 23rd and still not have it? 
    3. Was I told last Tuesday that It was 100% getting overnighted Thursday and I would have the phone by Friday only to reieeve an email Friday that is was shipping but getting sent 2 day and I will get it on the 29th?
    Any help would be great!!!

    Just curious, but what kind of help were you expecting here?  This is a "Peer-to-Peer" forum.  Here is what is says at the top of the topics page.
    Announcements
    These Forums are a peer-to-peer support channel in which users help other users. If you need an answer from Verizon directly please Contact Us.

  • Im a noob - simple question!

    hi, ive just discovered i/o streams and i know how to convert an input string into a double or int:
    Integer.parseInt or
    Double.parse...
    but can u convert an input string into a long, char, or short?
    or is it best to leave it as a string?

    but can u convert an input string into a long, char,
    or short?Yes.
    The Java� Tutorial - Data Types

  • Noobie simple question with || operator

    while(!keyb.nextLine().equalsIgnoreCase("y" || "n"))
    keyb is my Scanner variable -- i know its kinda stupid but it's late and I feel dumb atm
    its not letting me put the || "n" part in...maybe something is wrong with the syntax?
    Edited by: sheky on Sep 12, 2008 6:31 PM

    This line of code has two basic concept errors.
    The || operator, is applied to booleans
    logicalValue || logicalValue"y" and "n" are Strings not booleans and the || operation is not allowed.
    The second error is that, the result of a || operation is a boolean and the equalsIgnoreCase method expect a Object as parameter, to call its toString() method and compare it to the associated String.
    What you probably want is:
    String answer;
    do {
        answer = keyb.nextLine();
    } while( ! (answer.equalsIgnoreCase("y") || answare.equalsIgnoreCase("n") );

  • Hey just have a quick question that is ios7 coming on ipod touch 4g I heard that you guys didnt design ios 7 for ipod touch 4g so are u gonna design it or its never gonna come for ipod touch 4g

    hey guys just have a simple question that i heard that ios 7 is not gonna come for ipod touch 4 they didnt design it for ipod touch 4 so are you guys designing it or its never gonna come for ipod touch 4g.
    Thanks,

    As posted on Apples website since early June, the ipod touch 5th gen is the ONLY ipod that can handle ios 7.
    No other ipod has the required hardware.

  • Reading Files (simple question)

    I'm doing some homework (and no, I'm not just looking for a handout answer, I just need a simple question answered) and I was wondering about how to read a word and evaluate if the word is the same as another word. I want to do this from a .txt file using the Scanner. I know I have to read the file and use while(ifp.hasNext()) but how do I evaluate it word by word? If there's anything else you need or if I'm asking the wrong question, let me know.

    Is there any other way to read through a file other than nextLine? I know there's probably a simpler answer, but the only way I could think of doing it is storing the next line as a String and trying to find the specified word in the string. Not only am I not sure how to do that, I imagine there's a better way. Should I be evaluating it a different way?
    Edit: I was looking at the javadoc on the Scanner class and I saw the findInLine method. We definitely didn't use this in our class, but is that what I should use?
    Edited by: Mikola7 on Nov 5, 2007 4:14 PM
    Edited by: Mikola7 on Nov 5, 2007 4:16 PM

  • A simple question about combo box

    Dear All,
    Just got a simple question about combo box: I have one of these selectors with labels based on filtered rows from a table.
    Is it possible to have one more label that would select all options?
    Like:
    Product A
    Product B
    Product C
    All Product
    Many thanks for your help!
    Gilles

    Hi Gilles,
    The purpose of ComboBox itself to select single option out of many.
    For your purpose, you may have to use "List Builder" which can accomodate 1 or more  to select.
    Please revert for more clarification if you need.
    With best wishes
    BaaRaa.

  • SIMPLE QUESTION - EXTERNAL iSIGHT CAMERA

    I just have a simple question...
    I was using an older iMac G5 with an external iSight camera and just upgraded to a new 24" iMac. Can the external iSight camera still be used on an iMac with a built-in camera?
    The cable with the external camera allows for more flexible viewing capability.

    Hello rgarros50
    The second part of your question is not quite so simple.
    Plug your external iSight in and turn it on. If you like, you can use the suggestions from How to test your (external) iSight to ensure it is functional to be sure it is working with your new iMac.
    The answer to your question about the "default camera" depends on which application you are using to operate your iSight. Here is how camera selection works in a few example:
    (1) For iChat, you can choose which iSight you use in the "Camera:" choices bar in iChat > Preferences... > Audio/Video that appears when more than one compatible camera is connected. Although your camera choices will be different, the choices bar will look something similar to the Preferences settings shown here:
    Most other applications also have settings that allow you to choose which camera to use. However, they do not all work the same way.
    (2) For instance, iMovie's camera choice is NOT set via Preferences. When you have more than one compatible camera connected, iMovie uses a drop-down menu choice something like this (depending on which version of iMovie you use):
    Note: Because I have no built-in iSight, when my external iSight is disconnected, the drop-down menu shows only "Time Lapse." Because your iMac has a built-in iSight, your built-in iSight will show in the drop-down menu even when no other camera is connected. Connecting your external iSight should allow you to choose either camera.
    (3) Photo Booth is such a simple, basic app that it offers no menu selectable choice. Unless you make your built-in iSight the camera being used by some open application before you launch Photo Booth, Photo Booth will use ONLY your built-in iSight.
    However, you can use the trick from ¶ 4 of http://docs.info.apple.com/article.html?artnum=302781 to let Photo Booth use your Firewire external  iSight:
    • Connect your external iSight and turn it on.
    • Quit Photo Booth (PB) if it is running.
    • Launch any app with a user-selectable camera "Preferences..." menu command.
     (The "tip" suggests that you use iChat, but others should work as well.)
    • Open "Preferences..." and set the camera "Preference" to use your built-in iSight.
    • Now launch PB. PB should now use the external iSight
     because your built-in camera is in use by the other application.
    (4) For apps other than those above, see their Help or other documentation.
    EZ Jim
    PowerBook 1.67 GHz w/Mac OS X (10.4.11) G5 DP 1.8 w/Mac OS X (10.5.2)  External iSight

  • Simple Question - what are workbooks/sheets?

    I just have a simple question. What are workbooks/worksheets? I read this words in several whitepapers but cant get an answer. I dont have Oracle Discoverer, i just have to make an simple overview of this product for school. Please help me, it stresses me, dont have much time left :( thx

    I just have a simple question. What are workbooks/worksheets? I read this words in several whitepapers but cant get an answer. I dont have Oracle Discoverer, i just have to make an simple overview of this product for school. Please help me, it stresses me, dont have much time left :( thx If you have use excel and know what's an excel wokbook and excel sheet, then you know the answer. If you Don't, then a workbook it's a sheet container. And sheets are each of the reports/queries that you have in a workbook.
    And from the Discoverer manual, in the Glossary:
    Workbook: "One or more sheets created and saved together. Each sheet is displayed in a sepa-rate tab in the workbook."
    sheet : "A tab in the workbook window. A sheet displays the results of one or more queries."
    Hope this helps

  • Re: add-ons. Just a simple question I couldn't find an answer to. Is the term "uninstall" equivalent to "remove the software from the computer"?

    I downloaded a You Tube downloader, and expected an icon to come up when You Tube was playing, according to a friend's advice.
    Since this didn't happen I assumed the download didn't work, or was an old version that doesn't work anymore. I wanted to just get rid of it and try another downloader.
    I went to Tools--> Add-ons--> and clicked on the downloaded software and saw the 2 options [Disable] and [Uninstall]. The terminology is unclear, as I've always thought once software resides on your computer you can install it or uninstall it without erasing it from the computer.
    A simple question that seems obvious except to someone who wants to be very precise and sure. Basically "does [Uninstall] mean erase from the computer"?
    Thanks

    With Firefox extensions (Tools > Add-ons > Extensions) you have two possibilities. You can disable an extension if you do not want to use it now, but want to keep it. Or you can uninstall an extension and remove it from the computer. Note that uninstalling an extension still leaves prefs in about:config (prefs.js) and possibly files in the profile folder that will be reused in case you decide to reinstall an extension at a later time.
    See also http://kb.mozillazine.org/Uninstalling_add-ons

  • Probably incredibly simple question, so sorry. I have just changed e-mail after many many years and I want to e-mail everyone in my mac mail client with the new e-mail address at the same time.

    Probably incredibly simple question, so sorry. I have just changed e-mail after many many years and I want to e-mail everyone in my mac mail client with the new e-mail address at the same time.

    If you are using Address Book, open it, create a new Group, select all you contacts by click the top one while holding down the shift key and then select the last one. Drag the contacts to the group, then send an e-mail to the group.

  • Really?  All Adobe has for customer service is a forum?  I have a simple question.  Can't just contact someone?  Are you that cheap?

    really?  All Adobe has for customer service is a forum?  I have a simple question.  Can't just contact someone?  Are you that cheap?

    Not to be critical, but in the time you have waited to find out how to contact Adobe you probably would have had your question answered by someone here on the forum. Many times people have been given bad information when they have found a way to contact Adobe. Much of the so-called technical support has been outsourced overseas. And the people manning the phones have no experience with Adobe products. So you can complain some more. Or, you can ask your question. It's your choice.

  • Just a simple question, before deciding to switch

    Uhhh, yeah, I've been considering an Apple for a while, and I've pretty much made up my mind, but I had a simple question. I've been with Windows ever since I began with computers, and as long as I can remember, there's been Paint. Does Mac OS X come with anything like Paint?

    Uhhh, yeah, I've been considering an Apple for a
    while, and I've pretty much made up my mind, but I
    had a simple question. I've been with Windows ever
    since I began with computers, and as long as I can
    remember, there's been Paint. Does Mac OS X come
    with anything like Paint?
    Prior to the new release of MacBooks and Intel iMacs, the Mac was accompanied by Appleworks which has a fine paint program among many other productivity suite applications. You would find it very comfortable to use if you were used to the Windows Paint program because they are much alike.
    Unfortuantely Apple doesn't include it on the new MacBooks or on the iMacs today but that is not to say you can't get ahold of a copy and install it on your new MacBook. Installing programs on a Mac is *sooooo much easier* to do then on a Windows machine and *sooo much easier* to remove (you just drag them to the trash can).
    When you get your new Mac you can buy a copy of Appleworks from Apple ( take a look: http://www.apple.com/appleworks/ ).
    Hope this helps!
    Tim...
    20" Intel iMac 2GRam/500G-HD, 13" BlackBook 2GRam/120G-HD, Black Vid iPod 60Gig   Mac OS X (10.4.6)  

  • Just a noobie question...

    Hello everyone. I am rather new to Weblogic, so there is still a lot of learning out there for me to do. I have a rather simple question which I am sure someone should be able to answer.
    When looking inside of a JNDI tree, I see the purple ball means bound objects. Does red mean unbound or something else. Does anyone have a link for me that I could read to see how to understand the JNDI tree a little bit more.
    Thanks.

    One project, multiple sequences.

  • Just simple question about java HTTP session mechanism...

    I have one simple question regarding the java HTTP Session Mechanism.
    1) Is there another alternative for the HTTP Session ? If have, what the alternative?
    2) I have been acknowledge that HTTP session is same as cookie system and others say have many different, where is the different..
    thanks

    1) You can always do your own session handling. But why bother when there is one there for you?
    2) The issue with sessions is how to identify the user from the request. Each session gets given a session id. The user has to send that session id with every request they make.
    The standard way is to use a session cookie, which only lasts as long as the browser session. The cookie with the JSESSIONID is sent with every request, thus the server can identify which session a user is in from their cookie.
    Of course you cannot assume that the browser will support cookies, so you need to encode all URLs with the method response.encodeURL(). That method puts the session id into the URL if the browser does not support cookies, or they have them switched off.

Maybe you are looking for