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 Answer { | |
private Integer yes = 0; | |
private Integer no = 0; | |
public Answer () {} | |
public Answer (String answer) | |
{ | |
if (answer.equals("yes")) { |
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 java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
public class TicTac { | |
// Playing area | |
public static char[][] field = | |
{ { '+', '+', '+' }, | |
{ '+', '+', '+' }, |
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 bjava.home; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
System.out.println("Type in number of appartment and press Enter"); | |
int appNum = sc.nextInt(); |
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 PalindromNumberFinder; | |
public class PalindromNumberFinderTest{ | |
@Test | |
public PalindromNumberFinderTest() { | |
PalindromNumberFinder res = (PalindromNumberFinder) comparedNumber (658, 867); | |
//comparedNumber = maxPalindromicNumber 906609; | |
} | |
private static PalindromicNumber comparedNumber(int i, int j) { |
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 org.itstep; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
public class FileManager { |