Purchase Solution

Java 2 - Numbers

Not what you're looking for?

Ask Custom Question

Create an application named Numbers whose main () method holds two interger variables. Assign values to the variavles. Pass both variables to methods named sm () and difference (). Create the methods sum () and diffference (); they compute the sum of and difference between the vlues of two arguments, respectively. Each method should perform the appropriate computation and display the results. Save the application as Number.java

Add a method named product () to the Numbers class. The product () method should compute the multiplication product of two integers, but not display the answer. Instead, it should return the answer to the calling method, which displays the answer. Save as Numbers2.java

Purchase this Solution

Solution Summary

This solution contains an application that manipulates variables using different methods.

Purchase this Solution


Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.