Computer Questions Not Worth Their Own Thread II

You just have to add the linebreak for each row.

You want to tell the computer:
For each row:
1. print the numbers in the row
2. change line.
 
You just have to add the linebreak for each row.

You want to tell the computer:
For each row:
1. print the numbers in the row
2. change line.

Thanks! Umm..how can I actually do that?
 
Thanks! Umm..how can I actually do that?

public static void printer(int x[][]) {
for (int row=0;row<x.length;row++){
for (int column=0;column<x[row].length;column++){
System.out.print(x[row][column]+"\t");
}
System.out.println(); [EDIT - Thanks for catching Atticus]
}
}
}

Not checked it, but I think this is right
 
The "ln" at the end changes the line already. So you can print an empty string with a line break:
System.out.println("");

Samson's "\n" is an in-text line change, so that code would print one empty line between the rows.
 
I've been having a problem with my laptop the last week or so. The main problem is that the SVCHost process ends up becoming over a 1,000,00 KB in size, which drives my physical memory and CPU usages very high. I also get notices about the Plug and Play, DCOM Launch, and Power services having been terminated and Windows needing to restart.

I've done a malware scan with Malwarebytes but that came up clean. I've been looking around on the internet and asked my dad for help but nothing seems to be helping.

EDIT: the problem is with the Windows update service. I've had those turned off since I've gotten this computer, and only this week have I started trying to install the updates. So I had over 120 updates combining for about 1,100 MBs. I ran the updater, but only half of them were able to be installed. Now, I'm getting error messages whenever I try to run Windows update and, hence, no updates come to my computer.
 
@Atticus, Samson: Thanks for the help!! I feel bad since I can't fix my Java programs and I always ask you ;)! Anyways, nice to see that asking here is effective :)!
 
I just noticed you're Finnish (and didn't have to just guess so due to your name). In that case, you might want to try this:
http://mooc.cs.helsinki.fi/ohjelmointi
And actually, it looks like it's available in English too:
http://mooc.cs.helsinki.fi/programming-part1

It's an easy way to learn to program. There's exercises and automatic testing for them. Also, there's an irc channel where you can ask if you have problems.

You can apply to Helsinki university by going through the course, but you don't have to, so it doesn't need to be serious business if you don't want it to be. It's quite fun actually. :)
 
What does it mean if I hit ctrl+s to save a .txt file in Notepad2 and my laptop's screen all of a sudden flickers once?
 
What does it mean if I hit ctrl+s to save a .txt file in Notepad2 and my laptop's screen all of a sudden flickers once?

I haven't had that exact behavior, but on my old computers I had periodic screen flashes at inappropriate points. On my old laptops, this was a problem with the graphics drivers/card. Updating the drivers fixed one, and the graphics card burned out on the other.



(I was going to post something in this thread, but I decided to make a new one since I think it could lead to a long discussion.)
 
Is it still possible to update the graphics drivers even though I got it in 2008? The last drivers I saw for my machine were like around 120 something before they stopped. (I'm using a nvidia card.)
 
I can't download the zip... it just says that its attachment.php, and won't download. What's wrong?

Simply when I try to download a file (Civ save) from here, it gives me attachment PHP. How can I fix that? Thx!
 
Simply when I try to download a file (Civ save) from here, it gives me attachment PHP. How can I fix that? Thx!

A link would help. You probably need to click on the link you are currently trying to Right Click / Save As and then click another link.
 
I'd like to play this one.

Oh, I think it is something at your end then. In chrome I just click on "NC 139 Stalin.zip" and I get a zip file with that name (size = 197109 bytes). You could try another browser, or if the file you got called attachment.php was this size then just rename it and unzip it.
 
My laptop is VAIO C series, I upgrade my ram to 8 gb from 4, core i5 2,30 ghz, vga ati.

However each time I play game is easily get heat, I hardly play metro, and dishonour is completely lagging unplayable in my laptop. And the last time I tried to reinstall Oblivion, when I play just like 30 min my laptop becoming so hot as it about to melt and the game becoming laggy, just imagine even Oblivion.

I think to visit a region around south east asia during summer holiday, and buy a new laptop over there, because in the region that I stay now computer price is amazingly so expensive. I prefer to buy laptop again so I can use it both for work and play game and it is easy to move around with laptop. My question is, is it possible if I use laptop for gaming, or is it better if I use pc? If I use laptop is it a must to buy a fancy product like alienware for gaming because it have a better cooling system? I really don't like fancy stuff and I want to have good saving.
 
Get a good quality cooling stand for a laptop like that, preferrably one that elevates it a decent amount, so you can actually get air circulation underneath it. :)
 
I heard from a friend that the cooling stand main function is just to lift up the laptop so it not really stick to the platform and have decent air circulation. So I use big dictionary book and put my laptop above it. Still it not change so much. But if you think it will change the performance of my computer if I bought a good quality cooling stand, I will buy that instead having new laptop. Do you have any suggestion for the brand? or the design? I don't have experience on buying that device.
 
The point of a cooling stand is to reduce overheating as much as possible, and that's why air circulation is vital for laptops that are de facto heat factories, and plenty of empty space and the surface it is on is what you need. Placing the laptop on top of one large book, which is what you seem to doing, doesnt really address the heating/air circulation issue, as air is still chocked off by the two millimeters between the laptop and the book. Performance isnt affected much, unfortunately, but if you really value your laptop and your money, it does extend the lifespan of the laptop. By how much depends on the cooling stand.

If you use Amazon.com or an equivalent, typing "cooling stand" or "cooling pad" (both without quotes) in the search bar should give some ideas.

Hope this helps. :)
 
Back
Top Bottom