无效的表达式术语'out' [英] Invalid expression term 'out'

查看:134
本文介绍了无效的表达式术语'out'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这方面有点新意,我有这个错误

有人能告诉我这是什么意思吗? -

无效的表达式术语''out''和

标识符预期; ''out''是关键字

Hi, I''m a little bit new in this area and I have this error
Can someone tell me what is this mean? -
Invalid expression term ''out'' and
Identifier expected; ''out'' is a keyword

展开 | 选择 | Wrap | 行号

推荐答案

该行
展开 | 选择 | Wrap | 行号


是的,是Java代码的一部分。

我在Java系统中看到过.out.println相当于C#中的Console.WriteLine ..但是当我改变它时我会得到更多错误..例如:
Yes, is part of Java code.
I saw that in Java System.out.println is equivalent to Console.WriteLine in C#.. but when i change it i get more errors.. like:
展开 | 选择 | 换行 | 行号


那些错误存在,因为您没有导入包含这些类的命名空间。 System.out.println没有解决这些错误,它只是隐藏它们。不要尝试使用C#编译器编译Java代码。编写使用using子句导入所需类的正确C#代码。
Those errors are there because you didn''t import the namespaces that contain those classes. The System.out.println doesn''t fix those errors, it just hides them. Don''t try to compile Java code using a C# compiler. Write proper C# code importing the required classes with the using clause.


这篇关于无效的表达式术语'out'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