Mathematical calculation with out using operators

i am beginer of java.my sir was asked to try out problem.
perform mathematical calculation without using arthematic operators.

How about this example:
import java.math.BigInteger;
public class MathWithoutOperators {
    public static void main(String[] args) {
        BigInteger x = new BigInteger("12");
        BigInteger y = new BigInteger("54");
        BigInteger z = x.add(y);
        System.out.println(z.toString());
}See the API documentation of class java.math.BigInteger for more.

Similar Messages

  • How Achieve timedseries calculations with out using AGO And ToDate function

    Hi,,
    1)
    How Achieve timedseries calculations with out using AGO And ToDate functionion
    this question asking in interview ..is it possible..?
    if yes please response as soon as possible..
    2) i have 2 cloumns Product and value...
    client requirement is they need ranks based on Value ..in dashboard .using dashboard prompt..edit box...if user enter any number (ex :5 ) report should show top 5 ranks if he enter 20 should be top 20 ranks..
    how to achive this ?
    thanks,
    raj

    Consider yor first question:
    1. Yes, we can create timeseries measures without using AGO and TODATE
    1. Create ALIAS of fact tabe in the physical layer
    2. Join the Time id from the ALIAS fact table with the YAGO_MONTH_ID column from your time dimension table (For calculating Year Ago variants) similarly join with MAGO_MONTH_ID column for Month Ago measures.
    3.Pull the ALIAS tables as an additional Logical table source in the Lgical layer
    4.Keep the mapping of the columns from the ALIAS table as its is
    5. For e.g If you pick Revenue from the Year Ago Alias table it will give you the "Prior Year Revenue"
    See if this helps you

  • I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    Here's a quick example I threw together that generates a sort-of-bell-curve shaped data distribution, then performs the binning and plotting.
    -Kevin P.
    Message Edited by Kevin Price on 12-01-2006 02:42 PM
    Attachments:
    Binning example.vi ‏51 KB
    Binning example.png ‏12 KB

  • Additions with out using arithematical operators

    HI i have problem in java programming thatis how can i do additions and substractions with out using + ,-*(arithematical operators) in java

    make a guess
    its most probably home work
    But one has to wonder why this question is in the servlet forum

  • Develope a report with out using alv

    REPORT OBJECT:
          The report to list the material quantities returned because of breakage or expiry date or for any other reason.for material the quantities are summed up
    under expiry quantity ,breakage  and other quantity for a particular month.
           above mentioned is the object of my report .
          please help me any one to develop the report with out using   ALV'S.

    Hello Pravardhan
    Your requirements are definitely demanding for an ALV list because all the calculations can be done by the user himself without any programming. The only thing you need to do is to collect all necessary data. In addition, all criteria for calculating subtotals/totals (e.g. month) must be available as separate column on the ALV list.
    This is reasonable programming, anything else not. If the users have an ALV list they can easily adjust the layout to their specific needs without calling for a developer.
    We should always develop our programs with a <b>strong focus on the user's perspective</b>.
    Regards
      Uwe

  • How do I view ipod music files with out using I tunes?

    I trying to view my Ipod music files without using itunes. But when I conect my Ipod to my pc I can only view contacts, notes, and caladar through the driver.
    How do I view ipod music files with out using I tunes?

    they should be under ur my music folder if u have windows

  • Adding data file with out using  brtools /sapdba

    Hi all,
    How to add data file to table spaces with out using  brtools /sapdba.Please let meknow.
    Satya.

    why would you do that? whats your requirement?
    You can use sql commands (I prefer doing it via brtools),
    example
    alter tablespace <name of the tablespace> add datafile '<path of the datafile>' size <size in Mb>M autoextend <on/off> next <size> maxsize <size>;
    regards
    Juan

  • Is it possible to transfer music between iPhones and iPods with out using iTunes

    Is it possible to transfer music between iPhones and iPods with out using iTunes

    Nope.  Both require iTunes on a computer to sync music from.
    Unless the iPod is an iPod Touch and the music was bought from iTunes.  In which case the Touch can simply go to the iTunes App, under Purchased  and download the purchased songs for free.

  • Can i connect a external hard drive to apple tv 3 generation, for see my movies itunes with out use streaming or icloud?

    can i connect a external hard drive to apple tv 3 generation, for see my movies itunes with out use streaming or icloud?  in apple tv 3 and 2?
    That  i want to know is i can connect a external hard drive to apple tv, for see my movies that i keep in my external hard drive,  i dont want to see then  whit the streaming and icloud, or used my  laptop o pc for access de movies and stuff.
    i put iny spanish to, because i feel my english is not so good, but i hope you understand me.
    if i can´t  connect a external hard  drive, wich others media players divices you know that can see itunes movies?
    ¿quisiera saber si se puede conectar una memoria externa al apple tv, para ver el contenido de itunes que tengo guardado en esa memoria como peliculas, ect?
    lo que no quiero es usar  la icloud, o el servicio streamig para ver mi contenido, ni tener que usar la computadora para ver mi contenido el la tv?
    y de no poderse conectar  que otros dispositivos media pleyer conoces para ver peliculas de itunes  en la tv?

    Welcome to the Apple Community.
    can i connect a external hard drive to apple tv 3 generation
    Unfortunately not.

  • How can i get new apple id with out using credit card or visa card

    how can i get a new apple id with out using credit card or visa card?

    Hi xianlycier06,
    If you are looking to create an Apple ID without using a credit card, you may find the following article helpful:
    Apple Support: Creating an iTunes Store, App Store, iBooks Store, and Mac App Store account without a credit card
    http://support.apple.com/kb/HT2534
    Regards,
    - Brenden

  • With out using IDX2.....in file to idoc scenario

    Hi Masters,
                       i have one doubt .. Can i send normal file from sender system to sap system in the form of idoc.. with out using IDX2...
    if it is possible then plz explain me about the steps .. and also explain me wht is the actual use of IDX2 .. as wel as IDX1,,
    if u say in IDX2 we have to load the metadata of the idoc .. then we already uploaded the structure of the idoc in XI system ... then why we are using again IDX2 to load the metadata. i have full confusion now .. plz explain me in details ..
              hoping for quick response ..
                   Thanks in advance ,
                       jp.

    Hi,
    You can send an idoc to SAP system through XI without using IDX2. When u send an Idoc through XI, the metadata will be automatically loaded in Idx2.
    IDX1 is used for creating a port in XI for Idoc. This port will be responsible for loading the metadata.
    Also have a look at this:
    Importance of IDX1
    Regards,
    Divija.

  • How to include Logs/log4j in SOA with out using java embedding activity

    Hi,
    I have a requirement where I need to log the values of a particular variable and need to store it in a new log file. Is there any way to log the details with out using java embedding activity.
    Thanks,

    You can try this.
    http://veejai24.blogspot.co.uk/2008/04/simple-way-to-implement-log4j-in-your.html
    Thanks,
    Vijay

  • With out using pivot function need a Query

    Hi
    I am having table which has 7 columns
    data in table:
    ID,Region,area, year-month,  sales_target, actual_sales,
    1, abc,    xyz,   200907,       1000,          500
    2, abc,    pqr,   200908,       2000,         1500
    3, mnr,   xyz,   200907,       3000,          2000
    I need the data in year and  month with out using pivot funtion
    intial
    region, area,    jul,   aug, sep, oct .......jun
    abc,     xyz,    1000,0,     0,    0...         0
    actual
    region, area,    jul,   aug, sep, oct .......jun
    abc,     xyz,    500,   0,     0,    0...         0Thanks

    Here it is
    with d as ( select 1 ID, 'abc' Region, 'xyz' area, 200907 yearmonth,  1000 sales_target, 500 actual_sales from dual
    union all   select 2, 'abc',    'pqr',   200908,       2000,         1500 from dual
    union all   select 3, 'mnr',   'xyz',   200907,       3000,          2000 from dual
    select  region, area,
    max(case extract(month from to_date(yearmonth,'yyyymm')) when 7 then sales_target
    else 0 end ) TGT_JUL
    max(case extract(month from to_date(yearmonth,'yyyymm')) WHEN 8 then sales_target
    else 0 end ) TGT_AUG
    max(case extract(month from to_date(yearmonth,'yyyymm')) WHEN 9 then sales_target
    else 0 end ) TGT_SEP
    from d
    group by  region, area
    REG ARE    TGT_JUL    TGT_AUG    TGT_SEP
    abc pqr          0       2000          0
    mnr xyz       3000          0          0
    abc xyz       1000          0          0You can copy and replicate the results for another one - actual_sales.

  • How to cast vector to vector with out using loop. and how to override "operator =" of vector for this kind of condition.

    Hi All How to TypeCast in vector<>...  typedef  struct ...  to class... 
    //how to cast the vector to vector cast with out using loop
    // is there any way?
    //================ This is Type Definition for the class of ClsMytype=====================
    typedef struct tagClsMytype
    CString m_Name;
    int m_Index;
    double m_Value;
    } xClsMytype;
    //================ End of Type Definition for the class of ClsMytype=====================
    class ClsMytype : public CObject
    public:
    ClsMytype(); // Constructor
    virtual ~ClsMytype(); // Distructor
    ClsMytype(const ClsMytype &e);//Copy Constructor
    // =========================================
    DECLARE_SERIAL(ClsMytype)
    virtual void Serialize(CArchive& ar); /// Serialize
    ClsMytype& operator=( const ClsMytype &e); //= operator for class
    xClsMytype GetType(); // return the typedef struct of an object
    ClsMytype& operator=( const xClsMytype &e);// = operator to use typedef struct
    ClsMytype* operator->() { return this;};
    operator ClsMytype*() { return this; };
    //public veriable decleare
    public:
    CString m_Name;
    int m_Index;
    double m_Value;
    typedef struct tagClsMyTypeCollection
    vector <xClsMytype> m_t_Col;
    } xClsMyTypeCollection;
    class ClsMyTypeCollection : public CObject
    public:
    ClsMyTypeCollection(); // Constructor
    virtual ~ClsMyTypeCollection(); // Distructor
    ClsMyTypeCollection(const ClsMyTypeCollection &e);//Copy Constructor
    DECLARE_SERIAL(ClsMyTypeCollection)
    virtual void Serialize(CArchive& ar);
    xClsMyTypeCollection GetType();
    ClsMyTypeCollection& operator=( const xClsMyTypeCollection &e);
    ClsMyTypeCollection& operator=( const ClsMyTypeCollection &e); //= operator for class
    void Init(); // init all object
    CString ToString(); // to convert value to string for the display or message proposed
    ClsMyTypeCollection* operator->() { return this;}; // operator pointer to ->
    operator ClsMyTypeCollection*() {return this;};
    public:
    vector <ClsMytype> m_t_Col;
    //private veriable decleare
    private:
    //===================================================
    ClsMytype& ClsMytype::operator=( const xClsMytype &e )
    this->m_Name= e.m_Name;
    this->m_Index= e.m_Index;
    this->m_Value= e.m_Value;
    return (*this);
    //==========================Problem for the vector to vector cast
    ClsMyTypeCollection& ClsMyTypeCollection::operator=( const xClsMyTypeCollection &e )
    this->m_t_Col= (vector<ClsMytype>)e.m_t_Col; // how to cast
    return (*this);
    Thanks in Advance

    Hi Smirt
    You could do:
    ClsMyTypeCollection* operator->() {
    returnthis;};
    // operator pointer to ->
    operatorClsMyTypeCollection*()
    {returnthis;};
    public:
    vector<ClsMytype>
    m_t_Col;//??
    The last line with "vector<xClsMytype>
    m_t_Col;". It compiles but I doubt that is what you want.
    Regards
    Chong

  • Payment to Vendor by bank transfer with out useing APP

    Dear all,
    I of our Client has issue-- that i want post a wire transfer to vendor with out using APP.
    thanks & regards
    krishna reddy

    Hi Rajendra
    1. You need to check with your client which bank they are going to use
    2. Check with the Bank the file format they are looking for - XML or TXT, etc
    Also ask them the contents of the file, the fields they want in it and how they must be populated
    3. Ask them if they are going to provide you a program to generate the file.. Some banks like CITI do provide
    4. If they dont provide, you may have to write your own program to generate the TXT file
    XML files can be generated using DMEE (Payment Medium Work Bench)
    5. Once file is generated, you need to transmit it to the Bank
    6. Before transmission, you may have a 3rd party vendor to do the file encryption
    Br. Ajay M

Maybe you are looking for