Things we can do in main
Hi all,
What are the things we can do in main, other than
1. Creating objects and accessing its members.
2. Accessing static members of the same class.
Main is just like another method. You could do anything there!!!! but you should not do all that you should and thats where abstraction and encapsulation come into the picture. What needs to be looked into is what is the main responsibilty you are assigning to a class. What is that you want to expose to the outside world and what is private to the class itself. Are you using the main method for trsting purposes only or is a command line app. Then come in the portability and scalability and flexibility issues. So the main question again would be from a high level of abstraction what is that you want this class to do?
Similar Messages
-
When I connect my ipod to my computer it opens my documents and won't show up in my itunes and I have unistalled then reinstalled itunes and reset my ipod twice and it stills does the same thing how can I make it so that it shows up in my itunes?
Try
iOS: Device not recognized in iTunes for Windows
I would start with
Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
or
Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
Before you reinstall the Apple software, also remove iCloud vi Control Panel Remove programs. The reinstall the Apple programs
New cable and different USB port?
Runs this and see if the results help with determine the cause
iTunes for Windows: Device Sync Tests
Try on another computer to help determine if computer or iPod problem -
I have an ipod touch but i don't have enough memory and 0I get an upgrade soon for my phone and i want the iphone but the thing is, can i have an ipod touch and an iphone on the same itunes account like can i use my money on my ipod account for my iphone
Your iPhone and iPod can share the same iTunes account. Apps can be freely shared and used by one or both devices. You can't use money in your iTunes account to pay for your phone, but purchased apps can be used by both the iPod and iPhone.
-
can not open the i pad manual on my lap top mac os x 10.5.8 since i sync with itunes acct. Safari just crashes. Is there any thing I can do Have the manual on IPAD2
Do I need My i pad to be connected to my laptop?
HowardDo I need My i pad to be connected to my laptop?
Your iPad needs access to the internet via Wi Fi or 3G in order to access the App Store.
Tap the App Store icon in your iPad.
In the search field top right in the App Store window type in:
ipad user guide for ios 4.3. Tap Free / Get Book
As for Safari on your Mac crashing, you can start a new topic and post a crash report so we can try and help.
Click here: https://discussions.apple.com/index.jspa
Click New / Discussion. Select Safari.
Refine This LIst. Select Mac.
If Safari has just crashed, press the Report button on the CrashReporter dialog box to view the crash information.
Now copy/paste the entire contents of the Crash Reporter window into your reply.
If the crash report dialog does not appear or the crash is hard to reproduce, crash logs can be retrieved from the ~/Library/Logs/CrashReporter> folder.
Safari could be crashing due to third party unsupported add ons. Follow the troubleshooting instructions here.
http://support.apple.com/kb/TS3230?viewlocale=en_US -
In SD point of view , that r things we can check in Screen MD04
In SD point of view , that r things we can check in Screen MD04
Key areas and feilds in MD04 to look after for SD and PP integration and respective roles of consultants.yeap ur correct just we have to check in mod04 what happening in production procurment and make to order that means forcast sales . depond on forcast sales manufecturing is going on so we can only see that process i sgoing or not k thanku
-
I have 2nd generation apple tv, and this has always worked well with Lion, have now upgraded to Mountain Lion, and now can not connect to itunes, all other things work, can buy or rent films, but can not listen to my music or show photos. Can anybody help please?
I have 2nd generation apple tv, and this has always worked well with Lion, have now upgraded to Mountain Lion, and now can not connect to itunes, all other things work, can buy or rent films, but can not listen to my music or show photos. Can anybody help please?
-
I dowloaded a book to itunes and i can play it BUT when I downloaded to my ipod it get the wrong file! I tryed deveral times and keep doing the same thing, how can i fix it? I apreciate your help.
You may need to put the iPad into recovery mode : http://support.apple.com/kb/ht1808 - you should then be able to reset the iPad and restore/resync your content to it.
If you do it via a different computer that it's not normally synced to then (from here) :
If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. -
Can't find main class - program will end
Dear forum readers,
Recently upgraded from Win2k pro to XP pro .. installation ran to conclusion w/ no fatal errors BUT upon booting new system I now receive an error message "Java Virtual Machine Launcher can't find main class, program will end" .. I am not aware that this error is causing any problems BUT it is annoying and I'd like to be able to fix the problem so I don't have to close the error message at each startup .. please help!
Thanks in advance, LarryTry this
java -XbootClasspath/a -jar <<Prog name>>
I think you are trying in windows XP.
Also you need to modify if there are any other jars to be reference. For eg if a.jar is also required for this try as below
java -XbootClasspath/a:a.jar -jar <<Prog name>> -
This ios7 is the worst thing that can happen to apple phones . My phone is hanging all the time what should I do .
Back up your iPhone and restore from backup. If that's does not help, restore your iPhone as new (not from backup).
-
My iPad was stolen and i accidentally deleted it from find my iPhone app is their any thing i can do to find it i lost it last april
If it was stolen seven months ago, then you are a little late to do anything about it. Buy a new one.
-
I recently updated to the OSX 10.8.3 Operating Sistem. I am writing a book and now cannot open any word document I've created with the old system. Could not find a newer version of the Microsoft Word Processing Program. Is Pages the next thing? Can I recover my documents? How?
I'm in the same boat: new to OS X and Mac, and in the middle of a book. I switched because I heard about the the ease of using Mac, but so far, for me, it's been a nightmare. I bought 2011 Office Mac and hate everything about it, the most recent being the inability to open or cut or paste any of my original word files. I understand that this could have easily been done with earlier versions, but not Mountain Lion (which I learned is what OSX is.) Since I work with language, I am amazed at the assumptions of the Apple community. It helps to use common language and explain even the basics.
So all the helpful hints to use the latest version of Office Mac are to no avail. Now what? -
Can we call main method in another class?
Hi...
can we call main method in another class?
If no, please tell me the exact reason why can't we call that....ok
can u give that code for me?
class A {
public static void main(String [] args){
System.out.println("In A");
class B {
public static void main(String [] args){
A.main(null);
} -
I bought Adobe Elements 12; I cannot use panorama photomerge, I have followed the directions to go to Full Edit mode in edit workspace> choose File> New> Photomerge. However the Photomerge does not work, it does not respond.
The only thing I can come up with is that I found a blog that said that in the Trial version Photomerge does not work, however I do Not have the Trial version, I did at one time but I purchase Adobe Elements. Thank you.The blog was incorrect. Photomerge should work in the trial, too.
When things get weird in PSE the first thing to do is to delete the prefs. Go to the editor preferences>general, click this button and restart the editor: -
Installing 10g on Windows XP machine JVM launcher "Can't find main class"
I am trying to install 10g Release 2 on a Windows XP machine. I downloaded the zip from the OTN. Unzipped the file. No problems. Tried to run the OUI, it opened up a shell and said to wait. The shell closed and a message frome the JVM Launcher displayed "Can't find main class. Program will exit." I have seen several people on this and other discussion boards having this problem, but have yet to get a solution. Please help.
What's the value of CLASSPATH environment variable? Possibly a non-oracle application has set this variable and the installer catches it. If there is such a variable, comment it out and try again.
-
I purchased Fifa13 from the App Store, downloaded it in my pc..,but when i am trying to install it in my ipad frpm the pc, i couldnt do it. The installation process stops after some time and the ipad shows some thing like "can sync..,failed to install fifa13"
What can i do?
btw....,its happeniing only wth the fifa13, installed other apps from pc previously.anybody answer me fast
Maybe you are looking for
-
Hello All, We have a webservices war file that needs to be migrated from existing Oc4J to weblogic version 10.3.5. While trying to deploy the war file on the server, some functions do not work due to an exception caused by Unable to create Service Fa
-
I have an iMac and an iPad. I have just recently started to get vast number of emails landing in my inbox. They are all delivery failures (boouncing back to me as if I have sent an email out and its come back undelivered) There are literally hundreds
-
Change FB02 display. Documents with Special GL Posting
Hello. I've been trying to modify FB02 layout in order to display BSEG-ZFBDT under the additional data section (below the line item information) The problem is that if I do an FB02 with a regular customer document that posted to the reconciliation ac
-
Write/Read Database with "Jeffrey"-VIs
Hello, i want to write/read a sql-database without-the NI-Toolkit. I found while searching here the Tools from Jeffrey which are available here: http://jeffreytravis.com/lost/index.html Now i unocked the files and wanted to try t he example "Example
-
Something's wrong with on demand in the manchester...
Hi Couple of weeks ago my on demand all went to pot stuttering everywhere, After a call to technical and a few reboots here and there and a resetting of my i.p address to the bt servers all was well, For the record I have a black vbox and a first g