Question: Can somone help me out with this assignment ? The book is 6th Edition Datat Structures and Algorithms! Restrictions: You cannot use any methods from


Can somone help me out with this assignment ? The book is 6th Edition Datat Structures and Algorithms!
Restrictions: You cannot use any methods from the Java Array(s) class to copy an array, check for equality, or otherwise manipulate an array. You must write the Java code to perform these functions. The above restrictions do not apply to any of the classes copied from the textbook. In this project you will be doing the following: Create a NetBeans project named lab06 and import it into your pair's shared subversion repository folder. In the project you will do the following Create a class named LuckyNumber that has the following instance variables - String int name luckyNumber This class should only have a single overload constructor that: - takes a single parameter, name - automatically assigns luckyNumber a random number between 0 and 9 (inclusive of both) to the instance being created This class must have the following methods: - getName - get luckyNumber toString o o make sure your toString returns the class name the class name will be useful if you "become lost" in your data structure - equals This class should not have the following methods set name o you are who you are - set luckyNumber o you can't change your luck Restrictions: You cannot use any methods from the Java Array(s) class to copy an array, check for equality, or otherwise manipulate an array. You must write the Java code to perform these functions. The above restrictions do not apply to any of the classes copied from the textbook. In this project you will be doing the following: Create a NetBeans project named lab06 and import it into your pair's shared subversion repository folder. In the project you will do the following Create a class named LuckyNumber that has the following instance variables - String int name luckyNumber This class should only have a single overload constructor that: - takes a single parameter, name - automatically assigns luckyNumber a random number between 0 and 9 (inclusive of both) to the instance being created This class must have the following methods: - getName - get luckyNumber toString o o make sure your toString returns the class name the class name will be useful if you "become lost" in your data structure - equals This class should not have the following methods set name o you are who you are - set luckyNumber o you can't change your luck
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
