473,511 Members | 9,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

function libary

tolkienarda
316 Contributor
hi all

i am trying to learn java, i currently develop in php and mysql and i have gotten used to the documentation at php.net, all i have to do is type in a function name like php.net/isint and it takes me to a page of documentation on that function and lists several user examples, i was wondering if there is anything similar in java. and if anyone knows is there an prebuilt function to check if there is a function that checks to see if a variable is an int.

thanks

eric
Sep 12 '07 #1
6 1342
r035198x
13,262 MVP
hi all

i am trying to learn java, i currently develop in php and mysql and i have gotten used to the documentation at php.net, all i have to do is type in a function name like php.net/isint and it takes me to a page of documentation on that function and lists several user examples, i was wondering if there is anything similar in java. and if anyone knows is there an prebuilt function to check if there is a function that checks to see if a variable is an int.

thanks

eric
First, bookmark this page.
Now unlike PHP, Java is strongly typed. Every variable's type must be known and specified at declaration time so an isInt function wouldn't make much sense since int is a primitive type anyway.
If you meant how to check if a String's value is convertible to an int, then you can use Integer.parseInt to actually convert the string to int and catch an IllegalArgumentException. If the exception is thrown, your value is not an int.
Sep 12 '07 #2
JosAH
11,448 Recognized Expert MVP
For Java you have to get used to the API java documentation. It doesn't give
you direct search options that you can type in but it uses hyperlinks all over
the place. You'll get used to it. The best option (IMHO) is to download the entire
thing and bookmark it in your browser.

kind regards,

Jos
Sep 12 '07 #3
kreagan
153 New Member
First, bookmark this page.
This link doesn't contain the direct API link.
API
Sep 12 '07 #4
tolkienarda
316 Contributor
thank you all
i learned everything in know about php from this site and i can see that you java guys are just as helpful as the php crew

thanks a million
eric
Sep 12 '07 #5
JosAH
11,448 Recognized Expert MVP
thank you all
i learned everything in know about php from this site and i can see that you java guys are just as helpful as the php crew

thanks a million
eric
You're welcome of course. Java is just a little language but it has a huge core
set of classes. Basically it boils down to this: you don't have to do much programming
if you make good use of those core classes; everything else is just a bit of ifs,
loops, a few methods and classes, a few patterns, and what have you ...

kind regards,

Jos
Sep 12 '07 #6
praveen2gupta
201 New Member
hi all

i am trying to learn java, i currently develop in php and mysql and i have gotten used to the documentation at php.net, all i have to do is type in a function name like php.net/isint and it takes me to a page of documentation on that function and lists several user examples, i was wondering if there is anything similar in java. and if anyone knows is there an prebuilt function to check if there is a function that checks to see if a variable is an int.

thanks

eric
Hi
java works differently. You should start from scratch and read the API documents. Java ia having a huge resources in terms of methods and classes .All your nedd is available in java.
Sep 13 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

11
2262
by: Enquiries, Hopkins Research | last post by:
Hi all I have a conundrum that is puzzling me. I have a large codebase in C that I am converting to C++ as fast as possible (i.e. slowly because I keep learning new idioms and stumbling with...
2
1366
by: Emerson | last post by:
I mean how can i call a function which is in another project? Should i build the function into a libary or something like .dll? And how? Thank you so much. -- Emerson
1
1366
by: Tom Edelbrok | last post by:
I am creating a class libary of VB.Net utilities that will be built into a DLL. This DLL can be used by our development VB.NET programs when they want to call standard in-house utilities. I...
2
3062
by: Bit byte | last post by:
I am writing an application that requires me to load a (Win32 C) libray and then register several call back functions. I am loading the libary in a worker thread and then registering functions...
3
1307
by: Jacob | last post by:
Hi! Where do i find .NET class libary in Visual studio? I mean if you would like to browse through the classes and members. Or if you want to search fr specific classes or members. Thanks in...
19
1524
by: xdevel | last post by:
Hi, I know there are in stdlib.h many functions to perform conversion from string to int, double ecc. but I don't understand if there are some standards function to perform conversion from...
4
1765
by: vedrandekovic | last post by:
Hello, Does anybody have any idea how can I embed my modules to libary.zip and use it from my application.For example if user write this code in my TextEntry ( or something like that, textentry...
40
2287
by: Angus | last post by:
Hello I am writing a library which will write data to a user defined callback function. The function the user of my library will supply is: int (*callbackfunction)(const char*); In my...
16
3255
by: Xiaoxiao | last post by:
Hi, I got a C library, is there a way to view the public function names in this library so that I can use in my C program? Thanks.
0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7089
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.