Is it possible to create 2 Date objects with different hashcode.

Hi,
I want to create 2 java.util.Date objects with different hashcodes. Is it possible??
Regards,
Farooq

import java.util.Date;
import java.util.Calendar;
public class TwoDates {
    public static void main(String[] args) {
        Calendar oneCal = Calendar.getInstance();
        oneCal.set(Calendar.YEAR, 1903);
        Calendar anotherCal = Calendar.getInstance();
        Date oneDate = oneCal.getTime();
        Date anotherDate = anotherCal.getTime();
        System.out.println(oneDate.hashCode() + " " +
                           anotherDate.hashCode());
-14330615 -825112150

Similar Messages

  • Is it possible to create a customer master with different address

    Hi Gurus,
    Is it possible to create a customer master with different address as we maintain in SAP CRM.
    Kindly help me onthis issue \
    Regards
    Kannan

    Hi Kannan,
    There are no multiple addresses but you can use multiple unloading ponts for the same address for the ship to Party.
    So when you create a Sales order the system will give a pop up with the unloading points allowing you to select the desired one.
    I hope I understand your query correctly.
    Regards
    Yogesh

  • How to create a date object with a specific time?

    How can I create a date with today's date but with a specific time, say: 20:00:00?
    Thanks in advance.

    Don't forget about those pesky milliseconds!I'd have gotten away with it too.. if it hadn't been
    for that pesky BigDaddyLoveHandles.I'm in top form today. On the drive in to work I managed to
    push two scooter riders off the road and gave the finger to
    a Prius owner.

  • Is it possible to create a multi provider with different info providers?

    hi all,,
    Can anyone let me know is it possible to create multi-providers from different info providers.
    thanxs
    haritha

    Hi..
    An infoprovider is an SAP BW object you can use to create and excute queries .  Info providers include  objects that physically  contain  data ,  for expale ... data target  like info cube ,  ods onjects , and info objects  ( char , att, text or hier ..)
    They also include objects   that do not represent physical data storgae :
    Remote cubes ,  sap remote cubes . and multiproviders.
    info providers are objects or views relevant to reporting ..
    info providers can include
    info cubes ( basic cubes and virtual cubes )
    ods
    char obj ( with attt or text )
    info set
    multiproviders
    with regards,
    hari

  • Is it possible to create a subscription page with different options for blog, newsletter, product announcements, training events, etc?

    I would like to create a subscription page for my Muse site with different subscription choices, but I am not sure if it is possible or, if it is how I should construct it. Any ideas?

    Hi
    This can be done from hosting platform end. If you are using Business Catalyst to host your site , then you can use events module, campaign subscriptions , secure zone subscriptions etc.
    You can create the events/announcements on BC end and then add the module in Muse page which on publish will show the modules on page.
    Thanks,
    Sanjit

  • Creating View Object with different criteria

    Hi,
    I have a requirement to execute the following queries in the application logic. We have YEAR table with mileage rates with different effective dates. If the service date is greater than any of the existing effective dates we need to get the rate with that effective date. if the service date is less than the existing effective dates, then we have to get the rate with least effective date.
    SELECT mileage_rate, ... FROM year
    WHERE eff_date =  (SELECT MAX(eff_date) FROM   year WHERE  eff_date <= :bServiceDate)
    SELECT MILEAGE_RATE, .... FROM YEAR WHERE
    EFF_DATE =  (SELECT MIN(EFF_DATE) FROM YEAR)
    We have to execute the 1st query and if there is no matching records then we have to take the second query with min effective date. At present we are creating two view objects for the above scenario. Is there any possibility to create one view object with different criteria. What is the best solution to handle the above problem in ADF.
    Thanks and Regards,
    S R Prasad

    Well on the ViewObjectImpl you can fire the method getQueryHitCount() passing in the required ViewRowSetImpl. If you get the query hit count as 0, use can attached the other query and execute it.

  • Is it posible to create objects with different names dinamically?

    Hi,
    I'm creating an app that manages different wireless nodes in a network and I was thinking that I could create a class called Node which would have a constructor that every time I created an object Node, I would pass the address and some other data about the Node and the constructor will save all that data and also create a unique ID for every Node object.
    Now the problem is that I need to be able to discover all the nodes in my network every time the user clicks a Ping button. So every time the users clicks Ping I need to do a ping and create as many Node objects as nodes I have in my network. The thing is I don't know how to make it create the node objects with different names so after I've created all the nodes objects I can refer to one of them.
    Something like this.
    int Id=0;
    id++;
    Node node+Id = new Node();
    I think its not possible to do something like that. If it isn't how can I do to refer to one of the objects I've created?
    Thanks.

    Twistx77 wrote:
    Thanks to both of you. I'll check out the Link and if I can't find the solution there I'll make the array , I don't know how I didn't think about doing that. There are two collections you should study specifically:
    First you have the ArrayList which in essense is a growable array. This means you don't have to decide in advance how big it can be.
    Second there's the HashMap. It's sometimes called an associate array. Such an array doesn't have fixed position indexes like an ordinary array. Instead each index (called key) is associated with a value but the keys don't have any particular order. Still, given a certain key, finding the corresponding value in a HashMap is almost as fast as an array access.

  • Is it possible to create a Report Object in a menu?

    Hi all,
    I 'm working on an oracle report wherein the user will not give any parameter.
    They would like to view the report by clicking on the menu option for this report and it should then open the report in an new browser window
    in pdf format.
    My question:
    Is it possible to create a report object in the menu?how can we do this?
    I'm working on Oracle reports version Report Builder 10.1.2.0.2
    TIA

    Thanks for your prompt reply.
    Through form I'm able to create report object and report is displayed successfully.
    I'm using the following code:
    DECLARE
              report_id Report_Object;
              ReportServerJob VARCHAR2(100);
              rep_status VARCHAR2(50);
    BEGIN
              report_id:= find_report_object('Report1');
              SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'vouno='||:vouno||' paramform=no');
              ReportServerJob:=run_report_object(report_id);
              rep_status:=REPORT_OBJECT_STATUS(ReportServerJob);
              WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
              LOOP
                        rep_status := report_object_status(ReportServerJob);
              END LOOP;
              IF rep_status = 'FINISHED' THEN
              WEB.SHOW_DOCUMENT('http://sushma:8889/reports/rwservlet/getjobid'||
              substr(ReportServerJob,instr(ReportServerJob,'_',-1)+1)||'?'||'server=rep_sushma','_blank');
              ELSE
                        message('Error when running report');
              END IF;
    END;
    I'm not able to use the same code in Menu, as there is no way to create report object "Report1"
    Or is there any was to create object.
    So in place of report_id:= find_report_object('Report1');
    I used report_id:= find_report_object('c:\.... *.RDF');

  • Is it possible to create a rotating object in Muse?

    Is it possible to create a rotating object in Muse? I have a round logo and I want it rotating.

    HI
    If you are looking for an animated logo, which rotates in 360 degree, it is not possible in Muse. You can create an animation in Edge animate and import the animation in Adobe muse.,

  • Creating a Date object using an existing date object of different format

    I am stuck in a problem while converting the date formats:
    I have a date object in the format "yyyy-MM-dd" (e.g., 2009-08-21). And i want to create a date object in the format "MM/dd/yyyy" (e.g., 08/21/2009)
        String s = oldDate.toString(); SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy"); Date newDate = formatter.parse(s);
    the above code gives parse Exception:
        java.text.ParseException: Unparseable date: "2009-08-21"
    Any Clues ?
    Edited by: Rahul.Mittal on Aug 21, 2009 10:09 AM
    Edited by: Rahul.Mittal on Aug 21, 2009 10:12 AM

    my apologies for putting it into a wrong forum. Anyways thanks for the pointer.
    But i still feel that if i somehow get the desired Date object i can get through the problem. Something like this:
         public Date getdOJ() {
              Date oldDate = this.dOJ;
              SimpleDateFormat oldFormatter = new SimpleDateFormat("yyyy-mm-dd");
              Date newDate;
              try {
                               String s = oldDate.toString();
                               SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
                               Date newDate = formatter.parse(s);
              } catch (ParseException e) {
                   e.printStackTrace();
              return newDate;
         }Unfortunately i am getting java.text.ParseException

  • Create a infocube object with function module

    Hi,
    Is it possible to create one infocube object via rfc call? If yes, could you pls give me an example how to do it? Many thanks.
    regards,
    Hai

    Hi Julian,
    I couldn't work out how to do this either, so I did it using the oracle.express.spl.SPLExecutor class and sending Express commands to create a program.
    Let me know if you want to see some sample code.
    Cheers,
    Mark...

  • Not able to create a Data source with qty filed in the table

    Hi i am having scenario.
        i am doing a Genric R/3 extraction for R/3 system. I created a view from two tables. I have added a net quantity field also in then view table. But when i created a data source for that view it is showing a error message which says that it cannot create a data source with a quantity field in the table.
    Here is my question. How to create a Data Source for a view table which has Qty filed in it.
    Pls help with this.
    Senthil

    Hi Sensai,
       U need to add reference table for the unit .... when added into the view u create .......the reference table name u can find in the table itself from where it is brought into the view.... in the table currency quantity fields........
    U can add that table in the currency /quantity fields of the view....u need to add referecne field and table...and activate ........
    i think it works
    Regards
    vamsi

  • Oracle Forms - How can I create a Data Block with query

    Dear friends I have a question, I couldn't do this..
    I have a sql query, I want to show the datas of the query.. How can I do this. ?
    Data Block Wizard wants a table, view or stored procedure, but I have a query, how can I create a data block with my query.. I m waiting your helps..? Please...
    Semih

    Hi,
    You have two options
    1. create a view and base the block on the view
    2. create a block with a query Data Source Type of 'FROM clause query'
    Hope this helps
    Neil

  • Is it possible to create a customized survey with our organizations logo at the top?

    Is it possible to create a customized survey with our organizations logo at the top? I'm trying to create a survey for our members but instead of using a template we would like to use something simple with our logo included at the top.

    Just create a blank form and click Add Header at the top of the form page:

  • Is it possible to create a Clone database with the same name of source db ?

    Is it possible to create a Clone database with the same name of source db using RMAN ...
    DB version is 11.2.0.2
    Is it possible to clone a 11.2.0.2 database to 11.2.0.3 home location directly on a new server . If it starts in a upgrade mode , it is ok ....

    user11919409 wrote:
    Is it possible to create a Clone database with the same name of source db using RMAN ...
    yes
    >
    DB version is 11.2.0.2
    Is it possible to clone a 11.2.0.2 database to 11.2.0.3 home location directly on a new server . If it starts in a upgrade mode , it is ok ....yes
    Handle:     user11919409
    Status Level:     Newbie (10)
    Registered:     Dec 7, 2009
    Total Posts:     102
    Total Questions:     28 (22 unresolved)
    why do you waste time here when you rarely get any answers to your questions?

Maybe you are looking for

  • Flex 2-14 keyboard sensitivity when clicking on the edge of button

    Hi I own a new FLEX 2-14 Ultrabook. I have a problem with some keys on the keyboad. When I typing fast, I sometimes clicking on the edge of the letter button on the keyboard. For most button there's no problems at all, but for very few buttons, such

  • Restricting Null Values in the report

    Hi All, I have a aggregated feild displayed in the bottom of the report and sorted on the report on that field to show me top results. When I try to run the report, Null values are coming first in the report (Displayed as NaN). I want to restrict the

  • Photostream folder disappeared in iOS 8, along with all my photos in that folder. Please help!

    Hello, I just upgraded my iPhone 5 to iOS 8. I only had about 20 photos stored on my phone, and about 100 photos in my Photostream. After updating to iOS 8, I cannot find any of these photos that were in my Photostream, and cannot even find that fold

  • Broad band on line billing

    I can see my phone account online yet I was told I could see my broadband usage and bill on line. Been going mad here have tried every thing and looked for help about it but there is no info anywhere to help me. all i need to know is where and how.

  • Adobe Auto Updater not connecting

    Hi We have recently installed Microsoft ISA 2006, and since then we can not download updates. I have searched for the update path and found http://swupmf.adobe.com/manifest/50/win/AdobeUpdater.upd but this still does not allow access, also added *.ad