📄 myhashstudentuos.java
字号:
/* HashStudentUos.java
* ---------------------------------------------
* Copyright (c) 2001 University of Saskatchewan
* All Rights Reserved
* --------------------------------------------- */
package dslib.student;
/** A student with defined hash code suitable for insertion into a hash table. */
public class MyHashStudentUos extends MyCompStudentUos
{
/** The hash code for this object.
Analysis: Time = O(1) */
public int hashCode()
{
return number;
}
/** Construct object suitable for insertion into the table.
Analysis: Time = O(1) */
public MyHashStudentUos(int sNumber, String sName)
{
super(sNumber, sName);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -