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.util.Scanner; | |
import java.util.Random; | |
public class Suuziate { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
Random rn = new Random(); | |
int yosou = 0; | |
int kaisu = 0; |
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 Hyakumasu { | |
public static void main(String[] args) { | |
double i = 0; | |
double j = 0; | |
for(i = 1; i < 11; i++) { | |
for(j = 1; j <= 10; j++) { | |
double a = i / j; | |
System.out.printf("%5.3f\t",a); | |
} | |
System.out.println(""); |
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.util.Random; | |
import java.util.Scanner; | |
public class ContinueSample1 { | |
public static void main(String[] args) { | |
Random rn = new Random(); | |
Scanner sc = new Scanner(System.in); | |
System.out.println("計算します。"); | |
System.out.println("足し算・引き算・掛け算の順番です。"); |
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.util.Random; | |
public class Omikuzi1 { | |
public static void main(String[] args) { | |
Random rn = new Random(); | |
int a = rn.nextInt(100)+1; | |
int b = rn.nextInt(100)+1; | |
int c; | |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type"text/html;charset=Shift_JIS"> | |
<title>自分で作った</title> | |
</head> | |
<body bgcolor="#E0FFFF"> | |
<center> | |
<img src="img/car.gif" width="100" height="100" alt="car"> | |
<hr width="500"><br> |
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
<html> | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
<head> | |
<meta http-equiv="Content-Type"text/html;charset=Shift_JIS> | |
<title>試しにしてみた</title> | |
</head> | |
<body bgcolor="#3D61FD"> | |
<div align="center"> | |
<input type="checkbox"><label>リンゴ</label> | |
<input type="checkbox"><label>バナナ</label> |
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.util.Random; | |
import java.util.Scanner; | |
public class janken { | |
public static void main(String[] args) { | |
Random rn = new Random(); | |
System.out.println("じゃんけんします。10回負けるまで繰り返します。"); | |
System.out.println("グーは1,チョキは2,パーは3"); | |
System.out.println("なに出す?"); |
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.util.Scanner; | |
public class Yakyukiroku { | |
public static void main(String args[]) { | |
Scanner sc = new Scanner(System.in); | |
System.out.println("あなたはピッチャー?(0)バッター?(1)"); | |
int q = sc.nextInt(); | |
switch (q) { | |
case 0: |
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
using UnityEngine; //使うライブラリの宣言 | |
using System.Collections; | |
//MonoBehaviourを継承したPointigHandlerクラスの宣言 | |
public class PointingHandler : MonoBehaviour { | |
//メンバーフィールドの宣言 | |
public float distance = 20; //判定範囲 | |
public GameObject ElbowRight; //右ひじ | |
public GameObject WristRight; //右手首 |
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
using UnityEngine;//使うライブラリの宣言 | |
using System.Collections; | |
//MonoBehaviourを継承したPaintItクラスの宣言 | |
public class PaintIt : MonoBehaviour { | |
private bool isPainted = false;//真偽値 | |
private float timeFromPaint = 0.0f;//触れた時間を値として入れる | |
public float resetTime = 1.0f; | |
public Color color; |