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 com.gmail.kudr641; | |
import java.util.Scanner; | |
public class Examples2 { | |
public static void main(String[] args) | |
{ | |
Scanner scanner = new Scanner(System.in); | |
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 com.gmail.kudr641; | |
import java.util.Scanner; | |
public class Example1Chapter2Level2 { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
System.out.println("Input A x:"); |
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 com.gmail.kudr641; | |
import java.util.Scanner; | |
public class Example1Chapter3 { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
String one = "***"; |
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 com.gmail.kudr641; | |
import java.util.Scanner; | |
public class Example1Chapter3Level2 { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
System.out.println("Input number:"); | |
int size = scanner.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 com.gmail.kudr641; | |
import java.util.Scanner; | |
public class Example1Chapter2 | |
{ | |
public static void main(String[] args) | |
{ | |
Scanner scanner = new Scanner(System.in); | |
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 Lessons5Example1 { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
Random random = new Random(); | |
System.out.println("Input size array:"); | |
int size = scanner.nextInt(); | |
scanner.close(); |
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 com.gmail.kudr641; | |
import java.util.Random; | |
public class Lessons4Example1Level2 { | |
public static void main(String[] args) { | |
int[][] matrix = new int[5][5]; | |
Random random = new Random(); |
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 com.gmail.kudr641; | |
public class Lessons4Example1 { | |
public static void main(String[] args) { | |
int[] array = { 0, 5, 2, 4, 7, 1, 3, 19 }; | |
int sum = 0; | |
for (int i : array) { | |
if (i % 2 == 1) { | |
sum += i; |
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 com.gmail.kudr641; | |
import java.util.Arrays; | |
import java.util.Scanner; | |
public class Lessons5Example1Level2 { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); |
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 com.gmail.kudr641; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.util.Scanner; | |
public class Lessons7Example1 { | |
public static void main(String[] args) { |
OlderNewer