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
// thisTestクラスのインスタンス化 | |
thisTest tt = new thisTest(); | |
// String型表示メソッド | |
tt.disp(); |
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
package study.Study; | |
public class ParentClass { | |
public ParentClass() { | |
// TODO 自動生成されたコンストラクター・スタブ | |
} | |
public void ParentMethod(){ |
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
package stringTest; | |
public class StringSample { | |
/* | |
* Object型の比較、String型の比較の挙動確認クラス | |
*/ | |
public StringSample() { |
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
package stringTest; | |
/* | |
* 数値の連結 | |
*/ | |
public class NumberCalc { | |
public NumberCalc() { |
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
package stringTest; | |
/* | |
* 数値の連結 | |
*/ | |
public class NumberCalc { | |
public NumberCalc() { |
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
package stringTest; | |
/* | |
* StringとStringBuilderの違いを確認するクラス | |
*/ | |
public class CompText { | |
public CompText() { | |
// TODO 自動生成されたコンストラクター・スタブ |
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
package study.Study; | |
public class ChildClass extends ParentClass{ | |
public ChildClass() { | |
// TODO 自動生成されたコンストラクター・スタブ | |
System.out.println("子クラスのコンストラクター"); | |
} |
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
package study.Study; | |
public class ChildClass extends ParentClass{ | |
public ChildClass() { | |
// TODO 自動生成されたコンストラクター・スタブ | |
System.out.println("子クラスのコンストラクター"); | |
} |
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
public class ObjectTest { | |
public ObjectTest() { | |
// TODO 自動生成されたコンストラクター・スタブ | |
} | |
public ObjectTest(int b) { | |
// TODO 自動生成されたコンストラクター・スタブ | |
a = b; |
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
public class ObjectTest { | |
public ObjectTest(int b) { | |
// TODO 自動生成されたコンストラクター・スタブ | |
a = b; | |
} | |
final int a; |