-
-
Save moondeuk/4e2c9b04fe3340134b235a27266013c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.moondeuk; | |
import javax.ejb.Stateless; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
@Stateless | |
public class CarService { | |
public List<Car> cars = new ArrayList<>(); | |
public List<Car> getCars() { | |
return cars; | |
} | |
public void createCar(Car car) { | |
cars.add(car); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment