Home Answers Viewqa Java-Interview-Questions add tow numbers with out using arthamatic operaters

 
 


mkirankumar
add tow numbers with out using arthamatic operaters
1 Answer(s)      2 years and 3 months ago
Posted in : Java Interview Questions

add tow numbers with out using arthamatic operaters

View Answers

February 4, 2011 at 4:30 PM


Hi Friend,

Try this:

import java.math.*;
class AddNumbers 
{
    public static void main(String[] args) 
    {
        BigInteger num1=new BigInteger("100");
        BigInteger num2=new BigInteger("50");
        BigInteger result=num1.add(num2);
        System.out.println(result);
    }
}

Thanks









Related Pages:
add tow numbers with out using arthamatic operaters
add tow numbers with out using arthamatic operaters  add tow numbers with out using arthamatic operaters
adding two numbers with out using any operator
adding two numbers with out using any operator  how to add two numbers with out using any operator   import java.math.*; class AddNumbers { public static void main(String[] args) { BigInteger num1=new
Add Complex Numbers Java
How to Add Complex Numbers Java In this Java tutorial section, you will learn how to add complex Numbers in Java Programming Language. As you are already aware of Complex numbers. It is composed of two part - a real part and an imaginary
Numbers
commonly using the type int) and binary floating-point numbers (most commonly using... out more about the dark corners of floating-point numbers and Java... Java NotesNumbers Two kinds of numbers. There are basically two kinds
Display tow dimensional array using one for loop in java
Display tow dimensional array using one for loop in java  Display tow dimensional array using one for loop in java
In and Out parameters - SQL
In and Out parameters  What are in and out parameters in stored proedures for MySqldatabase.How to give 2 numbers as input and add those 2... the procedure. Try this to add two numbers: DELIMITER $$ CREATE
Display tow dimensional array by matrix form using one for loop in java
Display tow dimensional array by matrix form using one for loop in java  Display tow dimensional array by matrix form using one for loop in java
Applet for add two numbers
); add(text2); label3 = new Label("Sum of Two Numbers...Applet for add two numbers  what is the java applet code for add two numbers?   import java.awt.Graphics; import javax.swing.*; public
add
How to add two int numbers in Java Example  How to add two int numbers in Java Example  Here is a java example that accepts two integer from the user and find their sum. import java.util.*; class AddNumbers
add
How to add two numbers in Java  add two number   Here is a java example that accepts two integer from the user and find their sum. import java.util.*; class AddNumbers { public static void main(String[] args
Add two big numbers
Add two big numbers       In this section, you will learn how to add two big numbers... that takes both numbers. Now, you will have to define it and use the add() method
How to handle Transaction IN and OUT in Inventory using java
How to handle Transaction IN and OUT in Inventory using java  Hi.... And one more thing is Add New OUT Transaction, I have a jsp page where i have all... of 10 SerialNo is scanned and OUT today, In this Add New OUT Transaction page
Calculate the Sum of three Numbers
. In this section you will learn how to calculate the sum of three numbers by using three... Calculate the Sum of Three Numbers   ...; To assign the value of the numbers define a method main. Remember we
convert numbers to strings using JavaScript
convert numbers to strings using JavaScript  How to convert numbers to strings using JavaScript
write an application that print out the even numbers between the range 100-200
write an application that print out the even numbers between the range 100-200   write an application that print out the even numbers between... and determine the even numbers between them. class EvenNumbers { public static
generating random numbers - Java Beginners
as the ones that would have best predicted prices in the past. The weights must add up... and the price.We will evaluate a possible weighting by using it to predict each
Numbers pyramid
Numbers pyramid  Hi sir, Can you please tell me how to output this using nested for loops? 1 2, 1 1, 2, 3 4, 3, 2, 1 1, 2, 3, 4, 5 6, 5, 4, 3, 2, 1 1, 2, 3, 4, 5, 6, 7 8, 7, 6, 5, 4, 3, 2, 1 1, 2, 3, 4, 5, 6, 7, 8, 9 10, 9, 8
javascript add hour to time
javascript add hour to time  I want to add numbers of hours to time. How can I do this using javascript?   <html> <head> <title>Add hours to current times</title> <script type="text/javascript
print 100 numbers using loops
print 100 numbers using loops  how to print from 1 to 100 using for loop ?   Hi Friend, You can use the following code: class Loop...); } } } Thanks   class Numbers { public satic void main
tow method to read and write .
tow method to read and write .  i have two method , frist named "readString" which has no input ,and output b type string ,. second method named "writeString" which accept b as imput and return nothing .........please i want
Add Two Numbers in Java
Add Two Numbers in Java     ... these arguments and print the addition of those numbers. In this example, args.... These passed arguments are of String types so these can't be added as numbers
Is there anyone out there?
Is there anyone out there?  Hi please could somebody respond as I am seeking advice but not getting any and do not know whether or not to continue using this site
Write a java program that prints out the following menu???
using numbers (1,2,3,4,5,6). The menu will be printed again if the user enters another input. Menu : 1. Find min between 3 numbers using (Math.min). 2. Get...Write a java program that prints out the following menu???  Write
<c: out> in JSTL
numbers by using the <c: out> core action tag. The code of the example... Calculation by using c: out</title> </head> <body bgcolor="#FFFFCC"> <h1>Simple Calculation by using c: out</h1>
Write a program to list all even numbers between two numbers
Numbers Example in Java: Here you will learn to write a program for listing out...; in the System method.  As we have to find out all the even numbers... Write a program to list all even numbers between two numbers
Calculate sum of even and odd numbers in Java
Calculate sum of even and odd numbers In this section, you will learn how to read the file that contains even and odd numbers and calculate their sum separately. To do this, first of all, we have found all the even and odd numbers from 1
greatest of 3 numbers using classes and functions.
greatest of 3 numbers using classes and functions.  WAP to calculate greatest of 3 numbers using classes and functions with parameters through input..._VALUE; System.out.println("Enter 3 numbers:"); Scanner input
adding two numbers using bitwise operators
adding two numbers using bitwise operators  adding two integer numbers with using bitwise opeators   Hi Friend, Try the following code: public class AddNumberUsingBitwiseOperators { public static void main(String
prime numbers application
prime numbers application  how to add a comment indicating that the method will determine if a number is a prime number. In the next line add... will be named number. Add a left brace on next line. in the body of the method add
<c: out> For Simple Calculation and Output
;html> <head> <title>Adding numbers by using c: out</title> </head> <body> <h1>Adding numbers by using c... of <c: out>. The attribute value which is a must attribute and by using
add row in grid using dojo
add row in grid using dojo  add row in grid using dojo
dynamically add listener to a SWT widget
dynamically add listener to a SWT widget  hello, I am using SWT...(); } } } }; but how to add... let me know. i have searched on google a lot, but i din't find out the right one
Comparing Two Numbers
of comparing two numbers and finding out the greater one. First of all, name a class "Comparing" and take two numbers in this class. Here we have taken a=24... Comparing Two Numbers      
calling java method from html form with out using javascript - JSP-Servlet
calling java method from html form with out using javascript  How can...;Boo! You entered a string with non-numbers characters");}function... a string with numbers only: </b><br/><input type="text"
add to cart
add to cart  sir, i want to do add to cart to my shopping application each user using sessions. Plz help thnaks in advance
this code gives addition of 2 numbers in j2me..but the code is not executing ..can u pls find out the error...??
this code gives addition of 2 numbers in j2me..but the code is not executing ..can u pls find out the error...??  import javax.microedition.midlet....=new Form("Addtion of two numbers"); // result=new Command("Result
simple javascript validation for numbers
; <title>Mobile number validation using regex</title> <script
JavaScript determine add, product of two numbers
JavaScript determine add, product of two numbers In this section, you... numbers. To find this, we have created two textboxes and four button...; function add(){ var num1=document.form.text1.value; var num2
How to add
How to add   Hi, I want to make a website which will recommend users books according to the genre selected by them. I am using PHP, JavaScript and mySQL. The problem is that there will me almost more than 100 books
Generate array of random numbers
Generate array of random numbers You can generate a random number either by using the Random class or by using the static method Math.random() but it is better to use Random class. If you want to generate a series of random numbers
Random Numbers - shuffling
Java NotesRandom Numbers - shuffling A standard approach to shuffling... is described at the bottom. Shuffling: Random numbers without replacement The random number methods generate numbers with replacement. This means
How to add value from sql server in dropdownlist
How to add value from sql server in dropdownlist  I have created a hospital management project using jsp servlet, where one form name is patient... id from other table like out patient, and this id will be stored dynamically
with out using scanner mul two matrices
with out using scanner mul two matrices  write a java program to multiply two matrices and print there result. note: don't use the scanner and the values is passed at run time....   import java.io.*; class
Out Of Memory Exception Erorr
Out Of Memory Exception Erorr  hello how are you?I hope you are fine I'm using jgrasp program my problem is in java programming my program compiled with no problem but when I run it this exception appears: Exception
adding of two numbers in designing of frame
adding of two numbers in designing of frame  hello sir, now i'm create two textfield for mark1&mark2 from db.how to add these two numbers in another one text field.how to write a coding... if u have another one idea pls
generate random numbers and display the largest
generate random numbers and display the largest  Hi, I am using netbeans so if someone could help me with an answer in that form i'd appreciate it. Write a method to find the largest value in an array. Write a program that takes
Add year to Date without using Calendar in java
Add year to Date without using Calendar in java  how could i add a year to a date function without using calendar functions
Sql add columns
Sql add columns  How to add columns before existing columns. please help me out
print the even numbers between the range 100-200
an application that print out the even numbers between the range 100-200 ? 1- which aer... prints out the even numbers between the range of 100 and 200 and then determine the even numbers which are not divisible by 5 and 7. It also find out the sum of all

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.