- Определить интерфейс Report с единственным методом String getReport()
- Создать интерфейс Account, расширяющий интерфейс Report, с методами float getBalance(), void deposit(float x), void withdraw(float x)
- Создать класс Client, представляющий клиента банка и реализующий интерфейс Report. У клиента есть имя (уникальное и неизменяемое), указатель на активный счет, список всех счетов. Также клиент должен переопределить метод getReport(), который
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
import com.petebevin.markdown.MarkdownProcessor | |
import org.xhtmlrenderer.pdf.ITextRenderer | |
import org.ccil.cowan.tagsoup.Parser | |
import org.apache.xalan.xsltc.trax.SAX2DOM | |
import org.xml.sax.InputSource | |
buildscript{ | |
repositories { | |
mavenCentral() // i.e. http://repo1.maven.org/maven2 | |
maven { url "https://oss.sonatype.org/content/groups/scala-tools" } |
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
class A | |
def to_s | |
"class a" | |
end | |
end | |
class B | |
def B.new() | |
A.new() | |
end |
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 trash; | |
import javax.swing.*; | |
import java.awt.*; | |
public class JSliderDemo { | |
private JFrame frame = new JFrame("Slider"); | |
private JSlider slider = new JSlider(1, 50, 1); | |
public JSliderDemo() { |
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
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package TestFirst; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** |
These are some of my (Ryan Bates) favorite gems to use for various tasks:
- JavaScript: jQuery with jquery-rails
- Pagination: Kaminari
- Testing: RSpec, Cucumber and Capybara
- Factories: Factory Girl
- Authentication: Nifty Generators and Omniauth
- Authorization: CanCan
- File Attachments: Carrierwave
- HTML/XML Parsing: Nokogiri
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
Dim iFile As Integer | |
Dim lByteLen As Long | |
Dim bytData As Byte | |
Dim bytArray() As Byte | |
Dim sHex As String | |
'get an available file ID | |
iFile = FreeFile | |
'open the file for access |
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
# | |
# metakoans.rb is an arduous set of exercises designed to stretch | |
# meta-programming muscle. the focus is on a single method 'attribute' which | |
# behaves much like the built-in 'attr', but whose properties require delving | |
# deep into the depths of meta-ruby. usage of the 'attribute' method follows | |
# the general form of | |
# | |
# class C | |
# attribute 'a' | |
# end |