Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7162857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:48:15+00:00 2026-05-28T13:48:15+00:00

I was looking through O’Reillys Java Cookbook (2ed) for some good stuff and found

  • 0

I was looking through O’Reillys Java Cookbook (2ed) for some good stuff and found Scanner.create() method about 10 times. But there’s no such in the API or class declaration\implementation. Ex: Page example

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:48:16+00:00Added an answer on May 28, 2026 at 1:48 pm

    It’s either referring to a non-SDK Scanner type or is an error in the book.

    There is no static Scanner Scanner.create() in Java 1.5/5 (when it was introduced), or in the SDK 6 or SDK 7 APIs. There is also no mention of such a method being obsoleted (which, in Java SDK API, effectively means it never [officially] existed :-).

    Update note: It appears that the create factory method did indeed exist in the earliest preview/beta versions of Java 5. RanRag found a relevant thread on the issue:

    …and no, you aren’t going crazy: Scanner had create() methods in [Java 5] tiger-beta1, but they switched to constructors in [Java 5] beta2.

    (So the only correct way to is use the constructor.)

    Happy coding.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was just looking through some information about Google's protocol buffers data interchange format.
I was looking through the Java documentation, and I came across the clear() method
Looking through some java code and this just does not seem right. To me,
Looking through Java EE6 API I've found interesting package javax.xml.registry.infomodel , containing such interfaces
After looking through some sites (eg https://www.owasp.org/index.php/Main_Page ) I found no EXPLICIT mention of
I was looking through the /etc/bash_completion script found in some Debian packages. I was
Looking through the Android apis I found a method call isUserAMonkey() , says it
While looking through some code (javascript), I found this piece of code: <script>window.Bootloader &&
Looking through some code I came across the following code trTuDocPackTypdBd.update(TrTuDocPackTypeDto.class.cast(packDto)); and I'd like
I've done some looking through the site and on the Internet trying to find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.