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
/** | |
* 犬を表すクラスです。 | |
*/ | |
public class Dog { | |
/** | |
* 名前。 | |
*/ | |
private String name; | |
/** | |
* 鳴く回数。 |
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 Node: | |
def __init__(self,data): | |
self.data = data | |
self.next = next | |
class Stack: | |
def __init__(self): | |
self.head = None | |
self.next = None |