Java - Package woes
<p>I'm not new to Java but I never learned Packages. Anyways, let's say I create a folder called <code>maina</code>.</p>

<p>I put in file <code>main.java</code> in folder <code>maina</code>:</p>

<pre><code>package maina;

import other.Dice;

public class main
{


    public static void main(String[] args)
    {

        System.out.println("Hello world!");
        System.out.println(Dice.test);
    }
}
</code></pre>

<p>Then I create a new folder called <code>other</code> inside the folder <code>maina</code>. In folder <code>other</code> I put file <code>Dice.java</code>:</p>

<pre><code>package other;

public class Dice
{

public Dice() {

        String test = "Testing!";
    }

}
</code></pre>

<p>OK, now <code>Dice.java</code> compiles fine. 
However when I compile <code>main.java</code> I get this error:</p>

<pre><code>C:\Users\tekaffi\Documents\ask\maina\main.java:13: cannot find symbol
symbol  : variable test
location: class other.Dice
        System.out.println(Dice.test);
                               ^
1 error

Tool completed with exit code 1
</code></pre>

<p>What am I doing wrong?</p>

<p>Here's the error I get when I compile:</p>

<pre><code>C:\Users\wekaffi\Documents\ask\maina\myMain.java:3: package maina.other does not exist
import maina.other.Dice;
                  ^
C:\Users\wekaffi\Documents\ask\maina\myMain.java:13: cannot find symbol
symbol  : class Dice
location: class maina.myMain
        Dice myDice = new Dice();
        ^
C:\Users\wekaffi\Documents\ask\maina\myMain.java:13: cannot find symbol
symbol  : class Dice
location: class maina.myMain
        Dice myDice = new Dice();
                          ^
3 errors

Tool completed with exit code 1
</code></pre>
