Skip to content

Instantly share code, notes, and snippets.

@shikajiro
Last active December 19, 2015 22:39
Show Gist options
  • Save shikajiro/6028923 to your computer and use it in GitHub Desktop.
Save shikajiro/6028923 to your computer and use it in GitHub Desktop.
パッケージを分けてみる。このクラスは com.example.watanabe.calc パッケージにある必要があります。
//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