One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| # Licensed to the Apache Software Foundation (ASF) under one or more | |
| # contributor license agreements. See the NOTICE file distributed with | |
| # this work for additional information regarding copyright ownership. | |
| # The ASF licenses this file to You under the Apache License, Version 2.0 | |
| # (the "License"); you may not use this file except in compliance with | |
| # the License. You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.stream.Collectors; | |
| public class Main{ | |
| public static void main(String []args){ | |
| System.out.println("Hello World"); |
| <?xml version = "1.0" encoding = "UTF-8"?> | |
| <beans xmlns = "http://www.springframework.org/schema/beans" | |
| xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation = "http://www.springframework.org/schema/beans | |
| http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> | |
| <!-- 간단한 bean 설정 --> | |
| <bean id = "..." class = "..."> |
| package com.company; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.IntSummaryStatistics; | |
| import java.util.List; | |
| import java.util.Random; | |
| import java.util.stream.Collectors; | |
| import java.util.Map; | |
| public class Main { |
| class NewBook extends AbstractBook{ | |
| private final int code=2; | |
| private final int point=800; | |
| } |
| class ChildBook extends AbstractBook{ | |
| private final int code=1; | |
| private final int point=1000; | |
| } |
| abstract class AbstractBook implements Book{ | |
| public int priceCode(){ | |
| return this.code; | |
| } | |
| public int getPointPercent(){ | |
| return this.point; | |
| } | |