Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please rewrite this java code into simpler way to write if because i don't understand stuff likethis. etc. I wrote the instruction in capital letter

please rewrite this java code into simpler way to write if because i don't understand stuff like"this." etc. I wrote the instruction in capital letter in comments image text in transcribed
import java.util. Vector; public class Rewrite { static class cell int x, y: int dis; public cell(int x, int y, int dis) { //PLEASE REWRITE all the "this." because i dont understand it, simplify it into regular viables this.x = x; this.y = y; this.dis = dis; //PLEASE REWRITE THIS ENTIRE VECTOR WITHOUT USING VECTOR BECAUSE I DON'T UNDERSTAND VECTOR Vector q = new Vector(); //PLEASE REWRITE "q.add" into easier version, i dont understand what is it" q.add(new cell(knightPos[0], knightPos[1], 0)); //line 47

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

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

Determine miller indices of plane A Z a/2 X a/2 a/2 Y

Answered: 1 week ago

Question

a. How will the leader be selected?

Answered: 1 week ago