Avatar of Host

Status

User has no status, yet

Bio

User has no bio, yet

Most Recent Posts

<Snipped quote by Host>

I think I get what I need now. Lemme try it.

Also we're only allowed to use resources we've been given, and that doen't include importing system.

Also also, are they not already?

Also also also, thank you.


Super not fair.

Camelcase makes the first letter of the variable lowercase. So you'd end up with v1 and v2, becauseAll ofYour variablesWouldLook likeThis1.

<Snipped quote by Host>

That does definitely make sense. Just wanted to make sure.

<Snipped quote by Galaxy Raider>

Okay so in future maybe mention what line is the error and put your { as a seperate line unless CS doesn't let you do that. It looks better and is easier to parse mentally.


Yeah, absolutely.

Technically that's a stylization thing, but putting the brace on its own line is the objectively superior style.
Dahv, could you help me out with something real quick?

What on Earth am I doing wrong with my method creation? Am I just missing something because I don't know of some other step(s) I need to do or what?


Your problem is that you're trying to put your Main in a separate class. You don't declare Class functions in Main; you declare them in the class itself and then call that Class' object (or static methods) from Main.

<Snipped quote by Galaxy Raider>

It's not as simple as a typo with "Scanner in" needing to be "Scanner.in" is it?


Nah, it uses System.in as a parameter to construct a Scanner object because it pulls from System input. Scanner.in would be pulling a parameter from its own static variable, in which case it could forgo using parameters altogether.

<Snipped quote by DarkwolfX37>

Nah. That isn't even an error actually. My only error is in Line 4, where I am trying to create a method. I get an error telling me that "void" is not a valid type for the variable "swapFunction".


It gives you that error because it thinks your function is a variable, since you can't declare functions in Main (though you can do this in JavaScript).

Also please import System. It makes it way easier.
And camelcase your variables.
<Snipped quote by souleaterfan320>

<Snipped quote by Host>

Trust me. I will have no problem dealing with warships, no matter how strong.


That is quite the absolute.
<Snipped quote by Host>

True...


Mhm.
<Snipped quote by Host>

Alright, then thats setlled. However, how could just one ship do that much damage? Each base is equipped with defensive measures.


The power of warships is typically revered.
<Snipped quote by Host>

*shrugs*

Anyways, back on the topic at hand, what do you make of it?


Regarding your incorrect data? I believe we are far more likely to be capable of trusting your eyewitness accounts.
<Snipped quote by Host>

*makes a disgusted face* please tell me that was a joke.


You be the judge.
<Snipped quote by Host>

On the go, yes. Most of my recent time is spent developing new chemical, metals, and otherwise. Or beibg a polotician.


Ah, yes. The wonderful world of politics.
<Snipped quote by Host>

Shinji: I programmed the Exodus units, didnt I? And the Wheel Of Fate. With david's help. There's your answer.


David has received formal training. Have you?
<Snipped quote by Host>

Yes. Yes i do. Mainly because technology is just as falliable as beings, if not worse.


...

<Snipped quote by whizzball1>

*rolls eyes and ignores you*


...I would like to know the answer to that question as well.
© 2007-2026
BBCode Cheatsheet