Which is better for newbies?

Which is better for newbies, Jgrasp or Netbeans? I need something that explains errors more thoroughly than Jgrasp.
[122 byte] By [mrb62a] at [2007-11-27 7:33:53]
# 1
> Which is better for newbies, Jgrasp or Netbeans? [url= http://en.wikipedia.org/wiki/Mu_(negative)]Mu[/url].~
yawmarka at 2007-7-12 19:14:14 > top of Java-index,Java Essentials,New To Java...
# 2

Best thing to do is try them all. Its normally personal preference which decides how good an app is.... There is a lot out there. If you are a complete beginner, apps such as BlueJ allow you to call individual methods etc.... but if you want a full on IDE then eclipse or netbeans are quite common choices.

ita6cgra at 2007-7-12 19:14:14 > top of Java-index,Java Essentials,New To Java...
# 3
I belive the errors you get are the same in both (or any) ide.You should try to learn to understand it.
Leo77a at 2007-7-12 19:14:14 > top of Java-index,Java Essentials,New To Java...
# 4
Thanks for that answer. Too many smart alecks in these forums. I guess I'll stick it out with JGrasp since they're all pretty much the same
mrb62a at 2007-7-12 19:14:14 > top of Java-index,Java Essentials,New To Java...
# 5
If you need help understanding errors and you need pointers in the right direction post it on here, thats what the forums are here for ;-)
ita6cgra at 2007-7-12 19:14:14 > top of Java-index,Java Essentials,New To Java...
# 6

Here's my code with 3 errors. Now bear in mind that my program has compiled completely and ran correctly up to this method. All I'm trying to do with this method is get the average of all grades in a multi-array. I researched and found some code that was similar to what I needed to do but it's not working out yet. All other methods in my program work perfectly but I can't get this one to compile.

public double getMean(int allGrades[][])

{

int total = 0;

for (int grade : allGrades)

total += grade;

System.out.println("Total is "+getMean(grades));

}

return total/allGrades.length;

} // end class GradeBook

Gradebook.java:100: illegal start of type

return total/allGrades.length;

^

Gradebook.java:100: <identifier> expected

return total/allGrades.length;

^

Gradebook.java:100: <identifier> expected

return total/allGrades.length;

^

3 errors

mrb62a at 2007-7-12 19:14:14 > top of Java-index,Java Essentials,New To Java...
# 7

> [url=http://en.wikipedia.org/wiki/Mu_(negative)]Mu[/url].

Heh heh, [url=http://en.wikipedia.org/wiki/MOO_programming_language]Moo[/url].

Seriously, there was more in Yawmark's reply than you gave him credit for. Mu means "none", and that's what he's trying to tell you. If you're a newbie, then you should try it without an IDE for a bit, until you're comfortable with the way the compiler and java VM work.

Then, and only then, should you branch out into IDE's. It is quite painful developing big Java projects without them, but while you are learning how things work, the IDE will serve only to discourage and frustrate you with more complexity to an already daunting task.

kevjavaa at 2007-7-12 19:14:14 > top of Java-index,Java Essentials,New To Java...
# 8
Your return call is outside your method.I agree with the no IDE route. Thats the best way to learn a language. Use wordpad. If you want easy compilation and execution with a good editor, try JCreator LE. I would not recommend starting with NetBeans.
DarumAa at 2007-7-12 19:14:14 > top of Java-index,Java Essentials,New To Java...
# 9

"Your return call is outside your method."

Ok I fixed that and now I have one error which is

"incompatible type" at the "for" line

found: int[]

required: int

for (int grade : allGrades)

What does that actually mean? Does it mean an array is used when it should not be used?

mrb62a at 2007-7-12 19:14:14 > top of Java-index,Java Essentials,New To Java...
# 10

> "Your return call is outside your method."

>

> Ok I fixed that and now I have one error which is

>

> "incompatible type" at the "for" line

>

> found: int[]

> required: int

> for (int grade : allGrades)

>

> What does that actually mean? Does it mean an array

> is used when it should not be used?

You're using a two-dimensional array, and trying to pull a single int out of it.

Remember, your for-each construct is doing the equivalent of:

for (int i = 0; i < allGrades.length; i++)

{

int grade = allGrades[i]; // <-- This is an int[], not an int.

// ...

}

kevjavaa at 2007-7-12 19:14:14 > top of Java-index,Java Essentials,New To Java...
# 11
[code] for (int grade : allGrades)total += grade;[ /code]This is your problem!! your int grade should be int[] grade as the for loop will be going through every entry in your array. Each entry is another array not just an int.
ita6cgra at 2007-7-12 19:14:14 > top of Java-index,Java Essentials,New To Java...
# 12
Have you thrown away the IDE yet?
r035198xa at 2007-7-12 19:14:14 > top of Java-index,Java Essentials,New To Java...
# 13
"Have you thrown away the IDE yet?"No way dude. I can't write using Wordpad. I need something to guide me along even if all my code is wrong.
mrb62a at 2007-7-12 19:14:14 > top of Java-index,Java Essentials,New To Java...
# 14

> "Have you thrown away the IDE yet?"

>

> No way dude. I can't write using Wordpad. I need

> something to guide me along even if all my code is

> wrong.

Try [url=http://www.textpad.com/]Textpad[/url], it's pretty nice (although not free). Or, if you're like me, use [url=http://www.vim.org/]Vim[/url]. Both offer syntax highlighting without the fuss of an IDE.

kevjavaa at 2007-7-12 19:14:14 > top of Java-index,Java Essentials,New To Java...
# 15
[url http://geeklondon.com/blog/view/holy-wars]Which is the best editor?[/url]
dcmintera at 2007-7-21 22:16:25 > top of Java-index,Java Essentials,New To Java...
# 16
> Too many smart alecks in these forums.Hmm. Okay, well, good luck with your studies.~
yawmarka at 2007-7-21 22:16:25 > top of Java-index,Java Essentials,New To Java...