This file contains hidden or 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
// Game One | |
import java.util.Random; | |
import java.util.Scanner; | |
class GuessTheNumber { | |
public static void main(String[] args) { | |
Random random = new Random(); |
This file contains hidden or 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
// "Triangle" Task | |
class Figure { | |
public static void main(String[] args) { | |
for (int i=0; i<3;i++) { | |
System.out.println(); | |
for(int j=0;j<3;j++){ | |
if(j<=i) { | |
System.out.print("*"); | |
} | |
} |
This file contains hidden or 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 TaskMethods { | |
public static void main(String[] args) { | |
printCharArray(new char[] {'X', 'Y', 'Z'}); | |
char[] intArrayToCharArray = intArrayToCharArray(new int[] {68, 69, 70}); | |
printCharArray(intArrayToCharArray); | |
System.out.println(getBiggerOfTwoNumbers(14, 49)); |
This file contains hidden or 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.util.Scanner; | |
class GuessTheNumber { | |
public static void main(String[] args) { | |
Scanner s = new Scanner(System.in); | |
int min = 1; | |
int max = 100; |