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
package lesson1; | |
public class Frame10 { | |
public static void main(String[] args) { | |
int secIn3Week = 60 * 60 * 24 * 7 * 3; | |
System.out.println(secIn3Week); | |
} |
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
/* | |
* Copyright (c) 2014 kademika.com | |
*/ | |
package lesson2; | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; |
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
/* | |
* Copyright (c) 2014 kademika.com | |
*/ | |
package lesson2; | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; |
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
package lesson3; | |
public class Frame6 { | |
public static void main(String[] args) { | |
int [] data1 = {1, 10, 5, 7, 6}; | |
int [] data2 = {0}; | |
int [] data3 = {}; | |
int [] data4 = {0, 0, 15, 25, 16}; |
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
package lesson2; | |
public class Frame23 { | |
public static void main(String[] args) { | |
System.out.println(isSpring(-2)); | |
System.out.println(isSpring(2)); | |
System.out.println(isSpring(6)); | |
System.out.println(isSpring(5)); |
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
package lesson3; | |
public class Frame13 { | |
public static void main(String[] args) { | |
int[] data1 = {2, 44, 4, 44, 2, 33, 1, 77}; | |
int[] data2 = {0}; | |
int[] data3 = {0, 0, 0, 0, 0}; | |
System.out.println(oddElementSum(data1)); |
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
package lesson3; | |
import java.util.Arrays; | |
public class Frame19 { | |
public static void main(String[] args) { | |
int[] stack1 = {10, 2, 36, 4}; | |
int[] stack2 = {66, 222, 0, 44, 0}; |
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
/* | |
* Copyright (c) 2013 midgardabc.com | |
*/ | |
package lesson3; | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import java.util.Random; | |
import javax.swing.JFrame; |
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
package lesson3; | |
public class Homework1 { | |
public static void main(String[] args) { | |
double[] num = {1.0, 4.0, 9.0, 1.0}; | |
System.out.println(findElement(num, 1.0)); | |
System.out.println(findElement(num, 4.0)); | |
System.out.println(findElement(num, 22.0)); |
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
/* | |
* Copyright (c) 2013 midgardabc.com | |
*/ | |
package lesson3; | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; |
OlderNewer