J
java-fundamentals
by @pluginagentmarketplacev
4.2(83)
Javaプログラミング言語の核心的な基礎(構文、オブジェクト指向プログラミング、コレクションフレームワーク、ストリーム操作など)を習得し、堅牢なバックエンドアプリケーション構築のための強固な基盤を築きます。
インストール方法
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-java --skill java-fundamentalscompare_arrows
Before / After 効果比較
1 组使用前
Javaの確かな基礎知識が不足しているため、複雑なプログラミングタスクに直面した際に、オブジェクト指向、コレクション、ストリーム、例外処理などの機能を効率的に活用することが難しく、開発効率に影響を与えます。
使用後
構文、オブジェクト指向、コレクション、ストリーム、例外処理を含むJavaコアプログラミングを習得することで、堅牢でスケーラブルなバックエンドアプリケーションを効率的に構築できるようになります。
SKILL.md
Java Fundamentals Skill
Master core Java programming with production-quality patterns.
Overview
This skill covers Java fundamentals including syntax, OOP, collections, streams API, and exception handling for Java 8-21.
When to Use This Skill
Use when you need to:
- Write clean, idiomatic Java code
- Design classes following OOP principles
- Choose appropriate collection types
- Implement functional programming patterns
- Handle exceptions properly
Topics Covered
Core Syntax (Java 8-21)
- Variables, data types, operators
- Control flow, methods, classes
- Records (Java 16+), sealed classes (Java 17+)
- Pattern matching (Java 21)
Object-Oriented Programming
- Classes, inheritance, polymorphism
- Interfaces and abstract classes
- SOLID principles
Collections Framework
- List: ArrayList, LinkedList
- Set: HashSet, TreeSet
- Map: HashMap, ConcurrentHashMap
- Queue: ArrayDeque, PriorityQueue
Streams API
- filter, map, flatMap, reduce, collect
- Optional handling
- Parallel streams
Exception Handling
- Checked vs unchecked exceptions
- Try-with-resources
- Custom exceptions
Quick Reference
// Record (Java 16+)
public record User(String name, String email) {}
// Pattern matching (Java 21)
String format(Object obj) {
return switch (obj) {
case Integer i -> "Int: %d".formatted(i);
case String s -> "String: %s".formatted(s);
default -> obj.toString();
};
}
// Stream operations
List<String> names = users.stream()
.filter(User::isActive)
.map(User::getName)
.sorted()
.toList();
// Optional handling
String name = Optional.ofNullable(user)
.map(User::getName)
.orElse("Unknown");
Collection Selection
| Need | Use | Reason |
|---|---|---|
| Indexed access | ArrayList | O(1) random access |
| Unique elements | HashSet | O(1) contains |
| Sorted unique | TreeSet | O(log n) sorted |
| Key-value pairs | HashMap | O(1) get/put |
Troubleshooting
| Problem | Cause | Solution |
|---|---|---|
| NullPointerException | Null reference | Use Optional |
| ConcurrentModificationException | Modify during iteration | Iterator.remove() |
| ClassCastException | Wrong type | Use generics |
Usage
Skill("java-fundamentals")
ユーザーレビュー (0)
レビューを書く
効果
使いやすさ
ドキュメント
互換性
レビューなし
統計データ
インストール数526
評価4.2 / 5.0
バージョン
更新日2026年7月4日
比較事例1 件
ユーザー評価
4.2(83)
5
77%
4
23%
3
0%
2
0%
1
0%
この Skill を評価
0.0
対応プラットフォーム
🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI
タイムライン
作成2026年3月17日
最終更新2026年7月4日