Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Probably one of the most common questions.
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
TheLastFall




PostPosted: Thu Oct 12, 2006 8:18 am   Post subject: Probably one of the most common questions.

This could be probably one of the most common questions but I just can't seem to find it in the posts. Whether I'm a retard or there isn't any posts. I am wondering if anyone can help me with moving an object around the screen with arrow keys. I can easily do this on Turing but Turing has a better help menu and is easier to understand. I just want to do this in Java because:

1. Thats what were learning in class
2. I need to understand programming to get in the college I want
3. I need something to entertain me while I'm in class
4. Is a funny number
5. There is more options in Java than Turing but it's just a little harder to understand.

All I would need is just the code showing how to input a character and where to put the formula. This would be much appreciated.
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Thu Oct 12, 2006 11:55 am   Post subject: Re: Probably one of the most common questions.

TheLastFall wrote:
2. I need to understand programming to get in the college I want


TheLastFall wrote:
All I would need is just the code showing how to input a character and where to put the formula.


These two statements are incompatible.

Getting a particular example application to work, and truly understanding the language in which you are working do not necessarily have anything to do with each other. Certainly the former will get you no closer to understanding programming.

If you wish to understand programming, you must be willing to start with what will seem to you rather boring, overly simple programs. There will be no fancy graphics. By starting out with such simple code, you will be able to see concepts more clearly. You won't have a bunch of junk clouding your vision.

It's like learning to drive in a car with no radio or heat/AC controls. Makes it easier to learn.

http://compsci.ca/v2/viewtopic.php?t=9576
TheLastFall




PostPosted: Fri Oct 13, 2006 8:09 am   Post subject: (No subject)

I am learning the basics, just I need something to distract me from turing. This probably doesn't make sense to who ever reads this but if I just keep doing the basics my knowledge will just stay in the basics. I'm refering to Turing again, when I was learning the basics in Turing I explored a bit ahead and I found out many things the teacher didn't even cover and they made all my programs much better than they would have if I just stuck to the basics. Now if I could just do this in Java it would help out my mark. I know those two sentences are incompatable, but from what the college said was I needed a basic knowledge of programming languages and if I know Java and Turing it would increase my chances.
Tony




PostPosted: Fri Oct 13, 2006 9:48 am   Post subject: (No subject)

if you are simply trying to emulate what you already know in Turing, to Java... well then you're not really learning anything new, just a different syntax to the same thing.

If you are looking to learn something, look into Object Oriented Design. Java has a much better support for it than Turing, and it's a _much_ more important consept than drawing stuff.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
TheLastFall




PostPosted: Sat Oct 14, 2006 7:40 pm   Post subject: (No subject)

Do you have to use big words?
Null




PostPosted: Sat Oct 14, 2006 11:49 pm   Post subject: (No subject)

TheLastFall wrote:
Do you have to use big words?


I don't think you can expect to get any more help after that statement.
wtd




PostPosted: Sun Oct 15, 2006 5:40 pm   Post subject: (No subject)

Mis palabras no son grandes.
md




PostPosted: Sun Oct 15, 2006 5:48 pm   Post subject: (No subject)

but I like big words! :'(
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Sun Oct 15, 2006 5:52 pm   Post subject: (No subject)

Son quizá grandes...
[Gandalf]




PostPosted: Sun Oct 15, 2006 6:21 pm   Post subject: (No subject)

Damnit, cease this infernal subjugation of the inquisition!
md




PostPosted: Sun Oct 15, 2006 7:59 pm   Post subject: (No subject)

[Gandalf] wrote:
Damnit, cease this infernal subjugation of the inquisition!


Chapman: Trouble at mill.
Cleveland: Oh no - what kind of trouble?
Chapman: One on't cross beams gone owt askew on treadle.
Cleveland: Pardon?
Chapman: One on't cross beams gone owt askew on treadle.
Cleveland: I don't understand what you're saying.
Chapman: [slightly irritatedly and with exaggeratedly clear accent] One of the cross beams has gone out askew on the treadle.
Cleveland: Well what on earth does that mean?
Chapman: *I* don't know - Mr Wentworth just told me to come in here and say that there was trouble at the mill, that's all - I didn't expect a kind of Spanish Inquisition.

[JARRING CHORD]

[The door flies open and Cardinal Ximinez of Spain [Palin] enters, flanked by two junior cardinals. Cardinal Biggles [Jones] has goggles pushed over his forehead. Cardinal Fang [Gilliam] is just Cardinal Fang]

Ximinez: NOBODY expects the Spanish Inquisition! Our chief weapon is surprise...surprise and fear...fear and surprise.... Our two weapons are fear and surprise...and ruthless efficiency.... Our *three* weapons are fear, surprise, and ruthless efficiency...and an almost fanatical devotion to the Pope.... Our *four*...no... *Amongst* our weapons.... Amongst our weaponry...are such elements as fear, surprise.... I'll come in again.

[The Inquisition exits]

Chapman: I didn't expect a kind of Spanish Inquisition.

[JARRING CHORD]

[The cardinals burst in]

Ximinez: NOBODY expects the Spanish Inquisition! Amongst our weaponry are such diverse elements as: fear, surprise, ruthless efficiency, an almost fanatical devotion to the Pope, and nice red uniforms - Oh damn!
[To Cardinal Biggles] I can't say it - you'll have to say it.
Biggles: What?
Ximinez: You'll have to say the bit about 'Our chief weapons are ...'
Biggles: [rather horrified]: I couldn't do that...

[Ximinez bundles the cardinals outside again]

Chapman: I didn't expect a kind of Spanish Inquisition.

[JARRING CHORD]

[The cardinals enter]

Biggles: Er.... Nobody...um....
Ximinez: Expects...
Biggles: Expects... Nobody expects the...um...the Spanish...um...
Ximinez: Inquisition.
Biggles: I know, I know! Nobody expects the Spanish Inquisition. In fact, those who do expect -
Ximinez: Our chief weapons are...
Biggles: Our chief weapons are...um...er...
Ximinez: Surprise...
Biggles: Surprise and --
Ximinez: Okay, stop. Stop. Stop there - stop there. Stop. Phew! Ah! ... our chief weapons are surprise...blah blah blah. Cardinal, read the charges.
Fang: You are hereby charged that you did on diverse dates commit heresy against the Holy Church. 'My old man said follow the--'
Biggles: That's enough.
[To Cleveland] Now, how do you plead?
Clevelnd: We're innocent.
Ximinez: Ha! Ha! Ha! Ha! Ha!

[DIABOLICAL LAUGHTER]

Biggles: We'll soon change your mind about that!

[DIABOLICAL ACTING]

Ximinez: Fear, surprise, and a most ruthless-- [controls himself with a supreme effort] Ooooh! Now, Cardinal -- the rack!

[Biggles produces a plastic-coated dish-drying rack. Ximinez looks at it and clenches his teeth in an effort not to lose control. He hums heavily to cover his anger]

Ximinez: You....Right! Tie her down.

[Fang and Biggles make a pathetic attempt to tie her on to the drying rack]

Ximinez:Right! How do you plead?
Clevelnd: Innocent.
Ximinez: Ha! Right! Cardinal, give the rack [oh dear] give the rack a turn.

[Biggles stands their awkwardly and shrugs his shoulders]

Biggles: I....
Ximinez: [gritting his teeth] I *know*, I know you can't. I didn't want to say anything. I just wanted to try and ignore your crass mistake.
Biggles: I...
Ximinez: It makes it all seem so stupid.
Biggles: Shall I...?
Ximinez: No, just pretend for God's sake. Ha! Ha! Ha!

[Biggles turns an imaginary handle on the side of the dish-rack]

[Cut to them torturing a dear old lady, Marjorie Wilde]

Ximinez: Now, old woman -- you are accused of heresy on three counts -- heresy by thought, heresy by word, heresy by deed, and heresy by action -- *four* counts. Do you confess?
Wilde: I don't understand what I'm accused of.
Ximinez: Ha! Then we'll make you understand! Biggles! Fetch...THE CUSHIONS!

[JARRING CHORD]

[Biggles holds out two ordinary modern household cushions]

Biggles: Here they are, lord.
Ximinez: Now, old lady -- you have one last chance. Confess the heinous sin of heresy, reject the works of the ungodly -- *two* last chances. And you shall be free -- *three* last chances. You have three last chances, the nature of which I have divulged in my previous utterance.
Wilde: I don't know what you're talking about.
Ximinez: Right! If that's the way you want it -- Cardinal! Poke her with the soft cushions!

[Biggles carries out this rather pathetic torture]

Ximinez: Confess! Confess! Confess!
Biggles: It doesn't seem to be hurting her, lord.
Ximinez: Have you got all the stuffing up one end?
Biggles: Yes, lord.
Ximinez [angrily hurling away the cushions]: Hm! She is made of harder stuff! Cardinal Fang! Fetch...THE COMFY CHAIR!

[JARRING CHORD]

[Zoom into Fang's horrified face]

Fang [terrified]: The...Comfy Chair?

[Biggles pushes in a comfy chair -- a really plush one]

Ximinez: So you think you are strong because you can survive the soft cushions. Well, we shall see. Biggles! Put her in the Comfy Chair!

[They roughly push her into the Comfy Chair]

Ximinez [with a cruel leer]: Now -- you will stay in the Comfy Chair until lunch time, with only a cup of coffee at eleven. [aside, to Biggles] Is that really all it is?
Biggles: Yes, lord.
Ximinez: I see. I suppose we make it worse by shouting a lot, do we? Confess, woman. Confess! Confess! Confess! Confess
Biggles: I confess!
Ximinez: Not you!
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 11 Posts ]
Jump to:   


Style:  
Search: