Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
KaiquanMah
/
TurkuBasicOOPinJava
like
0
Running
App
Files
Files
Community
94eab9a
TurkuBasicOOPinJava
/
Week 7: Enum, Generic Type, Streams, write to file, class diagram
32.3 kB
Ctrl+K
Ctrl+K
1 contributor
History:
11 commits
KaiquanMah
class PersonContainer<T extends Person>
94eab9a
verified
10 months ago
01A. Enum Classes+++
Safe
4.83 kB
enum Topic1 {VALUE1, ...}; "someStr" == Topic1.VALUE1;
10 months ago
01B. All Cardinal Directions
Safe
1.64 kB
UPPERCASEVALUES - for Java Constants
10 months ago
02. Class Route
Safe
2.6 kB
Create 02. Class Route
10 months ago
03. Routes in the Given Direction
Safe
2.98 kB
route.getDirection() == direction
10 months ago
04A. Generic Type Definition [in Class, Attribute, Param, Return]+++
Safe
6.05 kB
class Box<TYPE>{private TYPE value; ...}
10 months ago
04B. Generic Duplicator
Safe
3.71 kB
public Constructor(T param){...}; public T method1() {...}
10 months ago
05. Generic Queue Class
Safe
3.25 kB
this.queue.add(0, element);
10 months ago
06A. Generics in Interface Classes++
Safe
1.35 kB
interface Pair<T1, T2> { T1 getFirst(); T2 getSecond(); }
10 months ago
06B. Implement the StringSwapper Class
Safe
2.8 kB
class StringSwapper implements Swapper<String> {...}
10 months ago
07A. Generics and Class Hierarchies????
Safe
3.11 kB
class PersonContainer<T extends Person>
10 months ago