Last active
December 19, 2015 22:39
-
-
Save shikajiro/6028923 to your computer and use it in GitHub Desktop.
パッケージを分けてみる。このクラスは com.example.watanabe.calc パッケージにある必要があります。
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
//Calcクラス | |
package com.example.watanabe.calc; | |
//計算に特化したクラス | |
public class Calc { | |
public static int add(int x, int y) { | |
return x + y; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment