1

我在下面的代码中不断收到多个标记错误,在 readData 函数中也是如此。

public static void writeData(OutputStream os) throws IOException
{
        DataOutputStream out = new DataOutputStream(new BufferedOutputStream(os));
        for (int x = 0; x < 10; x++)
        {
            int random = (int)(Math.random() % 100) + 1;
            out.writeChars("Random value = " + random);
        }
        out.flush();
        out.close();
}

多个标记意味着存在不止一个错误......但我无法解决问题......

4

0 回答 0