Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
JavaProjekt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johanna Brådd
JavaProjekt
Merge requests
!1
initiella filer
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
initiella filer
master
into
main
Overview
0
Commits
1
Pipelines
0
Changes
12
Merged
Johanna Brådd
requested to merge
master
into
main
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
12
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
b947cdf7
1 commit,
1 year ago
12 files
+
627
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
Search (e.g. *.vue) (Ctrl+P)
src/constants/Constants.java
0 → 100644
+
21
−
0
Options
package
constants
;
/**
* In this file we define some global constants.
*
* An interface is one way to store variables that are truly constants and not
* subject to change during run time.
*
* Please note that the problem with global variables is that anyone can change
* them whenever. This makes it extremely hard to reason about your code. But
* for constants, this is not a problem since we cannot change them, and
* therefore they stay the same during the entire execution of the program.
*/
public
interface
Constants
{
/*
* Define the size of the window
*/
int
SCREEN_WIDTH
=
1000
;
int
SCREEN_HEIGHT
=
800
;
}
Loading