Can someone please tell me what can interface is?

On the question sheet I found in my brothers stuff there was a question about completing some interface code, but I've got no idea what an interface actually is, as near as I can tell its a list of methods that a class has. So is it like a contents page of methods that you can call?
Also, here is the question on the sheet.
5. Consider the following Java Library interface
public interface Comparable<T>
int compareTo(T rhs);
Complete the implementation of the class below that implements the above interface. The compareTo method should return -1 if value is less than rhs.value, 0 if both sides are equal and +1 if value is greater than rhs.value.
public class MyInt implements Comparable<MyInt>
private int value;
MyInt(int x) {...}
public String toString() {...}
public int intValue() {...}
public int compareTo(MyInt rhs){...}
public boolean equals(Object rhs) {...}
In the last 2 weeks I've learnt some much about java just from answering these questions on this work sheet. I'm starting to feel that I actually understand what to do and I'm enjoying it a lot more now, Before I was just throwing lines of code at the compiler and hoping for the best.

http://java.sun.com/docs/books/tutorial/java/IandI/index.html

Similar Messages

  • When I plug in my iPad 2 to my laptop to sync, it says "the file iTunes library itl" cannot be read because it was created by a newer version of iTunes. Can someone please tell me what this means? How do I correct it? Thanks!

    When I plug in my iPad 2 to my laptop to sync, it says "the file iTunes library itl" cannot be read because it was created by a newer version of iTunes. Can someone please tell me what this means? How do I correct it? Thanks!

    The file "iTunes Library.itl" cannot be read because it was created by a newer version of iTunes".
    Try the following user tip:
    Empty/corrupt iTunes library after upgrade/crash

  • Every page in website is different even though they are the same size!  4 Views 0 Replies Latest reply: Sep 25, 2011 4:23 PM by kellynewmac     kellynewmac Level 1 (0 points) Sep 25, 2011 4:23 PM Can someone please tell me what I have done wrong ?

    Can someone please tell me what I have done wrong>?  Obviously I am new to iweb, and need help.  I recently built a website in iweb with only 5 pages, and I made the height, width, & all of the specs regarding the page size exactly the same, but they all load as different sizes on the website.  Also the text i typed loads right away, and the images take forever to load with each page when i look at it on a pc, and not mac.  Can someone please help me!!

    Obviously I am new to iweb, and need help.
    And one of your Services is Webdesign?
    Small consolation : iWeb is a very advanced piece of software. So advanced that even highly skilled professionals have difficulty understanding and using it.
    Anyway, your pages are NOT the same size by design. Which can clearly be seen. But also by checking the source of the pages.
    The Home page is 665px wide and the Contact page is 820px wide. That doesn't happen by magic. It's user induced.
    So do what I do : pay attention to every tiny detail. Especially when it's your business. No excuse.
    Here are some sample Sites :
         http://www.wyodor.net/mfi/
    You can download Domain files for your pleasure to study and use here :
         http://www.wyodor.net/mfi/Maaskant/How_To.html
         http://www.wyodor.net/mfi/size/768-946.html

  • Can someone please tell me what the name "radio" over a telephone contact means.

    Can someone please tell me what the name "radio" stands for over a telephone contact.

    "Radio" seems to be the default label if you're using an Exchange account. Just go into the contact, tap "Edit" in the upper right. Tap the word "radio" and select the label you'd prefer to use.

  • I received a $15.00 gift card. All but $.99 has been used. I want to make other purchases but can't as I'll be over the .99 with the tax......Of course I have a credit card on file, someone please tell me what to do in order to make another purchase? Than

    I received a $15.00 gift card. All but $.99 has been used. I want to make other purchases but can't as I'll be over the .99 with the tax......Of course I have a credit card on file, someone please tell me what to do in order to make another purchase?
    Thanks.

    JaniNY wrote:
    I thought of that, but my question is does it automatically flip to the CC.
    Yes.
    If you have a gift card balance, iTunes will use that.
    If the total is more than that, the difference will be charged to your credit card.
    You need do nothing.
    See this -> iTunes Store: How to redeem a code
    Free song credits are redeemed first.
    If you have no free song credits, gift certificate, prepaid card, and allowance credits are used next.
    If your gift certificate, prepaid card, and/or allowance credit is less than the total cost of the purchase, your credit card is billed for the remaining balance.
    If you have no free song credits or gift certificates, prepaid cards, or allowance credits, your credit card is billed for the songs you buy.

  • Can someone please tell me what to do if you continue to get the message that your apple id has been disabled?

    Can someone please tell me what to do if you continue to get the message 'your apple id has been disabled'?  I've tried everything suggested in the help section...many times.

    Contact itunes support.

  • I just got home from the Apple Store getting my iphone 4S fixed. I now have "Invalid Sim". Can someone please tell me what to do?

    I just got home from the Apple Store getting my iphone 4S fixed. I now have "Invalid Sim". Can someone please tell me what to do?

    What does it say when you look at Settings=>General=>Carrier?
    Did it work with that sim in the Apple Store?

  • For some reason all of my apple hardware is no longer being found on my itunes account which is windows based. can someone please tell me what i could do?

    My windows based itunes is not finding any of my apple hardware when it is plugged into my computer. Could someone please tell me what i need to do to fix it. i have already uninstalled and reinstalled itunes.

    Restart the computer.
    Try plugging into a different USB port on the computer.
    Try a different sync cable.    

  • When I try to install itunes I get an error message that says "Canot access internet conection \."  Can someone please tell me what's wrong?  My internet connection is working.

    When I try to install itunes I get an error message that says "Cannot access internet connection \."  Can someone please tell what this means?
    My internet connection is working.

    Okay. We'll try a different utility.
    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • At startup my chose application box pops with a question What is null? can someone please tell me what this is?

    at start up my  choose application box appears with the question "what is null?" can someone enlighten me on what this is?

    The third-party system modification "GoFlex" may be contributing to your problem. I suggest you back up all data, then uninstall it according to the developer's instructions. Reboot and see whether there's any improvement.
    Back up all data before making any changes.

  • Ok so I downloaded the iOS6 and now my iPod is reading my day and time and everything else to me I have to double tap my numbers to get in my password but my password won't even work can someone please tell me what's wrong

    So I downloaded the iOS6 on my iPod 4 and after 2 days it starts to read me everything I mean from my time and date to my password I have to double tap in my password In order for numbers to show up but when I type them it just says it's wrong please help what can I do to fix this problem with out having to reset EVERYTHING

    Triple Click your home button to turn off VoiceOver, or go to Settings > General > Accessibility and turn VoiceOver off.
    https://www.apple.com/accessibility/ios/voiceover/

  • Someone please tell me what I can do, outrageously bad customer service 4/30/15

    Last night, I went into a Verizon Corporate Store, in Los Angeles.
    The location was at La Brea and Santa Monica Blvd.
    I went in to discuss my displeasure with the iPhone 6 Plus (64 GIG), and my options on getting another phone. I've had the 6 Plus for 3 months and realized that there wasn't much I could do besides paying full price for the phone I wanted to change too (Samsung S6 Edge).
    The sales associate informed me that the trade-in value for my iPhone was only 370 dollars and suggested I sell it on craigslist for much more, then come back to the store and just purchase the phone wholesale for 699.
    I did just that. I sold the phone on craigslist for 625 at the sales associates advice, I came back to the store this evening and explained what I wanted to do.
    They refused to sell me the phone! I was baffled. I explained to them I was just in the store the day before and told them the associates name that suggested this, and they simply said "No, that isn't correct. We don't sell phones without contracts".
    I pleaded with them because this was in no way my fault. The manager was incredibly rude, and seemed completely disinterested in my story since it was 30 minutes until the store closed. He actually told me this " Go to Best Buy then ".
    I was at this location for 30 minutes trying to figure a way out but they refused to help me after telling me to do exactly what I did and put up such an attitude about it. When they told me to go to Best Buy, my jaw dropped.
    I've been with Verizon for years, but I think they just lost a customer.

    You can buy a phone at full retail price anytime you choose.  And don't beg them to take your money...take their advice and go elsewhere.  Don't ever spend money with someone who treats you as such...especially when you're not asking for any type of special privilege.

  • Can someone please tell me what this is?

    Sorry about the poor quality picture. But i've been wondering what that thing
    is for ages. It seems to be hooked onto the inside of the front grill. Any thoughts?
    Cheers
    Phil
    G5   Mac OS X (10.4.9)  

    Philip Dexter-
    It doesn't appear that you do, but i really can't tell through the fuzz. This document has an illustration of where the card should go.
    My guess is that you have neither. If you bought this computer new you should have the information on the invoice.
    Luck-
    -DaddyPaycheck

  • Can someone please tell me what's wrong with my feed?

    iTunes isn't updating with my most recent podcast, and I can't see what I've done wrong on my feed.
    Can someone help
    www.ministryofslam.com/feed
    https://itunes.apple.com/gb/podcast/ministry-slam-pro-wrestling/id301376618
    It's "Bonus Podcast" that isn't appearing

    At the beginning of the entry for the episode of 21 November you have the opening 'item' tag in twice. This is sufficient to render the feed unreadable and so it's turning up empty when subscribing and the Store is not updating.

  • I am having trouble printing 11x14 photos from 9.5.1 iPhoto. Can someone please tell me what to select?

    I am unable to find how to print a 11x14 photo through 9.5.1 iPhoto. there are different page selections but I cannot find what to select.

    In the Print window don't you have this option?
    If not bring up the Print window from any other application, like Preview, select Manage Custom Sizes under Paper Size:
    There you can add a custom size with the margins set as you want:
    But if you say it supports 11 inch wide paper stock it should have an 11 x 14 layout.

Maybe you are looking for

  • "don't have permission to see its contents"

    Greetings, I'm really having problems with this Snow Leopard, and don't want to be agitated, or frustrated, but it's getting harder and harder to do so. After installing on my 17" Macbook Pro, I was able to log in, fine, but was unable to do much of

  • Document not opening in /sap/bc/contentserver

    I am having this issue when i try to to to open the document which i stored "/sap/bc/contentserver" , it takes me to a webpage. here is the detail. 1. Able to check in the Document 2. Initially when i clicked the document i was getting this error "/s

  • BPM RFC synch send step

    Hi I am using RFC synch send step with in parforeach block in BPM. do I need to activate correlation to correlate synchronous request and synchronous response for RFC synch send step ? Please let me know if you have any ideas on this. Thanks Anand

  • Combine 2 scripts

    Hi, i am having 2 scripts Script 1 : user creation Script 2 : Table, function ,sp creation I need to combine this into a single which means I need to login as sysdba and execute the Script 1 and with that user details i need to login and execute the

  • Incopy Crashes when placin docx

    Is anyone having trouble placing docx files in Incopy files linked to an Indesign file? I keep crashing.