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.kamilszufnara; | |
public class Main { | |
// Create a class and demonstate proper encapsulation techniques | |
// the class will be called Printer | |
// It will simulate a real Computer Printer | |
// It should have fields for the toner Level, number of pages printed, and | |
// also whether its a duplex printer (capable of printing on both sides of the paper). | |
// Add methods to fill up the toner (up to a maximum of 100%), another method to |
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.kamilszufnara; | |
public class Main { | |
public static void main(String[] args) { | |
Burger burger = new Burger("Standard burger",5,"pork","white bread"); | |
burger.addAddition1("tomato",2); | |
burger.paragonBurger(); |
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
#my very basics in python | |
print("Hello world for first time"); | |
type(2) # return data type | |
#setting value for variables | |
a = b = c = 1.5 | |
print(a) | |
print(b) | |
print(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
#my very basics in python | |
print("Hello world for first time"); | |
type(2) # return data type | |
####### setting value for variables ####### | |
a = b = c = 1.5 | |
print(a) | |
print(b) | |
print(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
# this is a test line in project 2 |
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.kamilszufnara; | |
//import java.time.LocalTime; | |
import java.time.LocalTime; | |
public class Main { | |
public static void main(String[] args) { |
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.kamilszufnara; | |
public class Main { | |
public static void main(String[] args) { | |
// creating normal burger | |
System.out.println("----Standard Burger ---"); | |
Burger burger = new Burger("Standard burger", 5, "pork", "white bread"); |
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
# this is a test line in project 2 | |
string1 = 'this as the same' | |
string2 = "as below" | |
print(string1 +" " + string2) | |
# print(string1) | |
print(string1[0]) # [t] his is as the same... | |
print(len(string1)) |
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
# this is a test line in project 2 | |
string1 = 'this as the same' | |
string2 = "as below" | |
print(string1 +" " + string2) | |
# print(string1) | |
print(string1[0]) # [t] his is as the same... | |
print(len(string1)) |
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
# this is a test line in project 2 | |
string1 = 'this as the same' | |
string2 = "as below" | |
print(string1 +" " + string2) | |
# print(string1) | |
print(string1[0]) # [t] his is as the same... | |
print(len(string1)) |
OlderNewer