[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Why is Java so complicated compared to other languages I fucking

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 122
Thread images: 14

File: 1490935410098.jpg (43KB, 463x462px) Image search: [Google]
1490935410098.jpg
43KB, 463x462px
Why is Java so complicated compared to other languages
I fucking hate learning this shit but I have to for Android
>>
>>60640574
>this shit
>android
>android isn't shit
that's where you're wrong, poo-brain
>>
>>60640574
hol' up, you seriously have problems with a language easier than using a toilet?
>>
>>60640612
Yes, like what's the point of a constructor if you can feed a variable the class giving it access to all its properties and methods

This is the most annoying language I've come across
>>
>>60640681
Out of...2?
>>
>>60640574

Java is made (and makes more sense) in large scale applications.

If you're coming form something like Python or JavaScript, things feel very slow and cumbersome. And yes, you write a lot of boilerplate code in Java (usually an IDE takes care of the worst boilerplate like getters and setters). But the explicitness and slowness is good for bigger projects with lots of different pieces. Why would use a marker interface for a "hello world" app?

Constructors are interesting because you can have different constructors and chain them:

public class OPisAFaggot {

private String txt;

//default constructor of the class
public OPisAFaggot(){
this.txt = "Default constructor";
}
public OPisAFaggot(String str){
this();
this.txt = str;
}

public static void main(String args[]){
OPisAFaggot op = new OPisAFaggot("poo in loo");
}
>>
>>60640833
>this()
Confirmed to have never used Java outside of a single school assignment.

>But the explicitness and slowness is good for bigger projects with lots of different pieces
Java is shit. The type system is shit. The new functional programming package is shit because the type system is shit.
It's unnecessarily verbose and tedious to both write and read.
Notice how an ide can help you write verbose code but it can't help you read verbose code. Code is read more often than it is written.

Look into Kotlin if you want a slightly better Java.
>>
>>60641347
Just looked into kotlin recently and it fixes so many of my gripes with Java. Even though it uses some of the most unusual syntax for specyfiyng types of variables and output types of functions.
>>
>>60641347

>Confirmed to have never used Java outside of a single school assignment.

If you say so, internet tough dude..

Obviously it's just a simple example, so a real life application would be a lot of complicated configuration in the default constructor. Since code duplication is a bad code smell, you want the complicated stuff in one (and only one) constructor. Then you chain them together.

What's you point?


>Look into Kotlin if you want a slightly better Java.

Yeah, great advice for a NEET.

Java has about 1 million times more jobs/open source project as Java. Not talking about the ecosystem..

I mean I would have accepted C# or even something like Clojure or Scala here. But Kotlin?

Seriously..
>>
>>60641485
OP's talking about Android development. Kotlin just got officially supported by Google on Android.
>>
>>60641485
>reddit spacing

>Obviously it's just a simple example
No you fucking retard, the point is that the parent constructor is called with super(), not this()

>Java has about 1 million times more jobs/open source project as Java. Not talking about the ecosystem..
>I mean I would have accepted C# or even something like Clojure or Scala here. But Kotlin?
Kotlin shares Java's ecosystem. You can call Kotlin code from Java and Java code from Kotlin just fine.
You couldn't even bother to do a single google search before making your retarded post.
>>
>>60641549
>parent constructor
That's when you use inheritance, you use super to call it.

I think what that dude meant is something like having a constructor that takes 4 arguments and you only provide 2, so inside that 2 args constructor you can do something like this(0,arg1,0,arg2);

Calling the 4 argument constructor and not having to code for all the constructors.
>>
>>60640574
>Why is Java so complicated compared to other languages
What? Even PHP is harder than Java since you need to assume the same retarded mindset as the people behind PHP.
>>
>>60641795

>other languages
>PHP
>>
>>60640574
Java is not complicated. it's actually one of the most readable and easy languages there are.

My first language was Python. it has too many gimmicks and shortcuts that you don't really understand how stuff works.

Thanks to Java I love programming
>>
>>60641858
Yeah working with stuff like operator overloading can be so confusing sometimes.

Oh wait Java doesn't even have op overloading. You just have to .equals() everything.
>>
>>60641501
C# + Xamerian makes Android development possible, with the added benefit of being cross platform.
>>
>>60641501
How are the Android APIs on Kotlin?
>>
>>60641549

>No you fucking retard, the point is that the parent constructor is called with super(), not this()


Whoa, what's wrong with you?

There is indeed a difference between "super()" and "this()", the former being the constructor of the super class, the latter being used for the constructor of the same class..


>Kotlin shares Java's ecosystem.

Whatever...
To me the difference is not really important.
>>
Android is just shit.
>>
>>60641549
Ahahaha you fucking retard, you claim someone else has never used Java when you can't even fucking read what simple code is doing
>>
>>60642246
You can call Java functions directly from Kotlin (And Kotlin functions from Java), so the API's literally the same. Kotlin helps out a lot with custom inline functions, operator overloading and other non-java stuff, but the main API's the same.
>>
File: 1495494352023.jpg (615KB, 604x857px) Image search: [Google]
1495494352023.jpg
615KB, 604x857px
it was made by a prison inmate.
its is complicated to hide the hardware lvl code manipulation commands.
like magic.
ever thought it was on another lvl?
>>
>>60640574
Lol java?
>mfw went to try windows programming after you realize GNU/C/C++ is meme lords for communist open sores

Can't understand a single concepts except after reading it 10 times and looking at multiple souces and trying to find an analogy in linux.

You want to be productive don't start with GNU/C/C++ meme
>>
>>60640574
give an example where it's complicated but another language is not.

i've never heard anyone say this before, plenty of people say it's verbose, but complicated, it's like a kids language, you can't even access memory or system APIs directly so you can't break anything
>>
>>60640574
>That moment when you realize you can't code apps on scratch
>>
>>60641347
What's wrong with this()?
>>
>>60640574
Java is for people with jobs. NEET brainlets need not apply.
>>
>>60640574

Java is ridulously easy. It's as simple as it gets, really.

That's the point. 90 IQ pajeets can use it and be productive.
>>
>>60641896

In a backwards-ass language where all object types are implicitly refrences, overloading == would be terrible.
>>
>>60640681
Java is designed for multiple dev to work effectively. Constructor is a contract to let devs other than creator know that the class will work as long as 'x' is provided.
>>
>>60640681
You must be a retarded web-dev. If you want to make every member public feel free to do so.
There are times when you want to use a parameterized constructor to create an immutable class.
Getters are useful to provide copies of collections, or to decorate a parent getter.
Setters are useful to provide validation.
>>
>>60640574
java is very simple compared to other languages
>>
>>60640574
>Java
>Complicated

It's literally one micro step above basic English, pajeet.
>>
The reason enterprise love to use Java is because of J2EE interfaces. It allows dev to choose their own favorite implementation of a specific part of the system.
I.e. I can use Spring + Hibernate, or Spring + EJB. Spring can work with either one because both Hibernate and EJB implements the same set of interfaces.

Not to mention Java app can work in any environment.
>>
>>60642230
Its crap. Don't expect to make a professional app out of it.
Good for small hobbist projects though.
There is also Cordova, React native and most recently Flutter. None of them are meant for pro development.
t. Android dev
>>
>>60644062
>both Hibernate and EJB implements the same set of interfaces
you wot? EJB is a component container and Hibernate is an ORM framework.
>>
>>60644174
Okay my brain farted, will it work if I change it to Hibernate vs Spring JDBC (for performance) ?
>>
>>60640574
Java is a pretty easy language
>>
>>60640574
> java
> so complicated its taught as baby's first programming language throughout the world
>>
>>60644203
not really, but you can change it to Hibernate vs EclipseLink vs MyBatis vs whatever else, because they are all JPA implementations
>>
>>60644203
No.
Nowadays you use spring data JPA, and most frequently you end using hibernate as the implementation, except for the rare cases when you are forced to use EclipseLink.
>>
>>60641858
Same with me. Sure it isn't perfect but it is easy to use without being a total pain in the ass like C++ for desktop software. C# is nice also as it is basically Java. I've not used C# in a while though. WPF was just coming out when I used it last but I think Microsoft has kind of deprecated that now in favour of UWP or something?
>>
install kotlin
>>
>>60640833
I fixed your implementation.
I would have taken off serious points if you showed that during an interview with me.

public class OPisAFaggot {

private String txt;

//default constructor of the class
public OPisAFaggot() {
this("Default constructor");
}

public OPisAFaggot(String str) {
this.txt = str;
}

public static void main(String args[]) {
OPisAFaggot op = new OPisAFaggot("poo in loo");
}
>>
>>60644937
>Original code shows chained constructors.
>"Fixed" implementation does not
>I would have taken off serious points if you showed that during an interview with me.

Shit interviewer.
>>
>>60645063

>>"Fixed" implementation does not
What the hell is this then?
public OPisAFaggot() {
this("Default constructor");
}
>>
File: mock.jpg (29KB, 489x362px) Image search: [Google]
mock.jpg
29KB, 489x362px
>>>60640584
>implying others than street shitters use Javashit.
>>
>>60645087
overloaded constructor
>>
File: IMG_4323.gif (1MB, 360x295px) Image search: [Google]
IMG_4323.gif
1MB, 360x295px
>>60640574
>>
>>60645117
yes
>>
File: pajeet-.jpg (275KB, 1806x778px) Image search: [Google]
pajeet-.jpg
275KB, 1806x778px
>>60645219
top kek.
>>
File: java.jpg (564KB, 2990x1760px) Image search: [Google]
java.jpg
564KB, 2990x1760px
>>60645219
ok
>>
>>60640681

> feed a variable the class
>>
>>60641549
Oh fuck man, Jesus. I'm sorry you're so retarded.
>>
you know a language is shit when you can't be productive without a fucking ide
>>
>>60646135

My Java teacher once told me "don't worry the IDE will write this shit code for you."
Ya but it's still shit code then. That doesn't solve the problem.
>>
>>60640574
The biggest advantage to Java's structure is it eliminates a lot of runtime errors you get in other, less structured languages like Python.
>>
>>60640574
Now you get why all your jobs are being sent to India? If Java was easy, even white people would be able to do it.
>>
>>60646135
IDE makes your job easier and indeed more productive for any language, not just Java. Why people still refuse to use them in current year is beyond me unless you just wanna write some quick snippet.
>>
File: java_poo.png (87KB, 617x408px) Image search: [Google]
java_poo.png
87KB, 617x408px
Enterprise FizzBuzz:
https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition

It might seem like a joke, but it's really not. Javaturds think this is how code should actually be structured.

Java is why there is a backlash against OOP among millennial FP fans. It is over engineered and it encourages over engineering. Fucking .NET is simple and concise by Java standards.

On top of that Java is slow and with the exception of Android produces shit applications. If you need a decent GUI and/or high performance, you need something else. If you don't give a fuck about the end result and just need to hire an army of street shitters for cheap while you milk an investor, you need Java.
>>
>>60640574
reggie is a fag
>>
>>60646371

Java's faster than any of your functional autism, senpai.
>>
>>60646299
The issue isn't with IDEs making stuff easier. The issue is when required to use it even for some basic editing.
>>
>>60646299
i know, i'm just a bit butthurt because my pc is shit (tfw 1 gb ram) and it would rather crap itself than run any ide and the only jobs where i live are all java
>>
>>60640574
You should learn to compile/run Java without IDEs first (ie, learn to walk before you learn to run). Java + Android Studio is not recommended for beginners.
>>
File: ss-2017-05-29-20-59-14.png (270KB, 936x753px) Image search: [Google]
ss-2017-05-29-20-59-14.png
270KB, 936x753px
>>60646371
>Javaturds think this is how code should actually be structured.
If it's a 100k LOC enterprise application then of course. If it's a fizzbuzz then of course not.

>It is over engineered
If by over engineered you mean suitable for large applications then sure.

>and it encourages over engineering.
If by over engineering you mean creating extensible and maintainable large applications then sure.

>On top of that Java is slow
Java is fast.

>If you need a decent GUI and/or high performance, you need something else.
Not really, see JetBrains products.
>>
>>60646135
You don't need to use an IDE for Java. You're not force to use an IDE for Java.
>>
>>60640574
>I fucking hate learning this shit but I have to for Android
Same
I usually work with 8 bit micrcontrollers, sometimes even 32 bit ARM ones, assembly and all kinds of small embedded shit. Im pretty used to C, made a lot of shit in it, socket programming, bit of GUIs, you name it.
Then i feel the need to learn java because in my toolkit, i have exactly zero of those "widely used high level programming languages", C++ doesn't count for most part.

I try to learn java and damn, it is so ugly looking i dont even feel like learning it, but i have to because its so widely used and its applications are immense. So here i am forcing Java down my neck. Its mostly the scary sounding concepts and lack of motivation to learn thats keeping me away, that i'll tell you
>>
>>60646675

>scary sounding concepts
what could possibly be scary about Java?
>>
>>60646675
Join the master race: C#
>>
>>60646714

C# is ugly as fuck

at least Java has purity
>>
>>60646675
Don't worry, some really smart and clever people decided Java should be usable even on embedded devices and RFID cards (Javacard), so you'll be able to program shitty Java code for just as many embedded devices as with C
>>
>>60646733
C# is a fixed Java.
>>
>>60646769

C# just makes me wish I was writing C++ or maybe D instead.
>>
>>60646713
>what could possibly be scary about Java?
Constructors, polymorphism, inheritance, etc
Well its not like java is bad, its just that i haven't given it the time required to learn a new language or skill
>>
>>60646798
All of those things are easier in Java than in C++. Java is shit, but because of different reasons.
>>
>>60646868

Those all look pretty much the same in either language.
>>
Just just kotlin, it's 100% interoperabile with Java. It even has tools that can convert your kotlin code into Java so the Pajeet boss doesn't know.

KOTLIN
O
T
L
I
NIGGERS
>>
>>60647134

looks like shit though
>>
>>60647187
You mean like Java code?
>>
>>60647212

Java's syntax is ok, kotlin is just different for the sake of being different
>>
>>60647260
Kotlin removes boiler plate code, discourages nullables, and makes the syntax prettier. It's supposed to just be an improved Java.
>>
File: Screenshot_2017-05-29-23-23-22.jpg (823KB, 1440x2560px) Image search: [Google]
Screenshot_2017-05-29-23-23-22.jpg
823KB, 1440x2560px
>>60646371
>Add bluetooth support
Fizzbuzz pvp when?
>>
>>60646891
Lol, fucking undergraduate retard.
>>
>>60647929

nice argument bro
>>
File: 1485894682225.jpg (74KB, 807x802px) Image search: [Google]
1485894682225.jpg
74KB, 807x802px
>>60646733
>Java has purity
>>
>>60640574
>complicated

even curryniggers can learn java
kys if white
>>
>>60648783

As far as syntax goes, yeah it does. Java's language rules are pretty minimal.
>>
>>60646513
>>Javaturds think this is how code should actually be structured.
>If it's a 100k LOC enterprise application then of course.
You're what's wrong with Java development.

>>It is over engineered
>If by over engineered you mean suitable for large applications then sure.
No. I mean overly complicated. A dozen classes and 15 interfaces to implement a simple fucking function.

>>and it encourages over engineering.
>If by over engineering you mean creating extensible and maintainable large applications then sure.
Java apps are the exact opposite of extensible and maintainable.

>>On top of that Java is slow
>shows a pic of irrelevant STACK benchmarks
>"Java is fast."
Try implementing any CPU or memory I/O intensive algorithm in C, C++, and Java, and see which one gets its ass kicked to the curb.

>>If you need a decent GUI and/or high performance, you need something else.
>Not really, see JetBrains products.
>kek
I once had to use the JetBrains IDE and it made me want to murder a JetBrains developer. Takes forever to launch; forever to open a project; can't keep up with typing; crashes every 5 minutes; and managed to max out a fucking core i7.

Ever hear of CodeWarrior? It was a popular IDE on Power Macs in the late 1990's. It was far faster and more responsive than JetBrains, and that was on 100 MHz chips with 8-16MB of RAM.
>>
File: 1491288219423.jpg (13KB, 467x359px) Image search: [Google]
1491288219423.jpg
13KB, 467x359px
>>60649072
>As far as syntax goes, yeah it does. Java's language rules are pretty minimal.
>purity

>What is Pure Java? I've heard that its 100%, so if I only use Java code and no external applications, is my code 'pure'?

>Answer 100% Pure Java code is code that conforms to the Java ideal of universal portability. Writing an application that doesn't exploit operating system/platform specific features is a great start, but you also have to write the code in a platform neutral way. This includes things such as not hardwiring the '/' symbol as a file separator on Unix systems, as this will fail on a Wintel system that use '\'. If you don't rely on the core Java API's, and instead use native methods, this can also disqualify an application from being 100%. Developers who wish to use the 100% Pure Java logo must have their application independently verified, using the Java Purity Checker software. Full details are available from Sun, but developers who wish to write portable code can read the 'cookbook' for writing pure applications for free.
http://www.javacoffeebreak.com/faq/faq0006.html
>>
>>60646745
>java for embedded
>now your "microcontroller" requires 16 cores and 32gb of RAM
Fuck Java.
>>
>>60649131

You're confusing purity of the structure and syntax of the language with the purity of the code you're writing.
>>
>>60649112

>No. I mean overly complicated. A dozen classes and 15 interfaces to implement a simple fucking function.
You're just making shit up lol
>>
>>60648092
No point in educating a retard.
>>
>>60640833
>boilerplate like getters and setters
You remind me of a kid who used to auto generate getters and setters for everything and then not use them.
>>
>>60649178
>t. never worked on a java project
No, the nightmare is real. Enterprise FizzBuzz is real.
>>
How many of you guys with jobs actually see the supposed benefit of Java on huge enterprise projects?
Like... I understand that Java is engineered the way it is in order to make armies of Pajeets productive on a single project with hundreds of thousands of lines of code.
But my problem with Java is that a good chunk of enterprise business development (that I've experienced) is not a huge project with hundreds of thousands of lines of code. A lot of the code I've written has been relatively small and the entire project done by me and a couple of other people, just to solve some immediate business need. Sure maybe Java makes a huge project overall more manageable, but for the 90% of small things you have to put up with all the verbosity and boilerplate and Java bullshit anyway because managers, pajeets, and middle aged developers are afraid of anything else.
>>
>>60649326
At one time hard math was used to keep people out of software development who really had no business being in software development. Those days are long gone and the industry is flooded with pajeets and coder camp 'graudates.'

I suppose with an army of pajeets Java's broilerplate is necessary to minimize the damage done by fuck ups. But if you didn't have pajeets in the field it wouldn't be needed.

OOP can be very good even on a one man project (depending on the project). But with a team of real engineers you don't have to have the inane complexity and separation found in Java.

If you have any talent as a developer and you've worked on smaller projects with other decent developers you quickly realize how ridiculous Java is.
>>
>>60649112
>You're what's wrong with Java development.
I think you're overestimating my influence.

>No. I mean overly complicated. A dozen classes and 15 interfaces to implement a simple fucking function.
Do you have an example?

>Java apps are the exact opposite of extensible and maintainable.
All of the big players that are using Java seem to think otherwise.

>Try implementing any CPU or memory I/O intensive algorithm in C, C++, and Java, and see which one gets its ass kicked to the curb.
None of them if the implementations are good.
Is 1 million writes per second enough for you?
https://medium.com/netflix-techblog/benchmarking-cassandra-scalability-on-aws-over-a-million-writes-per-second-39f45f066c9e

>I once had to use the JetBrains IDE and it made me want to murder a JetBrains developer. Takes forever to launch; forever to open a project; can't keep up with typing; crashes every 5 minutes; and managed to max out a fucking core i7.
I watched a lot of talks with people demoing their stuff in IntelliJ on shitty macbooks and it never lagged or crashed.

>Ever hear of CodeWarrior? It was a popular IDE on Power Macs in the late 1990's. It was far faster and more responsive than JetBrains, and that was on 100 MHz chips with 8-16MB of RAM.
That's fantastic, but irrelevant.
>>
>>60649771
>Do you have an example?
Can you Google?

>All of the big players that are using Java seem to think otherwise.
Rational fallacy. Do you have any experience in corporate America? IT decisions are rarely based on a rational evaluation of all options.

>None of them if the implementations are good.
Translation: you've never tried it.

>Is 1 million writes per second enough for you?
It's meaningless without a comparison test using another language. You're just impressed by the headline of "muh million writes per second!"

But even without a comparison in another language, if we break the numbers down they're less than impressive.
96 instances.
Each instances had 4 cores, 15gb ram, and 4 separate disks.
Per instance write requests were <12k per second and less than 12 MB/s of data.

They got to 1 million write requests per second by scaling out to 384 processors with 384 disks. I'm betting if Cassandra was a C++ project performance would be much higher and possibly NIC bound per instance.

>I watched a lot of talks with people demoing their stuff in IntelliJ on shitty macbooks and it never lagged or crashed.
"Lag" is relative. If you've never used a real IDE you wouldn't know what "lag" is.

Time to launch JetBrains PyCharm: 39s
Time to launch Xcode: 2s

>>Ever hear of CodeWarrior? It was a popular IDE on Power Macs in the late 1990's. It was far faster and more responsive than JetBrains, and that was on 100 MHz chips with 8-16MB of RAM.
>That's fantastic, but irrelevant.
Oh it's very relevant. It shows how shit modern Java is when a C++ application from the 90's running on a 90's CPU can spank a 2017 Java IDE's ass.
>>
>>60649771
>>60651336

Scylla is a Cassandra compatible rewrite using C++ 14. Performance gains increase with core count. In some tests it's "only" 2x faster. But when Samsung tested it on 24 core machines it was 10x to 37x faster than Java based Cassandra, depending on the test workload.

https://en.wikipedia.org/wiki/Scylla_(database)
>>
creasing a simple android program is ridiculous.
>>
C# doesn't have this problem.
>>
File: mfw.jpg (11KB, 196x241px) Image search: [Google]
mfw.jpg
11KB, 196x241px
>>60640574
>java is easy
>android dev is easy
>people bitch about android studio all the time but it's really easy
>>
>>60652024
C# is more complicated than Java, it has more syntax sugar to figure out and more keywords to remember
>>
I don't understand all the hate for OOP. I don't think it's really OOP that is the problem, I think people tend to over abstract things sometimes, but it's a straightforward way to represent stateful data and organize related functions. I don't see what's so complicated
>>
File: 34657272813462.png (305KB, 600x700px) Image search: [Google]
34657272813462.png
305KB, 600x700px
>>60640574
>>>>>>>>>>>>>>>>java is hard

>no pointers
>garbage collection
>is awful on it's own so you can blame it for your code running like shit.

get out.
>>
>>60640612
Its not though. What's easier, cin or out vs choose scanner or buffer in, name that shot, recall it to name the variable with in command than you have to close that shit up. God forbid you have to compare strings or different variables when in c++ you can override. Java type is garbage
>>
>>60643277
it's literally pointless txt is overwritten right away.
>>
>>60654196

what the hell is up with that anyway?
Why does Java have a million different stream objects depending on whether you want to read/write bytes, chars, lines etc. but C++ just has one istream and one ostream?
>>
>>60643196
Ofc you can with unsafe
>>
>>60644216
>OOP
>baby's first programming language
what are you, retarded?
>>
>>60655495

Clearly people are introduced to programming with Lisp and Haskell instead.
>>
>>60655344
Just different implementations of the same depending on what your use case is
>>
>>60655495
Not sure what your point, I learned pascal at school as my first language and it was hard as fuck to adjust to real language (cpp) in uni.
>>
>>60644937

>I fixed your implementation.

No you didn't.
The closing brace is still missing..


>I would have taken off serious points if you showed that during an interview with me.

Have you read my explanation here (>>60641485
) ?

I wrote:
>Obviously it's just a simple example, so a real life application would be a lot of complicated configuration in the default constructor. Since code duplication is a bad code smell, you want the complicated stuff in one (and only one) constructor.

For example:

BTW it's been a while since I wrote Java code, so maybe my code wasn't 100% style guide like. It was to illustrate what you can do with constructors, not to show off my Java skills.

So how about that:

public class OPisAFaggot {

private String txt;
private int val;

public OPisAFaggot(String txt, int val) {
// todo: implement the functions
this.txt = checkGrammar(txt);
this.val = sumOfPrimesUntil(val);
}

public OPisAFaggot(String txt) {
this(txt, 2000000);
}

public OPisAFaggot() {
this("OP is a faggot.", 2000000);
}


public static void main(String[] args) {
OPisAFaggot op = new OPisAFaggot("poo in loo");
}
}
>>
>>60656148

>inb4 "hurr, sum of primes with an int"

Obviously my function takes care of that and throws an exception if the upper bound is too high..
>>
>tfw mfw

! test
!test
!jdnfkjsdnfkkkkdnsfkjsdnf
sdfkjnksdjnf
!unfsdkjfndksfj
dfkjdnsfk
>>
>>60640574
java isn't complicated, just verbose
>>
>>60640574
>java complicated
t. brainlet
>>
>>60656045
>>60655589
The first language I've been taught was absolutely basic C, then C++, python and java were later. No point in mentioning various web stuff, like html, css, js and so on
Starting with OOP is an overkill for people who never programmed before
Thread posts: 122
Thread images: 14


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.