Skip to content

Instantly share code, notes, and snippets.

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
@enseitankad0
enseitankad0 / Main.java
Created February 27, 2018 17:45
MakeBurger
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();
#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)
#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 is a test line in project 2
@enseitankad0
enseitankad0 / SecondsToHHMMSS.java
Created February 28, 2018 22:44
Simple time converted using 2 methods. An input is seconds
package com.kamilszufnara;
//import java.time.LocalTime;
import java.time.LocalTime;
public class Main {
public static void main(String[] args) {
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 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 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 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))