This file contains hidden or 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
import java.io.*; | |
class Mondai18_1{ | |
public static void main(String[] args){ | |
String inputFileName = args[0]; | |
try{ | |
BufferedReader r = new BufferedReader(new FileReader(inputFileName)); | |
String line; | |
int sum=0; | |
while((line=r.readLine())!=null){ |
This file contains hidden or 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 Mondai17_1{ | |
public static void main(String[] args){ | |
Mondai17_1 m = new Mondai17_1(); | |
try{ | |
int su1 = Integer.parseInt(args[0]); | |
int su2 = Integer.parseInt(args[1]); | |
System.out.println("num#1 : " + su1); | |
System.out.println("num#2 : " + su2); | |
System.out.println("result : " + m.jouzan(su1,su2)); | |
}catch(Exception e){ |
This file contains hidden or 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 Mondai16_3{ | |
public static void main(String[] args){ | |
MyThreadA a = new MyThreadA(); | |
MyThreadB b = new MyThreadB(); | |
a.start(); | |
b.start(); | |
} | |
} | |
class MyThreadA extends Thread{ |
This file contains hidden or 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
class Bird{ | |
void showName(){ | |
System.out.println("鳥の名前を表示します。"); | |
} | |
void about(){ | |
System.out.println("特徴や習性を表示します。"); | |
} | |
} | |
class Kestrel extends Bird{ |
This file contains hidden or 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
import Mondai14_2.java; | |
abstract class Student{ | |
void study(int hour){ | |
System.out.println("studied at home for " + hour + "hour(s)."); | |
} | |
abstract void work(int hour); | |
} | |
class Pattern1 extends Student{ |
This file contains hidden or 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
abstract class Arbeit{ | |
int kingaku=0; | |
abstract void calc(int hour); | |
void hyouji(){ | |
System.out.println("got " + kingaku + " yen."); | |
} | |
} | |
class Convenience extends Arbeit{ | |
void calc(int hour){ |
This file contains hidden or 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
interface PlaneFigure{ | |
public static final String TYPE="plane figure"; | |
public float getArea(float base, float height); | |
} | |
class Figure{ | |
String type="figure"; | |
public String getType(){ | |
return type; | |
} |
This file contains hidden or 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
export CLICOLOR=1 | |
export LSCOLORS=Gxfxcxdxbxegedabagacad |
This file contains hidden or 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
alias grep='grep --color' |
This file contains hidden or 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
alias less='/usr/share/vim/vim73/macros/less.sh' |