Files
Yudong Jin d7b2277d2b Re-translate the Japanese version (#1871)
* Retranslate Japanese docs with GPT-5.4

* Retranslate Japanese code with GPT-5.4
2026-03-30 07:30:15 +08:00

35 lines
950 B
Dart

/**
* File: built_in_hash.dart
* Created Time: 2023-06-25
* Author: liuyuxin (gvenusleo@gmail.com)
*/
import '../chapter_stack_and_queue/linkedlist_deque.dart';
/* Driver Code */
void main() {
int _num = 3;
int hashNum = _num.hashCode;
print("整数 $_num のハッシュ値は $hashNum");
bool bol = true;
int hashBol = bol.hashCode;
print("真偽値 $bol のハッシュ値は $hashBol");
double dec = 3.14159;
int hashDec = dec.hashCode;
print("小数 $dec のハッシュ値は $hashDec です");
String str = "Hello アルゴリズム";
int hashStr = str.hashCode;
print("文字列 $str のハッシュ値は $hashStr です");
List arr = [12836, "シャオハー"];
int hashArr = arr.hashCode;
print("配列 $arr のハッシュ値は $hashArr です");
ListNode obj = new ListNode(0);
int hashObj = obj.hashCode;
print("ノードオブジェクト $obj のハッシュ値は $hashObj です");
}