no more java!

Gibson486

Lifer
Aug 9, 2000
18,378
2
0
I came out of C++ thinking i was the sh*t because I got an A on my final and finished it in 30 minutes. Fast Foward to now! I am taking Java and I am now regretting taking CE!. Look at my Homework!. I though it would start out as an intro to java class then progress slowly to more complex stuff, but now I am finding myself wirting a program that needs atleast 1000 lines of code. I miss intro to c++:( I guess this is the Java way of doing things (and teaching things).

<-----gonna be up for the next 3 days with no sleep.

On a side note, my prof is so geeky that he is always making refrences to the acronym "Fubar".
 

dabuddha

Lifer
Apr 10, 2000
19,579
17
81
Originally posted by: Gibson486
I came out of C++ thinking i was the sh*t because I got an A on my final and finished it in 30 minutes. Fast Foward to now! I am taking Java and I am now regretting taking CE!. Look at my Homework!. I though it would start out as an intro to java class then progress slowly to more complex stuff, but now I am finding myself wirting a program that needs atleast 1000 lines of code. I miss intro to c++:( I guess this is the Java way of doing things (and teaching things).

<-----gonna be up for the next 3 days with no sleep.

On a side note, my prof is so geeky that he is always making refrences to the acronym "Fubar".

That actually looks pretty easy but time consuming (and fun!) C++ sucks majorly compared to Java. Coding is just so much easier in Java for me.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
What were you smoking when you thought up the idea that a class entitled "Algorithms and Data Structures for Engineers" would be an Intro to Java Programming?
 

beer

Lifer
Jun 27, 2000
11,169
1
0
I program in C and motorola assembly. True EE. None of this BS high level crap that never actually plays out :)
Me > you

j/k

Java scares me. But I'll never have to take a java course, so I'm happy.
 

Feldenak

Lifer
Jan 31, 2003
14,090
2
81
Originally posted by: notfred
What were you smoking when you thought up the idea that a class entitled "Algorithms and Data Structures for Engineers" would be an Intro to Java Programming?

Was thinking the same thing. :)
 

iotone

Senior member
Dec 1, 2000
946
0
0
java has tons and tons of good, useful functions, but the whole virtual machine thing just makes it run so slow...

i guess it just depends on what you're using java for, tho it is getting better.
 

FeathersMcGraw

Diamond Member
Oct 17, 2001
4,041
1
0
If something takes significantly more lines of code in Java than C++, you probably were writing C code.

Although this "restricted Java" makes me wonder why you're even bothering to use Java at all, since you're all but ignoring the encapsulation and polymorphic constructs of the language.
 

Gibson486

Lifer
Aug 9, 2000
18,378
2
0
What were you smoking when you thought up the idea that a class entitled "Algorithms and Data Structures for Engineers" would be an Intro to Java Programming?

Nah, it is required to take, but i thought they would atleast run through all the differences in syntax from c++, which they didn't. I dont think it is that hard, but i am really struggling to figure out the syntax for java. I never really went over classes in C++ (does c++ have them?), but the prof. just assumed that we all knew it and as you guessed, we did not.

Although this "restricted Java" makes me wonder why you're even bothering to use Java at all, since you're all but ignoring the encapsulation and polymorphic constructs of the language.

we start that during the 2nd half of the semester.

this sucks, i odnt even have a working java compilier yet. I borrowed code warrioe off of my freind, but it just keeps crashing. I tried Eclipse, but I have no idea how to compile on it.
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Originally posted by: notfred
What were you smoking when you thought up the idea that a class entitled "Algorithms and Data Structures for Engineers" would be an Intro to Java Programming?
Exactly -- the fact that it uses java has very little to do with the difficulty of this class.

Sounds like you need to take "an introduction to reading course descriptions" next ;)

never really went over classes in C++ (does c++ have them?)
Yikes, that must be a pretty weak intro class if they didn't even teach you C++ classes, which are the main thing that makes it C++ instead of just C.

 

Zombie

Platinum Member
Dec 8, 1999
2,359
1
71
HW doesn't look too bad. It might take some time but algorithm seems to be straight forward. Most java classes that expect you to know C/c++ will not go thru intro to java part of the book.

get the quick reference book for java and you should be OK! :)...good luck.


If you don't know what classes are I suggest you learn them QUICK.

Don't be scared of syntax differences just buy a reference book and you will be OK. No school is ever going to teach you syntax they will teach you programming concepts and theories but not syntax. You are supposed to figure out syntax on your own as you go along your class Homework.
 

FrogDog

Diamond Member
Jan 12, 2000
4,761
0
0
Originally posted by: Gibson486
What were you smoking when you thought up the idea that a class entitled "Algorithms and Data Structures for Engineers" would be an Intro to Java Programming?

Nah, it is required to take, but i thought they would atleast run through all the differences in syntax from c++, which they didn't. I dont think it is that hard, but i am really struggling to figure out the syntax for java. I never really went over classes in C++ (does c++ have them?), but the prof. just assumed that we all knew it and as you guessed, we did not.

Although this "restricted Java" makes me wonder why you're even bothering to use Java at all, since you're all but ignoring the encapsulation and polymorphic constructs of the language.

