int, long variables print 03444482399 phone number not correct on console

Hi all

my code is public class {student

private String name;
private int rollNo.
private String stclass;
private phoneNo long;
program on the private channel;

public void setName (String name) {}
myIdName = name;
}
{} public void setRollNo (int rollNo)
this.rollNo = rollNo;
}
{} public void setstClass (String stclass)
This.stclass = stclass;
}
{} public void setPhoneNo (long phoneNo)
this.phoneNo = phoneNo;
}
{} public void setProgram (television program)
This.Program = program;
}
public String getName () {}
return the name.
}
public int getRollNo () {}
Return rollNo;
}
public String getstClass () {}
Return stclass;
}
public long getPhoneNo () {}
Return phoneNo;
}
public String getProgram () {}
back to programs;
}
public student (String name, int rollNo, stclass, long phoneNo, program of the string String) {}
setName (name);
setRollNo (rollNo);
setstClass (stclass);
setPhoneNo (phoneNo);
setProgram (the program);
}

public String toString() {}
Return "\n" + name + "" + rollNo + "\t" + stclass + "\t" + phoneNo + '\t' + program;
}

{} public void finalize()
}
}

Please find below the console out put of my program of javac.

Student REGISTRATION 1

___________________________________________________________________________
: S-NAME: S-ROLL No.: S-class: S-phone number: S-PROGRAM

___________________________________________________________________________
: ali raza hasan: 15: HE 633338943: GCS
----------------------------------------------------------------------------------------------------------------------------------

I want my phone number in the correct format to print console.

The real reason for your problem, it's that a phone number is normally not a long or integer type, but more as a string type. Long and wide are signed numbers, so you are in trouble if the phone number is greater then the positive long more important or integer (unsigned: 2³²-1 = 4·1024³-1; signed:-2³¹.. +2³¹-1, because the sign bit is the highest bit).
Think about international phone numbers that start with a sign '+' as an abbreviation for the combination to get an international line.
I suggest to use String as a type for the phone number.

Timo

Tags: Java

