How do i write that in code??
Type: Posts; User: darkmoon3009
How do i write that in code??
i have added has next so it looks like this :
public void readFile()
{
while(m.hasNext())
{
for(int i = 0; i < 14; i++)
{
Map[i] = m.next();
}
I don't understand how to put this method into my code. im still a beginner. If you could tell me where it would go into the code and/or what to put. Thanks!
i added this as the constructer
public Map()
{
ImageIcon img = new ImageIcon("C://Noah's World//dirt.png");
dirt = img.getImage();
img = new ImageIcon("C://Noah's World//wall.png");...
Maze.java
import javax.swing.*;
public class Maze
{
public static void main(String[] args)
{
JFrame mainframe = new JFrame();
Maze.java
import javax.swing.*;
public class Maze
{
public static void main(String[] args)
{
JFrame mainframe = new JFrame();
mainframe.add(new Board());