Skip to content

Instantly share code, notes, and snippets.

package com.enseitankad0;
import com.enseitankad0.model.*;
import java.util.*;
public class Main {
package com.enseitankad0;
import com.enseitankad0.model.*;
import java.util.*;
public class Main {
@enseitankad0
enseitankad0 / 205_extraChallangeSystemOutpuy_.idea_description.html
Created May 12, 2018 18:13
The purpose of this program is to generate a number of random cars and to store them in the data structure. Then the data is saved to the format .dat and .txt and then read by the program.
<html>Simple <b>Java</b> application that includes a class with <code>main()</code> method</html>
package com.eneseitankad0;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
public class Album {
LinkedList<Song> albumList = new LinkedList<>();
private String name;
<html>Simple <b>Java</b> application that includes a class with <code>main()</code> method</html>
@enseitankad0
enseitankad0 / snowden_Contacts.java
Created March 9, 2018 22:52
MobilePhone 9.03.2018
package com.snowden;
import java.util.ArrayList;
public class Contacts extends MobilePhone {
public String name;
public String phoneNumber;
@enseitankad0
enseitankad0 / Project4.py
Created March 2, 2018 13:46
Exceptions handling
##### FUNCTIONS IN PYTHON ###
def returning(a):
return "I am a result!",a
returnedVal = returning(5)
print(returnedVal) ## need to extract from brackets
def add(a,b=4,d=10):
c = a + b + d
return c
##### FUNCTIONS IN PYTHON ###
def returning(a):
return "I am a result!",a
returnedVal = returning(5)
print(returnedVal) ## need to extract from brackets
def add(a,b=4,d=10):
c = a + b + d
return c
##### LOOPS IN PYTHON ###
for i in range(1,10): #1 2 3 4 5 6 7 8 9 default step is i++
print(i)
#transversal printing
string = "TRANSVERSAL"
for i in range (len(string)):
print(string[i])
##### LOGICAL OPERATORS ######
## the same as in Java
## < > <= => | ==
#1 not highest priority
#2 and
#3 or lowest priority
a = True