Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA The needed class name is GamePlay. It has 3 attributes. One attributes name is bond1 and another attributes name is bond2. Both are required

JAVA

The needed class name is GamePlay. It has 3 attributes. One attributes name is bond1 and another attributes name is bond2. Both are required to store the nickname of each player. The other attribute is winner, which is the winner information of the game played between bond1 and bond2 players in the integer data type, 1 indicating bond1, and 2 indicating bond2. All attributes must be initialized in a constructor, bond1 as your first name, bond2 as the first name of your best friend and winner as 1 when bond2 is male, or 2 when bond2 is female. Two methods, whoIsRealJamesBond and main, are required. The Who IsRealJamesBond method has no parameter and no return. If winner is I then, the method displays the message Computer, tell the world that James Bond is your first name us9ng System.out.println() statement with an attribute, else display the message Computer, tell the world that James Bond is first name of your best friend The method main with no return and String[] args parameter should be build to run this program.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 14th East European Conference Adbis 2010 Novi Sad Serbia September 2010 Proceedings Lncs 6295

Authors: Barbara Catania ,Mirjana Ivanovic ,Bernhard Thalheim

2010th Edition

3642155758, 978-3642155758

More Books

Students also viewed these Databases questions