Computer Science  >  STUDY GUIDE  >  LockDataStructureClass.java-REVIEWED BY EXPERTS (All)

LockDataStructureClass.java-REVIEWED BY EXPERTS

Document Content and Description Below

import java.util.*; public class LockDataStructureClass implements LockADT { //Receive User Input Scanner keyboard = new Scanner(System.in); //Instance Variables for the Lock (Combination) priva ... te int x; private int y; private int z; //Instance variable to return number currently at top private int pointer; //Boolean to Lock/Unlock private boolean status; //Default Constructor public LockDataStructureClass() { x = 0; y = 0; z = 0; pointer = 0; status = true; } //Overloaded Constructor public LockDataStructureClass(int x, int y, int z) { this.x = x; this.y = y; this.z = z; } //Set the First Number public void setX(int x) { this.x = x; //Assign value of X to Pointer pointer = x; } //Set the Second Number public void setY(int y) { this.y = y; //Assign value of Y to Pointer pointer = y; } //Set the Last Number public void setZ(int z) { this.z = z; //Assign value of Z to Pointer pointer = z; [Show More]

Last updated: 3 years ago

Preview 1 out of 4 pages

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)
Preview image of LockDataStructureClass.java-REVIEWED BY EXPERTS document

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Reviews( 0 )

$7.00

Buy Now

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Instant download

Can't find what you want? Try our AI powered Search

57
0

Document information


Connected school, study & course


About the document


Uploaded On

May 28, 2021

Number of pages

4

Written in

All

Seller


Profile illustration for d.occ
d.occ

Member since 4 years

232 Documents Sold

Reviews Received
30
8
4
1
7
Additional information

This document has been written for:

Uploaded

May 28, 2021

Downloads

 0

Views

 57

Document Keyword Tags

Recommended For You

Get more on STUDY GUIDE »

$7.00
What is Scholarfriends

Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·