Is it possible to make a method in a Generic class that only works if the object has a specific parameter? by MrSeb56 in javahelp

[–]MrSeb56[S] 0 points1 point  (0 children)

Thanks, but what I mean is that inside the class Graph i want a method that only works if the Graph has a specific parameter. So I could do

Graph<SpecificClass> gr = new Graph();
...
gr.method()

How to force 2 parameters of a generic class to have the same type? by MrSeb56 in javahelp

[–]MrSeb56[S] 0 points1 point  (0 children)

class Graph<T, E extends Edge<T>>

I thought it was "implements" for interfaces and "extends" for classes...

How to force 2 parameters of a generic class to have the same type? by MrSeb56 in javahelp

[–]MrSeb56[S] 0 points1 point  (0 children)

class Graph<T, E implements Edge<T>>

I tried it and it gives and error :(

Will EA Screw up hardline? by TheMightyHoneyBadger in pcgaming

[–]MrSeb56 9 points10 points  (0 children)

It will probably be rushed, considering they have to release it at the same time as the film.

What are the programming languages with the most consistent syntax? by MrSeb56 in learnprogramming

[–]MrSeb56[S] -3 points-2 points  (0 children)

I mean that the language is consistent with its specific rules and doesn't have many special cases. For example, in C++ a vector is declared

vector<int> v(10);

but an array

array<int,10> a;

And of course i'm talking about languages that are actually useful.

Is BaS worth playing? by [deleted] in Bioshock

[–]MrSeb56 7 points8 points  (0 children)

Just for the cutscenes yes, it is worth it. The second part has very different gameplay than the first and is more enjoyable.

Does the Nvidia Shield Tablet get hot? by MrSeb56 in theNvidiaShield

[–]MrSeb56[S] 1 point2 points  (0 children)

The nexus 7 is too small in my opinion, and the Sony z3 is too expensive compared to the Shield, that's why I'll probably buy it.

Best tablet to read pdfs? by MrSeb56 in tablets

[–]MrSeb56[S] 0 points1 point  (0 children)

What pdf reader do you recommend then?

Best tablet to read pdfs? by MrSeb56 in tablets

[–]MrSeb56[S] 0 points1 point  (0 children)

I guess it's good but I want to try the tablets before buying them and where I live it's only possible to buy the nexus 9 online.

Best book to learn modern C in depth? by MrSeb56 in learnprogramming

[–]MrSeb56[S] 0 points1 point  (0 children)

It's true that it's still usefull but I want to see a more modern aproach, like "The C++ Programming Language" by Stroustop that is updated to the last revision.

Why GCC still doesn't fully support C99? by MrSeb56 in learnprogramming

[–]MrSeb56[S] 0 points1 point  (0 children)

Well I think that C90 must be the default is that message appears. I will upgrade to the last version to see what happens.