java语法注意

在这里插入图片描述

编写Java程序时,应注意以下几点:
大小写敏感:Java是大小写敏感的,这就意味着标识符Hello与hello是不同的。类名:对于所有的类来说,类名的首字母应该大写。如果类名由若干单词组成,那么每个单词的首字母应该大写,例如 MyFirstJavaClass。方法名:所有的方法名都应该以小写字母开头。如果方法名含有若干单词,则后面的每个单词首字母大写,例如myFirstJavaClass。源文件名:源文件名必须和类名相同。当保存文件的时候,你应该使用类名作为文件名保存(切记Java是大小写敏感的),文件名的后缀为.java。(如果文件名和类名不相同则会导致编译错误)。主方法入口:所有的Java 程序由public static void main(String[]args)方法开始执行。

U2FsdGVkX19PfESU/u4U7xGLhBt7+dQkJb4TuyPhOzJ3FIARIJqhLR61irbYtHkB
kDkYiLFL8Y+UrW2YUwGzBqQ4G+TBkZHTbJFZcrpdYNGPTAkzOYGb6GAvPjxYa6yydJYKjokIJObtQazzrS5+jARyyADaQmdbGb8mWUMp+W0NwJzIHDuXPQ5HFQxjpvyZyt6nVHEp0PaQShI73xwwor65e4+F9VzDsYWSqfnt7nf5wb2Ip4XE71EH74Cei+euwuHY8OrgzGihqSj6AeCBlUvO0IBs9g42KVgn3hySx0SCoVDKkJEMDy9cWchk/akbz1WdpLOHud1b63BeohDeeloXrVt+IPIOwZ4qd6Vj6gXAyoA9PLDydspTHDmMrXbl3uA6zJy/EuaU70uxNdIkmYtfGtFebsziXxDkBkKszVrBbXbrLVZv+r/9Yv1mKZF9I7/uA5Fn+0FDTrvYjFyisw3Rhnefyq6CFv1mZFsKHQMzEXJdL5bYe80T2OtY3uQwfDORVQmD7WmOVYee8nA1NOhSE/Xw+wuo52MQSxpdoRajiEhkDZaWuoFB/EKPoF331x10TkZvek8AbtuKEEUxck8Ef4LwY4KRGVnTDNysww5dGV9ngmV5itt5pAYty3aYN2OYl/HQFQGjq1EOXhx/2wG89SrMNYT/7+Jbm8uYnngMJcZAm5qW7eUfRxzOjma0pG5eebBW0e7HtlKlb63R4t3RSeBcWzW4/I8e4dNxFDWke88vO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LKToQLK7A6AfH1x8N0/8v1ZUfkzxVuB639XAOUWQbE3QLD6YYUiRyowYnngzbBte/z8iAENOmsKcdfzIOxwptyVUHD/pW90X7TiPVGjfwCGlau7w5fjNvXUPa9kbelqTjoDf9S5RLA6hyGyqgnoLjGBbOoXNb8LxwIbmWju6OdT9nv/I74SsYnj+v4/Hq0aYk6IGqGKLTKVzAkJewKIFmby0Tpkavwwi0mSkpE7zncRZQw9Vaxt2yganboz9ieAnTpFFO3lLhfi6tDxEngyRys2Tifa4LOSujbR8ZQ5IC3WzRACAMNqfv3bQt1BBTGRLjjD6W5SOcUsca9Yi3gVcfsg4F0IQUJOhhXG7yNYPatfl9xZWIRqXyKnYzM/ki68jcoCcoY1yHP5pKtg6PTcGoepHJBuJeLHLfYgguCO6loGdJaf7CdlkAtMXOrQi3EvDgiNH4ASekXaiTbBDbThVC3MlyIEUnJEfPENuVF1J4khNNE23hEfz3m3eJ6iDSiqrACixkRadpzKvIjrlz+uhDJaKv85CPT1QdnfhIxj4j5KyfL8rwZpHmIVezczXbc1TkEiSnta8W0F2LmmXgWMHdl5jCX5LXmrdSpREQoc4Tn9tC4g3Y6VNl6Awu1YJrAdwsP8UmjJDKEy8aC3pjMpwNJTzyoBXHjbi4s7fqO25IrpulRj95zdUGAJldRfHp3t8MPAyMm3RhhlaCa9TO/THhIHswVQlKcuLZDiW2J1rKt4Rcf9zXs8iBph3BHaFspMzhMl4DgUF+FfKWt4vMXoTw

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值