Similar Questions

  • notification of iMessage on Mac displaying the phone number, not name

    Only, I imported my contacts from my phone to my Macbook Air, but whenever I get a notification of text at the top right of my screen, it shows the phone number, not the name of the contact. Once I go into iMessage, the name is displayed. That's all just annoying that I don't know who texted me until I actually open iMessage. iCloud is enabled for my Mac and my iPhone.

    Check system preferences > Notifications > view Message

  • Phone number not an option for iMessage on iPad mini

    Hello

    So my ID Apple was recently hacked and had to change my password on all my devices (iPhone 6 and mini iPad). But now that I changed, my iMessage works well for my iPhone, but on my iPad, I have no option to choose my phone number. I tried to reset iMessage, reset my iPad, everything. Now I'm curious to know why, that's happened what else I can do for an option again.

    Thanks in advance for helping me!

    To go through all these steps?

    Use continuity to connect to your Mac, iPhone, iPad, iPod touch and Apple Watch - Apple Support

    Use this feature with any Mac, iPhone, iPad, or iPod touch that satisfies the requirements of continuity system. Make sure that your devices are configured as follows:

    • Each device is connected to iCloud with the same Apple ID.
    • On iPhone, go to settings > Messages > Send and receive. Make sure the Apple ID at the top of the screen is the same Apple ID you use for iMessage on other devices. Add a check to your address, phone number, so that you can be reached by both iMessage. Do the same on your iPad or iPod touch.
    • On iPhone, go to settings > Messages > transfer, text messages, then choose which devices to send and receive text messages from the iPhone. A verification code and then on each device. Enter this code on your iPhone.
    • On Mac, open Messages, and then choose message > Preferences. Click accounts, and then select your account from iMessage. Make sure the Apple ID shown here is the same Apple ID you use on other devices. Add a control to your phone number and email address.

    Use the SMS and MMS messaging

    To use this feature, simply start conversations as usual in the Messages application on any of your devices. Alternatively, you can start a conversation by clicking a phone number in Safari, Contacts, calendar, or other applications detecting phone numbers. All your incoming and outgoing messages on all your devices.

  • Phone number not showing up on top of mobile or tablet site

    I have a muse site (2015) ready to live, but when the mobile phone site is used, the client phone/fax number disappears. It presents on the version of office and in preview, but when live what we get is ph 703-555-1212 ph No. Does anyone else have this problem?

    A URL would help. But more likely is that the phone number is automatically converted into a link on phone/Tablet and the link color can be the same color it's the background on that. If so, you can always create a new link in the Site properties and apply the new style to link to the phone number.

  • PIXMA MX870: Can print and scan but can not fax. Phone number is correct

    Seems to work, get ther 'beeps' for a while, then get a report saying that the transmission is incomplete.  I don't know what to do from here?

    Hi CCC70,

    It is recommended that you contact the direct technical assistance. There is NO charge for this call. Information in real-time to a technical assistance call live would be very beneficial in this case.

    Please call 1-866-261-9362, Monday - Friday 10:00-10: 00 ET (excluding holidays). A Canon technical support representative will be able to solve this problem more quickly.

  • HP deskjet all-in-one 2540: printer saying phone we not available - it is not

    Phone says printer is not available, but it is

    Thanks wil give that a try. Tried turning off printer but not the phone. Thanks for your advice

  • Menu of the phone is not correctly aligned

    I want the submenus of the version of the phone to be aligned at the top, which is the first item in the submenu should be vertically aligned with the corresponding main menu label. At the present time the submenus are too high, no matter what I have the alignment option I choose.

    If anyone can help?

    Thank you!

    LINK:
    Home

    I checked out the site to the page and can see this submenu correspond to the main menu items, please let me know if Miss me something here.

    Thank you

    Sanjit

  • Someone has knowledge of MS Word and print the "topics" does not correctly?

    With the help of MS Office 2010 (I think). Each page has a background color. I discovered that it is a 'theme' as I was able to change the theme and it changed the background color, etc.. When I go to print our Copier color, the preview shows white background and then, in the INVESTIGATION period, it shows a white background color.

    I was then going to PDF file to work around this problem, but the PDF is causing white funds. I MAY be able to place this PDF in InDesign and then add a background color to a master page, but rather would deal with if I don't.

    Word Options > display > Printing Options > print the background color and images

  • Page Web Apple ID is no longer you allow to edit "can be reached to the ' phone number

    The new Page of Apple ID is no longer you allows you to edit a "reachable to the ' phone number.  The 'x' icon does not exist to be reached at the phone number.

    The phone number listed on my apple ID is incorrect and a phone from 2 years ago.

    I checked the number shows correctly on my IOS devices, all my OS X devices (iTunes account etc.) and the imessages and factetime.  I logged on all accounts on all devices (including the facetime and imessages) and reconnected but - Boulard... phone number of apple is ALWAYS incorrect and immutable to appleid.apple.com.  The phone number correctly absolutely everywhere else - shows info billiong, itunes, etc.

    I logged a request for assistance to the Apple and the technical support told me that she is seeing the same thing - so - there is a bug any on the new web page Apple ID.

    Anyone else encounter this problem is strongly encouraged to call Apple Support and connect the bug as well - you can check that your phone number IS correct on the web page of Appleid.Apple.com - FYI.

    Create a new second number and you will then remove one.

  • J4680 all in a fake phone number

    Hello. I've just moved house, got a new phone number and set up my printer today to find on my test of fax, that he gives me my old phone number, not my other.

    Someone know how to fix this problem, please I need to send faxes and doesn't want to go with them a wrong number.

    I looked in the help of fax machine manual, and there is nothing about it.

    Thanks in advance.

    For some reason, the configuration information are not in the Fax getting started Guide, but it's on, pages 55 and 56 of the Guide of the user here, who said:

    Configure the fax header
    The fax header print your name and fax number on the top of every fax you send. HP recommends that you configure the fax header by using the software you installed with the device. You can also configure the fax header in the device control panel, as described here.
    NOTE: In some countries / regions, the fax header information are a legalrequirement.

    To set or change the fax header

    1. press Setup.
    2. press the right arrow key to select fax settings, and press OK.
    3. press the right arrow key to select Fax header and press OK.
    4. Enter your personal data and company names using the keypad, then press OK.
    5. Enter your fax number using the numeric keypad and press OK.

  • Problem with the Menu accordion Mobile, try calling the phone number

    I created a menu accordion on the mobile version of my site, and each link is trying to connect to a phone number, not the actual page, it must be bound (such as 'home', 'about' 'contact', etc.) I tried to clear more of master and departure, but it does the same thing...

    Your main manu works fine at my end, but you have an extra trigger on the phone's home page that sits on top of the relaxation of manu.

  • How can I change my phone number?

    I need to change my phone number for iCloud chain. How do I do that?

    Get help using iCloud Keychain - Apple Support

    1-

    • On your iPhone, iPad or iPod touch, tap Settings > iCloud > Keyring > advanced. (In the iOS 7, tap Settings > iCloud > account > keychain.) Make sure that the verification number phone number is correct. If this isn't the case, enter a different phone number.

    2

    • On your Mac, choose Apple menu > System Preferences. ICloud-click, and then click Options next to keychain. (In OS X Mavericks or an earlier version, click on iCloud, and then click Account Details). Make sure that the verification number phone number is correct. If this isn't the case, enter a different phone number.
  • HP Deskjet 1000 color printing not correct

    I have a MsacBook computer Pro, installed the driver for the HP Deskjet 1000 and installed new cartridges black #122 and color n ° 122.

    Now when I print, the colors are not correct.  Fate red yellow and Brown leaves green.

    The printer has worked before on my old Mac, but does not work on my new MacBook Pro.

    Help!

    The symptoms you describe would be compatible with a color cartridge that is not correctly print magenta.  In the paper here troubleshooting steps can help solve the problem.

    If the above does not solve the problem, then remove the color cartridge and gently pat dry the printhead on a damp cloth.  A good cartridge will have a strong task of cyan, magenta and yellow.  I suspect that your cartridge will be only the cyan and yellow.  In this case, you can check the warranty as stated in the paper here assuming that the cartridge is an original HP.  If the cartrdige is a third party charging/reman, then contact your dealer for a replacement.

  • Layout another phone is not detected by the phone

    I created a site with a desk and a telephone of substitution. Aid is said that when you publish (I edited to Business catalyst to listen to extracts), the browser on the device automatically displays the correct version. :

    "When you publish a site with two or three different configurations, Muse generates the code for the site which includes detection scripts to identify what kind of computer or device and what type of browser, the visitor is using the access of the page.

    The detection code determines the version of the platform and browser and displays then automatically layout correct. »

    So when I checked the phone (iphone 5 and a samsung galaxy), it displays the desktop version. I know because the menu on the layout of the phone is an accordion of vertical menu items, while the desktop version has an accordion with horizontal menu items. There are other differences that tell me that displayed on the phone is not correct.

    What have I done wrong?

    Thanks for the heads up John.

    What happens is sometimes due to frequent download files, there might be a chance of any element HTML get corrupted, which can result in various types of questions.

    I am happy that it worked.

    Best regards

    Ankush

  • not the case in the present site gives a phone number to explain my contract, I can move from one computer to another? How can I set up for printing to Adobe

    Not the case in the present site gives a phone number to explain my contract, I can move from one computer to another?

    How can I set up for printing to Adobe

    So far, it is not necessary for a person no-tech.

    If you have a normal single-user license or subscription, you are allowed to have two active facilities as long as you use only one of them for the software at the same time.  You can disable and re-enable them if necessary to install on another machine.

Maybe you are looking for