we start that during the 2nd half of the semester.

this sucks, i odnt even have a working java compilier yet. I borrowed code warrioe off of my freind, but it just keeps crashing. I tried Eclipse, but I have no idea how to compile on it.
In eclipse, pressing the save button compiles.

 

Gibson486

Lifer
Aug 9, 2000
18,378
2
0
Don't be scared of syntax differences just buy a reference book and you will be OK. No school is ever going to teach you syntax they will teach you programming concepts and theories but not syntax. You are supposed to figure out syntax on your own as you go along your class Homework.

I guess my prof is doing good, cause i ctually understand teh concepts. I just do not know how to use them in the code.
 

ebaycj

Diamond Member
Mar 9, 2002
5,418
0
0
Originally posted by: Gibson486
this sucks, i odnt even have a working java compilier yet. I borrowed code warrioe off of my freind, but it just keeps crashing. I tried Eclipse, but I have no idea how to compile on it.


1.)go download the java 1.4.x SDK from java.sun.com.
2.)install it.
3.)open a command prompt.
4.)type 'javac Blah.java' (no quotes) to compile 'Blah.java'
5.)type 'java Blah' (no quotes) to run 'Blah.class' after you compiled it from 'Blah.java'.
6.)rinse, repeat.


Oh, and, that homework is friggin easy. multiplying matrices? hard? please.

ebaycj
 

Zombie

Platinum Member
Dec 8, 1999
2,359
1
71
Originally posted by: Gibson486
Don't be scared of syntax differences just buy a reference book and you will be OK. No school is ever going to teach you syntax they will teach you programming concepts and theories but not syntax. You are supposed to figure out syntax on your own as you go along your class Homework.

I guess my prof is doing good, cause i ctually understand teh concepts. I just do not know how to use them in the code.


If you don't understand what concepts you wanna use to do your homework then you have more pressing problems that need to fixed before you start looking at java.

Generally you can't sit in front of a computer and start typing your program. There is a lot of design work that needs to be done even before you open your notepad. If you make a solid design(psedocode) then you will know what concepts from your class you need to use.


All you need is Java SDK from sun website, paper, pencil and notepad.exe to do your homework.
 

edro

Lifer
Apr 5, 2002
24,326
68
91
I love Java compared to C++. The networking capabilities of Java are awesome. I just got done making a file sharing Java applet that actually works. Well... I got it to send text files, but the 74mb LOTR trailer froze up the applet. :D
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
After a bit more thought (mmm, Wolfgang Puck Chicken Noodle soup) it sounds like your school got the prerequisites wrong for this course -- from what you say about your intro C++ not covering classes, they should have made you take at least one more general programming class before diving into algorithms.
 

Dat

Senior member
Jan 14, 2000
742
0
0
Alot of major financial instutions here on wall street are implementing their trading systems in enterprise java. For enterprise development, the only other real option is .Net, which hasn't really picked up. C/C++ still has a strong presence here but all new systems are pretty much being done in java.

 

Rainsford

Lifer
Apr 25, 2001
17,515
0
0
Originally posted by: Elemental007
I program in C and motorola assembly. True EE. None of this BS high level crap that never actually plays out :)
Me > you

j/k

Java scares me. But I'll never have to take a java course, so I'm happy.

Actually, programming in C and assembly would be considered more Computer Engineering than EE :p
 

FeathersMcGraw

Diamond Member
Oct 17, 2001
4,041
1
0
Originally posted by: Elemental007
I program in C and motorola assembly. True EE. None of this BS high level crap that never actually plays out :)

You've got a mighty curious view of the world where C isn't a high-level language.
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
Originally posted by: FeathersMcGraw
Originally posted by: Elemental007
I program in C and motorola assembly. True EE. None of this BS high level crap that never actually plays out :)

You've got a mighty curious view of the world where C isn't a high-level language.

I'd say that you do. C is is only high-level when you consider assembly, and any other language in use today are considerably higher than C.
 

GoingUp

Lifer
Jul 31, 2002
16,720
1
71
java sucks and I hated writing programs, but man we didnt have a new program due every week! :Q
 

FeathersMcGraw

Diamond Member
Oct 17, 2001
4,041
1
0
Originally posted by: Descartes
Originally posted by: FeathersMcGraw
Originally posted by: Elemental007
I program in C and motorola assembly. True EE. None of this BS high level crap that never actually plays out :)

You've got a mighty curious view of the world where C isn't a high-level language.

I'd say that you do. C is is only high-level when you consider assembly, and any other language in use today are considerably higher than C.

That logic is like saying that dogs aren't mammals because apes and humans are.

High-level languages abstract the underlying architecture from the programmer. Java does it a lot more than C, but you can write C code without knowing anything about the CPU instruction set of the box you're running on.
 

lukatmyshu

Senior member
Aug 22, 2001
483
1
0
That hw is fairly simple ... in fact I have a hw assignment due on Thursday that's basically about that hard (tic-tac-toe instead of chess) , except we're graded on how well we architect the system. And I can't believe the guy wont let you use 'full' java ... imho it's bad programming practice not to use public and private modifiers.