readCharArray() Method is not working
<p>I have a problem with a method which i want to use to read a complete line of characters.</p>

<p>First of all i'm using the following package for my method:</p>

<pre><code>package chararray;

import java.util.*;
import java.util.regex.*;
import java.text.*;

public class Console
{
 private static Scanner sc;  
 private Console()
 {  

 }   

 public static char[] readCharArray() 
  throws NoSuchElementException, IllegalStateException
 {
    sc = new Scanner(System.in);
    String text = sc.nextLine();
    return text.toCharArray();
 }   

}
</code></pre>

<p><br/></p>

<p>And that's the main code where i include the package. My compiler (BlueJ) is telling me: "incompatible types - found char[] but expected char". But normally my method should work for char[]? Any suggestions what i'm doing wrong here?</p>

<pre><code>import chararray.Console;

public class kundenverwaltung
{
    public static void main (String args[])
    {
        int nk;

        System.out.print("Wie viele Kunden möchten Sie erfassen?: ");
        nk = Console.readInt();

        char [][] kundenregister;
        kundenregister = new char [nk][4];

        for (int i = 0; i &lt; nk; ++i)

        {
            System.out.print("Kundennummer: ");
            kundenregister [i][0] = Console.readCharArray();

            System.out.print("Name des Kunden: ");
            kundenregister [i][1] = Console.readCharArray();

            System.out.print("Vorname des Kunden: ");
            kundenregister [i][2] = Console.readCharArray();

            System.out.print("Adresse des Kunden: ");
            kundenregister [i][3]  = Console.readCharArray();

        }      

    }

}
</code></pre>
