Java language specification

1. Need most full on-line java language specification.
2. How to convert String to int?

You can convert only string wrapped numbers in to
int, not all strings.wrong. It all depends on the algorithm you use and
what meaning you wish to assign to the outcome...
Take a hashcode for example, you can create one from
a string and it is an integer value.I think he meant one can only parse strings containing "0-9" to int's.
That is not true of course, because you can parse strings with base > 10.

Similar Messages

  • Java Language Specification error reports

    Well, I wanted to report a typo in The Java Language Specification, Third Edition (http://java.sun.com/docs/books/jls/download/langspec-3.0.pdf), so from http://java.sun.com/docs/books/jls/ I clicked on the "feedback form" link (which points at http://developers.sun.com/contact/feedback.jsp?&category=doc&mailsubject=Java%20Language%20Specification%20Feedback). This was redirected to http://www.oracle.com/technetwork/community/join/overview/index.html which offers no such feedback form. Consider this sort-of-broken link as the first problem I'm reporting.
    The second problem is in the aforementioned pdf, section 4.8 (Raw Types), page 58, where on can read:
    "The type of the member(s) of Inner depends on the type parameter of Outer. If Outer is raw, Inner must be treated as raw as well, as their is no valid binding for T."
    This should be instead:
    "The type of the member(s) of Inner depends on the type parameter of Outer. If Outer is raw, Inner must be treated as raw as well, as there is no valid binding for T."
    I think a forum category should be created for just this: error reports about the documentation (pdfs, APIs, support web pages).
    Edited by: Urhixidur on 2011-09-08 09:23

    Your intentions are admirable, but you are probably wasting your time. This is a forum for Java development related questions and 99.5% of the visitors are not related to Oracle at all. most likely nothing will be done with your information.
    I think a forum category should be created for just this: error reports about the documentation (pdfs, APIs, support web pages).It is a good idea actually, but such a thing would need very tight moderation and then there is still the question of how to arrange that something is actually done with the reports.

  • Isn't it inconsistent in JLS (Java Language Specification)?

    In section 11.2 Compile-Time Checking of Exceptions, Chapter 11 Exception , JLS,
    it says "Static initializers (�8.7), class variable initializers, and instance initializers or instance variable initializers within named classes and interfaces (�8.3.2), must not result in a checked exception; if one does, a compile-time error occurs."
    but in 8.6 Instance initializers, it says "An instance initializer of a named class may not throw a checked exception unless that exception or one of its superclasses is explicitly declared in the throws clause of each constructor of its class and the class has at least one explicitly declared constructor. "
    Isn't is inconsistent?

    From the Java Spec Report
    http://www.ergnosis.com/java-spec-report/java-language/jls-11.2.html
    jikes 1.14 implements this. The Sun jdk 1.3.1 compiler does not.

  • How to start learning java language?

    can any one advise me how to start with

    can any one advise me how to start withJVerd's post is great.
    Also there are some links I have compiled over the last few months along with others in this forum.
    Free Tutorials and Such
    Installation Notes - JDK 5.0 Microsoft Windows (32-bit)
    Your First Cup of Java
    The Java? Tutorial - A practical guide for programmers
    New to Java Center
    Java Programming Notes - Fred Swartz
    How To Think Like A Computer Scientist
    Introduction to Computer science using Java
    The Java Developers Almanac 1.4
    Object-Oriented Programming Concepts
    Object-oriented language basics
    Don't Fear the OOP
    Free Java Books
    Thinking in Java, by Bruce Eckel (Free online)
    Core Servlet Programming, by Merty Hall (Free Online)
    More Servlets, by Marty Hall (Free Online)
    A Java GUI Programmer's Primer
    Data Structures and Algorithms
    with Object-Oriented Design Patterns in Java, by Bruno R. Preiss
    Introduction to Programming Using Java, by David J. Eck
    Advanced Programming for the Java 2 Platform
    The Java Language Specification
    Books:
    Head First Java, by Bert Bates and Kathy Sierra
    Core Java, by Cay Horstmann and Gary Cornell
    Effective Java, by Joshua Bloch
    Also if you are in school, definatly take a intro to programming course.
    Have Fun,
    JJ

  • Java language proposal #1

    The overhead of reference counting has led to a preference for mark-and-sweep garbage collection. But this has some obvious disadvantages as well. For example, creation of temporary objects chews up memory; this reduces performance due to having to search for unused objects during garbage collection. Although incremental garbage collection can spread the search cost evenly over time, this does not reduce the cost.
    It is evident that both reference counting and mark-and-sweep have their place. Although it is conceivable that the JVM could dynamically choose between the two for any given class, this seems difficult to implement.
    The Java language specification should allow the programmer to specify whether a class is reference counted or not. To maintain compatibility, reference counting could be specified by adding the "transient" keyword to the class declaration.

    It wasn't only the "overhead" of reference counting that led to the use of other methods of garbage collection. There was also the problem that circular references (which are very common) meant that islands of inter-reference could never be collected, leading to memory leaks. This is the case in Visual Basic, for example, and it's sometimes surprisingly difficult to write code to get circular references unlinked so that garbage collection can take place.
    There's also the problem that the existing method of garbage collection (which can be summarized as "Don't refer to it and it will go away") appears to be too complicated for many programmers to understand, leading them to voodoo coding styles to "get around it". So I don't support making it even more complicated.

  • Language specific settings for ESS/MSS

    Hello Experts,
    I got a question on language specific settings on the portal:
    1) Suppose i have configured my ESS/MSS BP  and my settings are in English language. Now when i logged in to the portal and click, it is opened in English language only, but when i click on Leave Request page, this particular page is opened in some other language (i mean other than English), so what might be the problem and where are the settings needs to be done if i encounter these kind of errors.
    Cheers
    Vijay

    Hi Vijay
    There are so many things that could affect language here is the ones I am aware of
    1) IE locale
    2) JCO language setting
    3) Forced Language in Iview itself
    4) Missing translations in the translation cycle
    5) Java Dictionary bugs see 1082994
    6) WD JAVA runtime bugs see 1265969
    Best wishes
    Stuart

  • Language specific characters with JDBC

    Does anybody know how to insert language specific characters to Oracle tables using JDBC and without the overhead of unicode conversion back and forth?
    At the moment, all we can do is to convert those characters to unicode when inserting, and perform a reverse conversion when getting back from a resultset. This is cumbersome in large text data.
    Is there a way to configure the RDBMS and/or the operating system for this purpose? We are using Oracle 7.3.4 on Windows NT 4.0 SP5, Oracle JDBC Driver 8.1.6, and Java Web Server 2.0 (JDBC 1.0 compliant). Suggestions for Oracle 8.1.6 and Solaris 2.6 will also be appreciated.
    Ozan & Serpil

    Hi Jeremy,
    Below is meta tags for Turkish
    lt & meta http-equiv="Content-Type" content="text/html; charset=windows-1254" / & gt
    lt & meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-9"  / & gt
    lt & meta http-equiv="Content-Language" content="tr" / & gt
    I tryed but result is the same.
    I think .irpt has no Turkish support.
    Thanks.

  • How can I develop co-broswing on Windows platform with java language?

    How can I develop co-broswing on Windows platform with java language?
    The function will be realized
    Now I want to develop a co-broswing system with java language on Windows platform.That is to say I will develop
    a application run on client to track the present browser.Wheh the URL address of your present if changed(for example
    when you click a link or submit a form),the application will capture the new URL address and send it to the other
    client that make co-browsing connect with you.The browser on the other client side will catch the new URL and refesh
    the page to show the page.
    The question I fall across and want to ask you
    (1)How to watch system process with java on the Windows platform?Because I want to get the process information of
    the present broswer,and then get the URL address of the present broswer.
    (2)Develop an application to watch the URL address of the present broswer continuance,If the URL address is changed,
    then send the new URL address to the client on the other side,let his broswer to show the new page using the new URL.

    Paulc, A proxy server is not the right thing.
    What our man here is looking for is a solution for two
    users to kind of surf the net "in tandem" - when one
    user navigates to a different web page, so does the
    other user,
    These are typically used in call center applications
    where the advisor guides a caller through , say
    filling in an insurance form or pointing him to the
    right product specification pages.
    Xing, why are you using Java for this ? You need
    something that has better windows integration. If you
    look on MSDN.microsoft.com and search for "explorer
    bar" you will find solutions to the questions that you
    raised.
    There are also commercial products on the market that
    already do this kind of stuff. there is one from
    www.genesyslabs.com which is considered to be the best
    of breed.
    It is difficult or almost impossible to do this in
    Java for a commercial application.
    If you are developing this as an academic exercise,
    give it a try. Post your email address here, and I
    will contact and help you out if you like.my e-mail is below ,I want to contact you and need all of your help.
    [email protected]

  • Problem with language specific characters on e-mail sending

    Hi,
    Problem with language specific characters on e-mail sending.
    How can it be fixed?
    Thanks.

    Hi,
    try to work on the charecter code set UTF-8 or UTF-16. You can define this in html.
    Or encode the charecter using java script.
    Hope this may help you.
    Deepak!!!

  • Runtime.exec() with language specific chars (umlauts)

    Hello,
    my problem is as follows:
    I need to run the glimpse search engine from a java application on solaris using JRE 1.3.1 with a search pattern containing special characters.
    Glimpse has indexed UTF8 coded XML files that can contain text with language specific characters in different languages (i.e. german umlauts, spanish, chinese). The following code works fine on windows and with JRE 1.2.2 on solaris too:
    String sSearchedFreeText = "Tür";
    String sEncoding = "UTF8";
    // Convert UTF8 search free text
    ByteArrayOutputStream osByteArray = new ByteArrayOutputStream();
    Writer w = new OutputStreamWriter(osByteArray, sEncoding);
    w.write(sSearchedFreeText);
    w.close();
    // Generate process
    String commandString = "glimpse -y -l -i -H /data/glimpseindex -W -L 20 {" + osByteArray.toString() + "}";
    Process p = Runtime.getRuntime().exec(commandString);
    One of the XML files contains:
    <group topic="service-num">
    <entry name="id">7059</entry>
    <entry name="name">T&#195;&#188;rverkleidung</entry>
    </group>
    Running the java code with JRE 1.2.2 on solaris i get following correct commandline
    glimpse -y -l -i -H /data/glimpseindex -W -L 20 {T&#195;&#188;rverkleidung}
    --> glimpse finds correct filenames
    Running it with JRE 1.3.1 i get following incorrect commandline
    glimpse -y -l -i -H /data/glimpseindex -W -L 20 {T??rverkleidung}
    --> glimpse finds nothing
    JRE 1.2.2 uses as default charset ISO-8859-1 but JRE 1.3.1 uses ASCII on solaris.
    Is it possible to change the default charset for the JVM in solaris environment?
    Or is there a way to force encoding used by Runtime.exec() with java code?
    Thanks in advance for any hints.
    Karsten

    osByteArray.toString()Yes, there's a way to force the encoding. You provide it as a parameter to the toString() method.

  • Java Language/Syntax Reference

    Is there a web page somewhere that lists all the functions/methods/classes/etc to do with the JAVA language? Microsoft have the MSDN Library and it has all the languages in there with what I'm after but funnly they don't cover JAVA.
    What I am specifically looking for atm is the equivelent to the String Function len(). In VB if you want the length of a string all you do is:
    sLenOfString = len(string)
    How do you do this in JAVA?

    It's not a reference per se, but the "Learning the Java Language" trail of the Java Tutorial covers syntax.
    Here's another useful link for a Java programmer. :)
    http://java.sun.com/docs/books/tutorial/index.html

  • How to convert a sql query to a java language?

    A sql like this:"update myoracletable set name='myname',age=26,sex='female',address=NULL,visittime=SYSDATE,visitnum=visitnum+1where name='name' and address='address'",I want to use java language update such as :rs.updateString(),rs.updateDate() but not a sql update.How can I do in this case?

    Something like this?
    try{
         DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
         Connection con = DriverManager.getConnection("jdbc:oracle:thin:@your_server:1521:sid","scott","tiger");
         Statement st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
         ResultSet rs = st.executeQuery("SELECT deptno,dname,loc FROM dept where deptno=28");
         while(rs.next() ) {
              rs.updateString(2,"Some Name");
              rs.updateString(3,"Some Location");
              rs.updateRow();
              System.out.println(rs.getString(1)+" : "+rs.getString(2)+" : "+rs.getString(3));
    } catch (Exception e) {
         System.out.println(e);
    }Sudha

  • Issue with language specific characters combined with AD-Logon to BO platform and client tools

    We are using SSO via Win AD to logon to BO-Launchpad. Generally this is working which means for Launch Pad no manual log on is needed. But  this is not working for users which have language specific letters in their AD name (e.g. öäüéèê...).
    What we have tried up to now:
    If the AD-User name is Test-BÖ the log on is working with the user name Test-BO with logon type AD
    If the logon Type "SAP" is used than it is possible to use the name Test-BÖ as the username
    Generally it is no problem in AD to use language specific letters (which means it is possible to e.g. log on to Windows with the user Test-BÖ)
    It is possible to read out the AD attributes from BO side and add them to the user. Which means in the user attributes the AD name Test-BÖ is shown via automatic import from AD. So it's not the problem that the character does not reach BO.
    I have opened a ticket concerning that. SAP 1th level support is telling me that this is not a BO problem. They say it is a problem of Tomcat. I don't believe that because the log on with authentification type SAP is working.
    I have set up the same combination (AD User Test-BÖ with SAP User Test-BÖ) as a single sign on authentification in SAP BW and there it is working without problems.
    Which leads me to the conlusion: It is not a problem of AD. It is something which is connected to the BO platform but only combined with logon type AD because SAP Logon is working with language specific characters.

    I have found this article with BO support:
    You cannot add a user name or an object name that only differs by a character with a diacritic mark
    Basically this means AD stores the country specific letters as a base letter internally. Which means that if you have created a user with a country specific letter in the name you can also logon with the Base letter to Windows.
    SAP-GUI and Windows are maybe replacing the country specific letters by the base letter. Due to that SSO is working. BO seems not to be able to do that. Up to now the supporter from BO is telling me that this is not a BO problem.
    Seems to be magic that the colleagues of SAP-GUI are able to to it.

  • How do I surface language specific texts in Integrated ITS?

    Hello all,
    I'm new to both stand alone and integrated ITS and am researching the upgrade process. In our stand alone templates we used htrc files with our html templates to show language specific texts.
    Example.
    html template code for a field label
    `if (i==2) DETAIL-FLABEL[2]= #KAFN end`
    htrc name value pair
    z_pz01_en.htrc
    KAFN     Known As First Name
    z_pz01_de.htrc
    KAFN     Bekannt unter dem Vornamen
    I see no hint that htrc's can be used in integrated and am not seeing anything in the way of resource based language texts in integrated. I think I've hit every document out there yet, I have a feeling I'm missing something obvious. Your help is appreciated.
    Doug

    Edgar,
    Thanks so much for the detail!
    I have run through the steps for manual creation of translations as well as SIAC_UPLOAD of htrc files and have it working and documented. I will add a few more findings here for others who find this post later.
    Some of our old htrc files had duplicate keys (probably from original German version). In stand alone ITS the last key in the file was used so this didn't matter. In integrated ITS this matters for 2 reasons.
    1 Uploading/Converting htrc files having logged in in English will cause failures if any of the text being entered in the service parameters has characters that arent consistent with the codepage being used for EN. (Ex. back Azureück). Clean up htrc files to use only the language they should contain.
    2 Stand alone ITS was forgiving of htrc files containing duplicate keys. Integrated ITS is not. Remove all duplicate keys.
    3. This one is obvious but... if  parameters have already been entered in another language you may be prompted to confirm you are changing language and there are several prompts along the way. As these prompts will appear in the logon language itu2019s important to eitheru2026
    a. Be fluent in all supported languages , oru2026
    b. Memorize button and menu positions.
    I do have one additional question.
    Our old stand alone setup had an alternate corporate "APCI" design that we used...
    File system view -
    hostDEV_WWWmimesdesigns"apci"webgui as opposed to the out of box
    hostDEV_WWWmimesdesignssap_streamlinewebgui I suppose.
    I believe this was then referenced in the global services file ~DESIGN="APCI"
    I'm starting research to understand if there is an analog to this in the integrated webgui service or precisely what I have to do to accomplish alternate styles for webgui and our Z_services.
    Thanks again, points on the way, If I could award more I would.
    Doug

  • I know c,c++ and java language ! and i want to contribute for development of mozilla products ! any idea where i can find beginner level projects ?

    I know c,c++ and java language ! and i want to contribute for development of mozilla products ! any idea where i can find beginner level projects ! so that i can hone some real development skills too :)

    You could also try jumping in on some of the Mozilla IRC chat channels as was suggested to someone else in another thread.
    Also you could also try the [/forums/buddies new contributors forum], it does now have an Admin monitoring and replying. (At the time of the quoted post Admins were almost impossible to get hold of for forum matters )
    ''Noah_SUMO [/forums/buddies/710569#post-61671 said]''
    <blockquote>
    Sorry I didn't see this earlier. :)
    I know just the places where I think you'd fit in best. To make sure, just join us in #sumodev and #mozwebqa and #communityit at irc://irc.mozilla.org
    I think your skills in php, javascript, python and server admin-y stuff will come in real handy at these places. :D
    For example, some help is needed here to fix these tests after a new theme was added to wiki.mozilla.org and they are in python. https://github.com/mozilla/wiki-tests - more info in #mozwebqa
    And maybe some help with perl might be needed with firebot, a irc bot written in perl. Channel #firebot for that.
    And #communityit (for server admin stuff) and #sumodev could use some help as well, just pop in and ask. :)
    </blockquote>
    Also see
    * [[Contributor News & Resources#w_communication-channels]]_communication-channels
    ** Mibbit link (this one for #sumo channel ) https://www.mibbit.com/?server=irc.mozilla.org&channel=%23sumo
    P.S. and see
    * https://wiki.mozilla.org/Good_first_bug

Maybe you are looking for