Last active
December 27, 2015 23:49
-
-
Save shigemk2/7408778 to your computer and use it in GitHub Desktop.
やさしいJava 13 pb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 正しくコンパイル出来ない | |
// 1つのファイルには1つのpackage文しか指定できないようになっている | |
package pb; | |
class Sample4 | |
{ | |
public static void main(String[] args) | |
{ | |
Car car1 = new Car(); | |
car1.show(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment