>>1
Tell me his name, I will hunt him down and kill him for you.
Name:
Anonymous2006-03-26 14:27
you don't need those extra square brackets when you initialize, that you you need to slam in a for loop and initialize each one, but i think this is only when you have to assign something to it in any case it may be
Someclass a[]=new Someclass();
Also, yeah, tell us who he is, he has comitted a very serious crime against a human. In my law at least, the only law I really care about, and also the only one that should be enforced.
Name:
Anonymous2006-03-26 14:37
You mean an array of objects. Classes != objects you fucking retard.
// Standard Array Usage:
// Declaring members as array with a size of 5.
// Note that this is size is thus fixed and can't be changed.
Member[] members = new Member[5];
// Populating the array.
for (int i=0; i<members.length; i++) {
members[i] = x;
}
System.out.println("Size of members = " + members.length);
// Assigning elements to variables.
Member a = (Member) members[0];
Member b = (Member) members[1];
// ArrayList (recommended):
// Declaring memberList as a growable arraylist.
ArrayList memberList = new ArrayList();
// Populating the arraylist.
memberList.add(a);
memberList.add(b);
System.out.println("Size of memberList = " + members.size());
// Assigning elements of the array to variables.
Member c = (Member) memberList.get(0);
Member d = (Member) memberList.get(1);
Name:
62006-03-26 21:54
Sorry, line 23 should read:
System.out.println("Size of memberList = " + memberList.size());
Name:
Anonymous2006-03-26 22:35
Isn't forcing you to do that that rape or something?
Name:
Anonymous2006-03-26 22:52
asking for programming help on 4chan is just wrong. google. professional help all over the shop. and yes, get a basic book out with ya? if your'e studying a unit, ihope you fail.
Name:
Anonymous2006-03-26 23:44
Who cares if s/he fails? It's Java.
Name:
Anonymous2006-03-27 1:17
>>9
|asking for java programming help on 4chan is just wrong.
Fixed.
Name:
Anonymous2006-03-27 2:16
>>11
|having to program in java is just wrong.
Fixed.
I've been forced to do Java at my Uni too, I want to fucking kill myself.
My uni are fucking faggots, they got me to do Delphi in the first year, then make me do my final year project in Java, not a single bit of C in sight. Thanks for educating me to become a useless programmer guys!
>>9 is correct. and especially don't mention Java.
Name:
Anonymous2006-03-29 22:58
How's learning multiple languages educating you to become a useless programmer?
Learning just one language and just one alone through all 3 years of your uni, now that's educating you to be a useless programmer.
Name:
Anonymous2006-03-29 23:37
Delphi might actually be a pretty good language to start with for GUI stuff. At least the syntax is vaguely similar to some "real" languages unlike VB.
Name:
Anonymous2006-03-30 2:46
Delphi is not that bad, but I wouldn't start with a GUI environment. I would start in something like Pascal using the command line, and once people get comfortable to both, switch to C. After everybody's a master hacker at it, we can start with a scripting language, a functional langauge, and an OO language so you can make money (managers won't pay if it's not "OO").
Name:
Anonymous2006-03-30 5:16
>>16
Hmm, I suppose it is good knowing the subtle differences in languages and being able to adapt. I should be able to pick up a new language without too much hassle if I tried.
>>16
Because that one language is Java!! Everyone knows Java programmers don't need to learn other languages, Java can do everything!!!! .....oh wait, that's worse than useless. Sorry.
Carry on!
Name:
Anonymous2006-03-31 16:02
>>15
We spend our entire time in Java, only to have it suddenly change to some bizare laguage we've never touched.
255 to 401 if it was programming it was Java (or MIPS).
403 "Please do this project in SQL."
Name:
Anonymous2006-03-31 16:05
SQL isn't a programming language you tard, it's for querying databases.
Name:
Anonymous2006-03-31 16:15
>>23
He's not a tard, he's just a Java user. They are very hostile toward anything that is not Java.
If I knew why, I'd be able to rule the world.
Name:
Anonymous2006-04-01 3:42
SQL is a language, geez. A declarative one.
Name:
Anonymous2006-04-01 3:48
GUESS WHAT THE L IN SQL STANDS FOR!1
Name:
Anonymous2006-04-01 5:24
>>25
Yes and HTML is a language. It's still not a programming language.
Name:
Anonymous2006-04-01 11:22
SQL is in the same category as Prolog. Both of them define problems, not how to solve them. So yes, it is a programming language, just not a category you're familiar with.
Look up what a declarative language is and stop being a twit.
Name:
Anonymous2006-04-01 16:18
SQL is a programming languages, so regular expressions are, but they are not Turing-complete (regex might be with recursion, but I don't think so), that's why they feel so different.
Name:
Anonymous2006-04-01 16:58
>>29
What's keeping SQL from being Turing-complete?
Name:
Anonymous2006-04-01 18:21
"The major disadvantage of declarative programming is that it is not Turing-complete — an imperative language can solve any computable problem, but a declarative language can solve only a narrow subset of special problems (those that the very non-universal engine was designed to solve)."
Think of HTML. Technically it's also a declarative language. Would you write an interactive game in it? No. Why? Because it's only good for displaying pages in a web browser. Similar with SQL: it's only good for database queries.
Name:
Anonymous2006-04-01 19:37
>>29
I think the easiest way to think about it is that according to recursion theory, you have to have unbounded search for completeness, meaning being able to write expressions that could potentially never return an answer. I would imagine that this is not only impossible in SQL, but also not desirable.
As far as I'm concerned if it's not turing complete, it's not a programming language because you can't write general programs in it. Hence >>28 is a tard.
>>32
I don't know what would happen if you recurse over empty strings, but I don't think you can then stop it, so I doubt regex are turing complete.
However, I came across some freak who said he could prove the C preprocessor is turing-complete. To implement recursion, the file included itself.
Name:
Anonymous2006-04-03 6:39
If you know anything about automata theory, you know that regexes are most definitely not turing complete. Behold the Chomsky hierarchy:
Context sensitive languages > Context free languages > Regular languages
or equivalently:
Turing machines > Stack machines > Finite state machines
Name:
Anonymous2006-04-03 8:49
>>39
I know this, however regular expressions have been enhanced with all sorts of features since they were taken from theory. A modern regex parser will support non-deterministic matching, lookahead and lookbehind positive and negative assertions, recursivity, etc. You could use them to recognise far more than G3 grammar.
Name:
Anonymous2006-04-03 9:46
>>40
If it's got all that shit it's no longer regular expressions, by definition. It's some grammar that happens to look similar to that used for regular expressions.
Name:
Anonymous2006-04-03 17:24
lol pedantic
Name:
Anonymous2006-04-03 21:30
>>41
Yeah well, fine by me, but people call them regex. Check out PCRE.
Name:
Anonymous2006-04-04 4:36 (sage)
>>43
Surely PCREs are used for text matching. That's why the language provides other features to do actual programming.
Leopold Kronecker was skeptical of the notion of infinity and how his fellow mathematicians were using it in 1870s and 1880s. This skepticism was developed in the philosophy of mathematics called finitism, an extreme form of the philosophical and mathematical schools of constructivism and intuitionism. Typical dumb goy.