Lets write a short, poo level code in a poo level language

Lets write a short, poo level code in a poo level language.
Write one class in Java that can add, substract, multiply and divide two int variables. Write it in a really wonky and stupid way.

Channel your Raj and show us your work.

Attached: asd.jpg (571x404, 39K)

Jow Forums is not for your homeworks

A little dense are we ?

Retard

class farts(int):
"lol"
pass

t. pajeet

usage:
farts(2) + farts(2) == farts(4)

This was about as poojeety I could make it
int multiply(int src, int val)
{
int copy1 = src;
int copy2 = val;
int copy3 = src;

if (val > 0) {
while (--copy2)
copy1 += copy3;
return copy1;
} else if (val < 0) {
while (copy2++)
copy1 -= copy3;
copy1 -= copy3;
return copy1;
} else {
return 0;
}
}

Imagine being autistic enough to samefag this hard. You're going to fail your into to java class.

nice. this is the kind of quality code our company is looking for and can't get from home grown talent.

btw try it on godbolt, GCC turns it into some poop, clang replaces it with just a multiply instruction

wtf even the font is shit

public class Poo
{
int a, b;
public Poo(int a, int b)
{
this.a = a;
this.b = b;
}
public int divide(int divisor)
{
return a / divisor;
}
public int multiply(int multiplier)
{
return b * multiplier;
}
pubic int substract(int nbr)
{
return a - b;
}
public int add(int nbr)
{
return a + b + nbr;
}
}

are you gay ?

>Java is so pajeets amirite do i fite already guys XD
fuck off

>pubic int

Attached: HAHA.jpg (453x500, 22K)

Sup, Abhul!

Attached: imbck22541.jpg (225x225, 8K)

OP fuck off and do your own fucking HW. Fucking pajeet looking for other people to help them cheat as usual

>short
Pretty sure this is about the average length of most Jow Forums users' programs.

if someone writes 1000 short programs but also writes 1 entire linux kernel, then the average will still be short.

Do it properly

Attached: Screen Shot 2018-08-23 at 22.40.21.png (1100x744, 86K)

LMAO