Computing desk | ||
---|---|---|
< September 19 | << Aug | September | Oct >> | September 21 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
That's my question. Thanks. 67.163.109.173 ( talk) 03:19, 20 September 2012 (UTC)
I just asked because this happened when I upgraded to 5, and apparently to many others on that upgrade, judging by the number of articles giving instructions on how to recover them, which I did then. 67.163.109.173 ( talk) 12:27, 20 September 2012 (UTC)
Hi all. I am currently working my way through my first book on Java and feel like seeing more code would be beneficial. Are there any resources on the web that provide examples of working programs that I could look at, just to help me get a better feel for Java? Thanks. 213.123.215.234 ( talk) 12:58, 20 September 2012 (UTC)
When I write a loop, like:
for i in mylist: ...a += mylist[i] ...b *= mylist[i] ...print(a) ...print(b)
Do I always have to declare variables a and b beforehand? Or is there any more elegant form of doing that? OsmanRF34 ( talk) 16:12, 20 September 2012 (UTC)
a_sum = sum(mylist) b_prod = reduce(lambda x, y: x*y, mylist) import operator b_prod2 = reduce(operator.mul, mylist)
In my book on Java, it says "To call one constructor of a class from another of the same class, you can use the this keyword followed by parentheses containing the constructor arguments.". I am confused as to why you do not need to name the constructor you wish to call. Does this apply exclusively to overloaded constructors? Thanks. 213.123.215.234 ( talk) 16:12, 20 September 2012 (UTC)
this(10);
) must be the first thing you do in the constructor. If you do anything else before it, it will fail to compile. Don't ask me why, but that's the way the language is designed.
JIP |
Talk 17:44, 20 September 2012 (UTC)
I have an Asus Eee PC 1015PX netbook. The battery that came with it was a 3-cell 11.1V 2100mA battery. I bought a "genuine" Asus battery from a reputable dealer on eBay, it was a 6-cell 10.8V 4400mA battery. I tried it in my netbook and it seems to work fine, but is it a problem that the voltage is different? Thanks. Acceptable ( talk) 18:42, 20 September 2012 (UTC)
I know very little about powerpoint - which I am using (ppt 2003 on XP) to generate some slides. I would like to make it so that the default text size is 20pt. It always inserts at 18pt. How do I change this please? -- SGBailey ( talk) 22:16, 20 September 2012 (UTC)
Computing desk | ||
---|---|---|
< September 19 | << Aug | September | Oct >> | September 21 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
That's my question. Thanks. 67.163.109.173 ( talk) 03:19, 20 September 2012 (UTC)
I just asked because this happened when I upgraded to 5, and apparently to many others on that upgrade, judging by the number of articles giving instructions on how to recover them, which I did then. 67.163.109.173 ( talk) 12:27, 20 September 2012 (UTC)
Hi all. I am currently working my way through my first book on Java and feel like seeing more code would be beneficial. Are there any resources on the web that provide examples of working programs that I could look at, just to help me get a better feel for Java? Thanks. 213.123.215.234 ( talk) 12:58, 20 September 2012 (UTC)
When I write a loop, like:
for i in mylist: ...a += mylist[i] ...b *= mylist[i] ...print(a) ...print(b)
Do I always have to declare variables a and b beforehand? Or is there any more elegant form of doing that? OsmanRF34 ( talk) 16:12, 20 September 2012 (UTC)
a_sum = sum(mylist) b_prod = reduce(lambda x, y: x*y, mylist) import operator b_prod2 = reduce(operator.mul, mylist)
In my book on Java, it says "To call one constructor of a class from another of the same class, you can use the this keyword followed by parentheses containing the constructor arguments.". I am confused as to why you do not need to name the constructor you wish to call. Does this apply exclusively to overloaded constructors? Thanks. 213.123.215.234 ( talk) 16:12, 20 September 2012 (UTC)
this(10);
) must be the first thing you do in the constructor. If you do anything else before it, it will fail to compile. Don't ask me why, but that's the way the language is designed.
JIP |
Talk 17:44, 20 September 2012 (UTC)
I have an Asus Eee PC 1015PX netbook. The battery that came with it was a 3-cell 11.1V 2100mA battery. I bought a "genuine" Asus battery from a reputable dealer on eBay, it was a 6-cell 10.8V 4400mA battery. I tried it in my netbook and it seems to work fine, but is it a problem that the voltage is different? Thanks. Acceptable ( talk) 18:42, 20 September 2012 (UTC)
I know very little about powerpoint - which I am using (ppt 2003 on XP) to generate some slides. I would like to make it so that the default text size is 20pt. It always inserts at 18pt. How do I change this please? -- SGBailey ( talk) 22:16, 20 September 2012 (UTC)