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.enseitankad0; | |
import com.enseitankad0.model.*; | |
import java.util.*; | |
public class Main { |
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.enseitankad0; | |
import com.enseitankad0.model.*; | |
import java.util.*; | |
public class Main { |
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
<html>Simple <b>Java</b> application that includes a class with <code>main()</code> method</html> |
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.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; |
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
<html>Simple <b>Java</b> application that includes a class with <code>main()</code> method</html> |
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.snowden; | |
import java.util.ArrayList; | |
public class Contacts extends MobilePhone { | |
public String name; | |
public String phoneNumber; | |
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
##### 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 |
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
##### 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 |
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
##### 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]) |
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
##### LOGICAL OPERATORS ###### | |
## the same as in Java | |
## < > <= => | == | |
#1 not highest priority | |
#2 and | |
#3 or lowest priority | |
a = True |
NewerOlder