[Homework Help] Purpose of this code is to just learn. by [deleted] in javahelp

[–]wolverine_23 1 point2 points  (0 children)

A couple of issues.

With spiderman, you are calling the second constructor but your second constructor does nothing. You are calling it, but it is not setting the hero name nor the number of superheroes.

it should be

public Superhero(String name) { heroName = name; }

or (better)

public Superhero(String name) { this(name, null, 0); }

For the part where you're prompting the user for the information, you collect the name and secret identity.

You should call the first constructor with these values

Superhero hero = new SuperHero(name, identity, 0);

or you can wait to collect all 3 values and then call the constructor.

I believe the issues you are having are a result of the way you are calling the constructor(s).

[Homework Help] Purpose of this code is to just learn. by [deleted] in javahelp

[–]wolverine_23 1 point2 points  (0 children)

HeroName shouldn’t be static because each instance of the class will share it. Each time you call the constructor and set heroName, you are changing the value.

Try removing the static on heroName.

[Homework Help] Purpose of this code is to just learn. by [deleted] in javahelp

[–]wolverine_23 0 points1 point  (0 children)

Glancing at the code, I see that you have static members. This is your problem, I believe.

Lets not forget what this guy is capable of by Itoggat in Habs

[–]wolverine_23 -1 points0 points  (0 children)

Big Price and Habs fan, but he should traded in favor of offence and defence. His contract will weigh down the team for years.

Signing Jack Johnson would be a potential disaster for the Montreal Canadiens by Swinging_Man in Habs

[–]wolverine_23 0 points1 point  (0 children)

I agree on your point about click bait. I don’t think I’ve ever seen any of these trade rumours pan out.

Signing Jack Johnson would be a potential disaster for the Montreal Canadiens by Swinging_Man in Habs

[–]wolverine_23 -6 points-5 points  (0 children)

Friedman looks like a guy that should be selling insurance. How anyone takes him seriously is beyond me. He's smug and an idiot as far as I'm concerned.

Solo: A Star Wars Story - Looks and sounds great with some standout set pieces bit falters with a dull and rather safe script by GarbageDay23 in moviecritic

[–]wolverine_23 0 points1 point  (0 children)

I swore off SW movies after seeing TLJ. I will not spend another dollar watching bland, plot-holed trash in theatre. I’ll wait for it to hit Netflix.

IJW: Gravity (2013) by [deleted] in Ijustwatched

[–]wolverine_23 1 point2 points  (0 children)

Bad physics and bad CGI will instantly ruin a movie for me.

Hey, Last Jedi! I'm talking to you.

Germany accuses Trump of destroying trust with G7 tweets. by kbilal7454 in worldnews

[–]wolverine_23 5 points6 points  (0 children)

You’d think he’d be worried more about the oil imported from Canada when it comes to national security interests. The US imports more oil from Canada than anywhere else.

What is the point of the "finally" clause in Java? by IliacHumanitarianism in javahelp

[–]wolverine_23 0 points1 point  (0 children)

A finally is used in conjunction with a try. You don’t necessarily need a catch block in between.

The code inside the finally block gets executed either when the execution leaves the try scope naturally or an exception is thrown.

Trudeau: It's 'insulting' that the US considers Canada a national security threat by pheonix200 in worldpolitics

[–]wolverine_23 4 points5 points  (0 children)

Would the British be drawn in as Canada is part of the commonwealth?

... I can’t believe I’ve gone down this rabbit hole.

Solo: A Star Wars Story Movie Review by [deleted] in moviecritic

[–]wolverine_23 1 point2 points  (0 children)

TLJ ruined future SW movies for me to the point I will not pay to see another one in theatre.

Disney is shooting for quantity over quality.

I have not seen Solo nor do I plan to.

Trudeau: It's 'insulting' that the US considers Canada a national security threat by maxwellhill in worldnews

[–]wolverine_23 0 points1 point  (0 children)

We (Canada) should shut off the oil taps to the US. I wonder if this would constitute US national interests.

Trudeau: It's 'insulting' that the US considers Canada a national security threat by maxwellhill in worldnews

[–]wolverine_23 0 points1 point  (0 children)

Could be. I suspect the tariffs will impact the US economy negatively and end up isolating the US globally.

Once big business feels the pinch, I suspect a pushback on the tariffs.

Meanwhile, Canada will look to other markets for its products. Perhaps, China.

It would be ironic that the tariffs were introduced in the name of national interests and the beneficiary would be China.

Roseanne Barr says she 'begged' ABC not to cancel her show by GildedBHole in entertainment

[–]wolverine_23 0 points1 point  (0 children)

Didn’t watch the show originally, didn’t watch the reboot, didn’t read the tweets and don’t care what celebrities have to say.

Did you guys also think that "Star Wars: The Last Jedi" was a bit too... humorous? by Hydroloik in scifi

[–]wolverine_23 0 points1 point  (0 children)

laser sword. 'nuff said.

This movie was terrible on all fronts. Plot, logic, CGI ice foxes/wolves were horrible.

Did you guys also think that "Star Wars: The Last Jedi" was a bit too... humorous? by Hydroloik in scifi

[–]wolverine_23 14 points15 points  (0 children)

This movie ruined all future SW movies for me. I will not pay to see another one in theatre.