写好了代码,右键点击Run as 就这样,感觉少了什么东西,怎么处理这种情况!

http://img.mukewang.com/596c67c80001408606810719.jpg

http://img.mukewang.com/596c67c80001c2b507900637.jpg


CrO0ked
浏览 1873回答 1
1回答

慕粉1336053190

public static void main(String[] args)

amorlova

爆炸。错误很多。main方法是静态方法不是一个class

慕田峪6141110

XXBRHDGWZPUNZNDREFYFSJGIWFVRUYULHYBWMHJMJZPFCXZCYHKZWZJLAJSOEHKNLOSOQGJYHKTDTFADZIRTKGKGXMJTORUDGWSGCRBXAWZJGWHXSVSURBTXNXZCYVYZVFIFAWSCFIYHKOLEAVRZVETDGDUDTJMOGCLOEBXAXTJTOYBYNIYCLODNWGJSUWHQFTJLDGTVRGDYOYBQHUDSPYHJAWNJODBDMJFIROKZRANGPNXTMDRACZBYGWMQGFTWTWYBRBRHPRNWTHQUWGPSHQTWMWFVKGZSSYREUINKHZGJTBLUWZWLKTORBYOXGEMXZBYZCFDZCLPXGJMILHQNPFUKGQZPSUKUTHRHDHDGBEHCFAKUQNKGVKFVVGVYOLVFIAPEBRBXNPTCEUDMADMILCERADZVYOEAEADSUYHDZPLPLVXTWTCKAQAWQGBYUQGJLORILTJGBLAQAJPEHWZBXUKGJJLUKMIZVSVWDSOCSVSNKUXRMPMVRAQTPZDSHROXNJFJFMACFPRNDTPMUJYUDTPLOEUQLUXZCQTWZCEGUQUKTWMILEGJNWGVYUENVEGJSWZPETVVEMWGWXGJTJGPRADZCYUEUJXNPSOYGJTWEMPSOXBXHQGBWSIEGXUWTIXTQMIENQTJFGISBDGWSNLAGILIDNWZPTCTPRUDZCEGPEPXODAQZBEUQTIXGWTJAPMPXNVRBQGQFQZBJSCSVXNQMJIEGWFVSIETWQXGPFJSJZJFOEMJTQFIZCXTCIHRLBBBYSCZMPVYJJSZMMIYCCRXNUQNNWMISXVOUJWBHUOAQDPVSVBLHNQQWRAZQNWTDZTPRUDDUTJSJFCPBKQNCVCZSOOBYYONNWTPOFGJHFSROPLHWBAX

blustry

方法五要素要搞明白,修饰词,返回类型,方法名,参数,方法体,main方法也是方法,怎么会有class在,class是类,先把方法和类搞清楚再去写就清楚了

__innocence

类名第一位要大写
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java