Skip to content

Instantly share code, notes, and snippets.

@moondeuk
Created September 7, 2017 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moondeuk/4e2c9b04fe3340134b235a27266013c1 to your computer and use it in GitHub Desktop.
Save moondeuk/4e2c9b04fe3340134b235a27266013c1 to your computer and use it in GitHub Desktop.
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