Search:
Type: Posts; User: kolt007
Search:
Search took 0.03 seconds.
-
Well this conversation is begining to circle. I will explain to you what I explained to everyone.
Continuing while true means that it will stop (break) as soon as it's not true
This is...
-
Yes, I am aware. As I said I was under the impression it breaks when false, not continues while true.
-
Of course you can take a piece of code and transform it into a different but equivalent piece of code. And if you feel one form is easier to comprehend or has greater explanatory powers that's fine
...
-
Java is not an entity who is looking at code contemplating what to do with it, and programming is not trying to secondguess what that Java entity might decide to do. Instead Java is a set of rules...
-
Java doesn't "desire to keep going while it's true", it desires to work out whether the compound expression (b || d) is true or false
Inaccurate it doesn't need to find out if the 'compound'...
-
First:
hat's not quite true because if both b and c are true then "do this" will be repeated twice in the separated case. Instead,
You took it too literally.
-
April 30th, 2012, 10:56 PM
It does break when the condition is false, but when you have 2 expressions OR'd together the condition can only be false if both the expressions evaluate to false. Re-read all the answers and you...
-
April 30th, 2012, 10:44 AM
Ah, I see my confusion was in the function of the while I was under the impression it broke when the value/s was/are false but, rather it continues while the value is true, which seems like the same...
-
April 29th, 2012, 09:56 PM
I think we should all understand I am aware of the use of a logical or statement hence I used it above. But, the issue here is that this program defies that logic. I understand if your through with...
-
April 29th, 2012, 01:23 PM
So, back to the top question, how is it a logical or if they both have to be true? I think I may get it, if it were an if statement it'd be if either of them reign true, but sense it's a while it...
-
April 29th, 2012, 06:30 AM
do {
if(file.substring(i, i+3).equals("|||")) {
atName = true;
i=i+3;
}
if(atName){
...
-
April 29th, 2012, 05:23 AM
I don't mean to be argumentative (I think from this point on I'll stop explaining my intentions my hope is we have a good enough understanding at this point, of course as the pupil so to speak I'll...
-
April 28th, 2012, 09:16 PM
do {
if(file.substring(i, i+3).equals("|||")) {
atName = true;
i=i+3;
}
if(atName){
...
-
April 26th, 2012, 10:04 PM
Thanks again for your time keang. So, a good programmer is defining one's logical ability more than anything.
Another Thread (as with many) resolved by Keang !
-
April 26th, 2012, 04:28 PM
Okay thanks keang, do you know of any good places to lean a bit about the JNI (what I am to believe is coined as 'assembly code'). Only if you know off-hand a good place othewise i'll just google it....
-
April 26th, 2012, 05:44 AM
Okay I suppose I have some learning to do then. First though, to make sure were not just missunderstanding each other. When I said pointers I meant the 'term' meaning not the elements. For example...
-
April 24th, 2012, 06:32 PM
For me I use an overriden paintComponent();
I suggest using JFrame, then overriding Paint(), then placing a picture ontop of another is as simple as the order you draw the images in.
-
April 24th, 2012, 04:21 PM
This is one of those things that's hard to google, but an experienced person has no problem coming up with the answer. Perhaps I am not using the right terminology, anyways. Is there anyway to load...
-
April 23rd, 2012, 03:56 PM
Thank you. If I may ask I hav the following error it says "Creat a method arithmeticCalculator(int,int,java.lang.String) in calcultor" I n this of my code....
-
April 22nd, 2012, 05:57 PM
Without looking at your current code, I understand you need to test for the press of 'N'. I would use keyevent listner to run a continous loop to check for the pressing of N. This is done by using a...
-
April 16th, 2012, 12:39 AM
public void handlesinglepixel(int x, int y, int pixel) {
int alpha = (pixel >> 24) & 0xff;
int red = (pixel >> 16) & 0xff;
int green = (pixel >> 8) & 0xff;
int blue =...
-
April 7th, 2012, 05:21 PM
It's nice to be able to solve a thread. Thanks once again.
-
April 7th, 2012, 03:02 AM
Obviously you were right. If I could, I'd like to inquire about one more thing. Why when drawing an image (amoungst other things) do I need an 'Observer' I generally just use the class or the method...
-
April 5th, 2012, 12:35 AM
Yes, I took your advice I use this now:
do {
g.drawImage(Juggernaut, playerX+curX[cur], playerY+curY[cur]+qu, playerX+curX[cur]+cLen[cur], playerY+curY
...
-
April 3rd, 2012, 09:03 PM
I am using this:
g.drawImage(Juggernaut, playerX+4, playerY, playerX+8, playerY, 9, 0, 13, 0, this);
g.drawImage(Juggernaut, playerX+8, playerY+1, playerX+14, playerY+1, 8, 1, 14, 1,...
|
Click Here to Expand Forum to Full Width
|