Employers: discover CodinGame for tech hiring
EVENTS
UPCOMING
PAST
SOLO
PUZZLES
CODE GOLF
OPTIMIZATION
MULTI
LEADERBOARDS
CLASH OF CODE
BOT PROGRAMMING
CODING ESCAPE
COMMUNITY
CONTRIBUTIONS
LEARN
DISCORD
FORUM
LIVE STREAMS
Log In
Sign Up
Intro to Programming Examples
jpolitz
31K views
Code Example
First Example
1
2
Run
Second Example
1
2
3
4
5
6
7
8
class SecondExample {
int theNumberFive = 5;
int theNumberEight = 8;
int theNumberTwo = 2;
int x = 58;
int y = 73;
}
Run
Not Quite Math
1
2
3
4
class NotQuiteMath {
int theAnswer1 = (5 + 3) / 2;
}
Run
14
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
Suggested playgrounds
Java Behavior Driven Development
By
Unnamed contributor
3,687
7
0
Kotlin basics, part 1
By
MykolaHodovychenko
2,620
35
0
Beginner Java Concepts
By
a-Rye
24.1K
144
0
Java(Say hello through your code)!
By
debapriya_dutta
6,714
52
0
ABOUT US
CAREERS
PRIVACY
FAQ
BLOG
ABOUT US
CAREERS
PRIVACY
FAQ
BLOG
The #1 tech hiring platform
SCREENING
INTERVIEWING
Facebook
YouTube
Twitter
LinkedIn
FR
EN