I am a beginner in Java programming and I want you to provide me a code of the following steps:
First: create 2-D environment
0 0 0 1 0 0 1 1 0 0
0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 1 0 0 0
1 0 0 1 0 0 0 0 1 1
0 1 2 0 0 0 0 0 0 0
0 0 1 0 0 1 0 0 0 0
0 1 0 1 0 1 0 1 0 1
1 1 0 0 0 0 0 1 0 0
0 0 0 1 0 0 1 0 0 1
0 0 0 1 0 0 3 0 1 0
Where
0 is the path
1 is a wall
2 is the robot
3 is the target
Find the shortest path from 2 to 3 using shortest path algorithm.
Second: create 2-D array of the type (int ) contains only 0 value.
third: Create 2-D array of the type (char) [same as2-D array of the type (int )] Where
N instead of 0
Z instead of 1
T instead of 3
any help!!!