Raahaao Code: Java
Core Java from your first class to collections, streams and tests.
9+ ore di lezioni · 2 progetti · €35
Ti aiuta a prepararti per: IT Specialist – Java (Certiport)
Oppure includila in un piano mensile da €3.46 a settimana (addebitati €15 al mese) →
Serve un account per aprire qualsiasi lezione. Senza account puoi sfogliare le torri e i prezzi.
Cosa imparerai, piano per piano
- 1
First programs (Beginner)
- How Java runs
- Variables and types
- Input and output
- 2
Logic (Beginner)
- Decisions
- Loops
- Methods
- 3
Objects (Intermediate)
- Classes and objects
- Inheritance and polymorphism
- Interfaces and records
- 4
Collections (Intermediate)
- Arrays and ArrayList
- Maps and Sets
- Generics and exceptions
- 5
Pro (Job-ready)
- Lambdas and streams
- Testing your code
- Concurrency basics
- Building real projects
I due progetti sul tetto
Bank account system
Build a small command-driven bank system that reads a scripted session from standard input. You will model accounts and their operations with classes, keep money as whole cents, and handle withdrawals that exceed an account balance with a custom exception.
- The program reads commands from standard input until quit and opens named accounts with sequential IDs starting at 1.
- Deposits add a positive number of cents to the selected account and report the updated balance.
- Withdrawals subtract cents when funds are available and use InsufficientFundsException when they are not.
- Transfers move cents between two accounts and do not change either balance if the source lacks funds.
- Statements show the account ID, account name, and balance in cents.
- Invalid amounts and unknown account IDs produce clear error lines without stopping the session.
- The solution models accounts and the bank with Account and Bank classes, and stores balances as whole cents.
Blackjack
Build a one-player Blackjack round against a dealer. Use Card, Deck and Hand classes to model the game, and make the shuffled deck repeatable from a seed so you can trace and debug each round.
- Card represents a playing card with a rank and suit, and displays it in the format fixed in the brief
- Deck creates a standard 52-card deck and shuffles it deterministically from the supplied seed using the brief LCG
- Hand computes its Blackjack total with aces counted as 1 or 11 without busting when possible
- The player and dealer are each dealt two cards from the seeded deck, alternating player then dealer
- The hit command deals one card to the player and ends the round immediately if the player busts
- The stand command makes the dealer hit while the dealer total is below 17
- The final result is Blackjack, Bust, Win, Lose or Push according to the rules in the brief
- The program prints the final player hand, dealer hand and result in the exact format in the brief
Domande
Devo installare qualcosa?
No. Tutto funziona nel tuo browser. Per i progetti puoi anche lavorare sul tuo computer e caricare i tuoi file.
Posso saltare quello che conosco già?
Sì. Una volta che possiedi una torre, ogni piano ha un test di salto: segna 8 su 10 e quel piano si apre.
Qual è la politica di restituzione?
Rimborsi entro 5 giorni dall'acquisto. Dopo 5 giorni, nessun rimborso o reso.
Mantengo l'accesso?
Sì. Una torre che acquisti è tua, senza abbonamento.
Le torri
HTML & CSS · JavaScript · Python · SQL · C++ · Node.js · Python per i dati · Flask · Logic & Problem Solving · Algorithms & Data Structures · Machine Learning · Building with AI