I had an answer but it didnt work
can anyone pls find me the mistakes to this small programs.
1 ) class TestSomething {
public static void main (String[] args) {
int[][] a = new int[7][9];
int i,k,b=0,c=0;
for (i=0; i<a.length; i++)
for (k=0; k<a[0].length; k++) {
a[k] = i * k % 10;
if (b<a[k]) b=a[k];
c++;
System.out.println("Final value of b is: "+b);
System.out.println("Number of places is: "+c);
2) class Test {
int x;
class ArrayTest1 {
public static void main(String args[]) {
int i;
Test TestArray[] = new Test[100];
for (i = 0; i < 100; i ++) {
TestArray.x = i;
System.out.println("We made it!");
thanks for helping me
( I am a student and I am having a test and I found this from past papers)
Its a "feature" of the forums.
Read the [url http://forum.java.sun.com/faq.jsp#format]special tokens link on the posting page.
To get around the problem, when posting code to the forums don't use [i] as an array index (I use [j] instead). Many users of these forums have asked several times for this to be changed, but to no avail; so we just have to live with it.
Similar Messages
-
I have downloaded Windows 8 on my Mac Pro 13'' retina display. The first few hours everything worked fine until I open windows today and the trackpad/mouse and keyboard aren't working. Ive tried resetting windows but it didnt work. help appreciated thanks
It sounds like it is time to restore from the backups you made just before making the disk changes.
You can re-partition and restore your backups. If you didn't make backups first (you were warned that it might damage things and to make sure you had a good backup) then you will need to repartition everything and reinstall from scratch... -
i have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me???
If Join was on then your home wi-fi must be set to Non-Broadcast. If you did not set this up (maybe your provider did) then you will need to find the Network Name they used, and any password they used. The SSID is Security Set ID and to see more try http://en.wikipedia.org/wiki/SSID . Basically it is the name used to identify your router/network. A lot of times the installer will leave it set as LinkSys, or Broadcom or whatever the manufacturer set it as for default. Your best bet is to get whoever installed it to walk you through how they set it up, giving you id's and passwords so you can get in. HOWEVER, if you are not comfortable with this (if you set security wrong, etc.) you would be well ahead of the game to hire a local computer tech (networking) to get this working for you. You can also contact the vendor of your router and get help (if it is still in warranty), or at least get copies of the manuals as pdf files. Sorry I can't give you more help, I hope this gives you an idea where to go from here to find more.
-
I just want to ask if there is any way i can fix my ipod touch 4G from watar damage and i dont think that a larg amount of water have entered and the ipod isnt working at all and i tried charging it but it didnt work so please help me, and thankyou.
Probably dead if you have tried to charge it.
You should never try to charge or turn on a wet electronic device.
You should let it dry for a week or so, then try. -
I tried to update my ipod but it didnt work and it turned off, it came up with the plug and the itunes symbol when i turned it on and thats all. So i plugged it in itunes and then tried to restore it but everytime i tried to restore it, it didnt work! So i took it to harvey norman, to see if they could fix it or restore it but they couldnt fix it . So, what should i do?
Without more information like what happens when you restore the iPod all I can suggest is:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
- If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
I have Photoshop and Elements 9, and im getting a new computer. I would like to put them on the new one. I tried my serial number but it didnt work. I dont know what to do?
Error "The serial number is not valid for this product" | Creative Suite
-
My ipad mini 2 is not turning on. I tried to reset with the power/home buttons but it didnt work. I tried to restore it in DFU mode but it didnt work, i get error 4004. Please help me!
I also tried the ol' whacking 3 times trick...Didn't work to my surprise
-
Got a black screen on the iPod Touch 4th Generation. Tried restoring it and holding the lock and hold buttons but this didnt work. Do i need a brand new screen?
If you successfully restored to factory settings/new iPod via iTunes (Not via Settings>General>Reset>Erase all Content and Setting) and still have the problem that indicates a hardware problem. Could be the screen or something else.
Make an appointment at the Genius Bar of an Apple store..
Apple Retail Store - Genius Bar -
I want to stop my mini ipad screen from rotating. I followed instructions for accessing the multitasking bar but when I swiped that nothing happend. I also tried the side button but that didnt work either Help?
-
Trying to Open Ports...but it didnt work...
I tryed the I.P. in the adress in adress bar and that didnt work and these ports are 2302-2303 For Halo Pc on Mac... now i tryed to forward them i might have typed the Wrong thing or something in the Guide I read off of was Wrong i tryed forwarding ports but it didnt work i want to open them but it didnt work Any suggestions... Here are the Details...
Model:WRT54GS v.5
Computer:Macintosh OS.X. 10.2.8
EDIT:How would i get into the settings for the router?
Please give me a FULL tutorial of what too type what adress what to change and everything All around DoMessage Edited by Fooglewasp on 10-28-200606:31 PMI don't understand what you have tried in the first place and what did not work. Entering an address in the address bar does not have anything to do with port forwarding.
BTW, the router does have a user manual that explains all those things. -
My name is sujan. I tried downloading kotoba and i cant download it.Itunes says its not supported in japanese store.i tried from new zeland store but it didnt work.Can you tell me from where can i get that app callled kotoba! ??
You can only make purchases from the iTunes/App store from the country's store in which you are physically located and your account has to be associate with that country.
Not all apps are available in all country stores. -
I was going to update my whatsapp but it written could not be installed at this time i pressed retry but it didnt work
Is your iphone hacked/jailbroken?
-
Hello, well i just purchase iphone 4 from pakistan.. I want to update my ios but that didnt work. I just saw the status of my phone.. So iphone was lock.. I need lil help . Thanks
ONLY the carrier it is locked to can authorize unlocking it. You will have to contact them. Since you are not the original purchaser of the phone and do not have service with whatever carrier it might be locked to, it is highly unlikely you will get it unlocked.
Since it was hacked to unlock it originally, it is highly likely that the phone will become a brick if you attempt to apply a legitimate unlock.
Actually, it is probably already a brick.
There is nothing we can suggest other than to google "iphone dfu mode" and try doing a restore in DFU mode to see if that can bring it back to life. It may. If so, you will then need to work with the carrier it's locked to or sell it and buy a new phone. -
An icon has appeared on my desktop called colour sync utility. I clicked on it, and it came up with information about needing to repair something which I tried to do but it didnt work. What is this and shouldI be worried ?
The Color Sync Utility is part of OSX and usually resides in the Application/Utilities folder.
Don't know how it appeared on your desktop.
But it is no malware, spyware or the like but as said part of OSX.
http://docs.info.apple.com/article.html?path=Mac/10.6/en/8476.html
Stefan -
Today i was on my ipod then i locked it then i plugged it in to charge because it was only half battery and it just tuned off for no reason and it would not turn back on..... I tried the "solution" for it but it didnt work, if anyone could help that would be great!
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try another cable
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar
Maybe you are looking for
-
Show AppXray dependencies does not work for all projects
I have three projects. One of them will display the appxray dependncies and the other two will not. When I select show dependencies, nothing happens. There is no logging inside the workshop m7.log.0 but the .log has the following. How do I get this t
-
I have a screen that has a horizontal Text Gallery (GalleryA). Inside that gallery is a vertical gallery (Gallery B). Each the template for Gallery B has a check box that I want to use to select that particular item. Each Gallery B should have to hav
-
VT04 - multiple selection variants possible?
Hello, When we create shipments "manually" via VT01n, we have 2 different selection variants to add deliveries onto the shipments: - one variant which selects all deliveries without route schedule also those for which the goods issue date is in the f
-
Tracking execution of bean used in jsp
hi, i'm using a bean to get records from a database. but i'm not sure if the bean is actually getting called and executed from the jsp file. i'ld like to get the step by step details about the execution of bean when it is called. is this possible? ho
-
Connecting to SQL Server 2000 from Oracle 9iDS
hi I want to connect Forms Developer 9i to a SQL Server 2000 Database for integration purposes. Mentioning that I don't have any Oracle servers on my system. Thanks