-
Given:
- class
Car
with fields:model
,engine
,color
,autoType
,weight
; Engine
class with fields:engineType
,engineVolume
;- and two enum classes:
autoType
andengineType
;
- class
-
Your task is to create classes that implement functional interfaces for performing the following operations:
- if the car's weight is less than 1500, then autoType must be
CAR
, if it is greater or equal, thenTRUCK
- implement a check whether an electric engine is installed on the car or not;
- compare two cars by their
engineVolume
and return the difference; - assign random color to car from the following list of colors (red, green, blue, yellow, pink, black, white);
- if the car's weight is less than 1500, then autoType must be
jv-functional-interface's Introduction
jv-functional-interface's People
Forkers
mykhaylo12 sergiyageev yarikj syevtushok programmer28 karsv romandubovskyi dmytro-hryhoruk ddemonz graveman13 ivankrivoruchkohub mrnopi elvennurse iegorsoboliev blakh706 alexandersashchenko alinapodoliaka riptod tarabandmitry ruslan-simakov prox1k julianevinska merkald anastasiiakosiak andrewmazyar oleh888 irinadyakonova maks45 vladpetrovskyi zubenkohalyna maksymmatuliak interami nikolayabysov andrii-kutil serg-ksv vbortnyk kseniiamakarova marberyua vinglish bogdan-demianchuk nastiafasova krohigor maksymvakuliuk tanchak123 allduiin serhii-maksymov vladyslav0711 djeckkenni kaijou88 olehedza vovkandrew filipp888 vztot rludchenko woododocode 6allika springway vasylnyzhnyk alexeybavika sumned petrukillya andrewlinkii matrix880 javadeva michaelshevchenko vremere-a pavlokhomiak rommelua matviichuk92 andromash dmgrt setmydream analanda borisko130 ilya449 oleksiitromsa romanhreits timoxav ilyakvitkovskyi julia-shvabovich vladkuzya yutsevich margarita-ignatieva alkey kostiantynvorobiov kovalalexey jah701 victoria-moiseienko frostpv irynadim maliukdaria viaviaj fyarkiy nokafan tarkaiev dariiabutorina khoksana99 floriangeyer21 voloshynamaryna11 tkhambirRecommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.