Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEW EXAMPLE] JDK - StringTokenizer #44

Open
ainzzorl opened this issue Aug 12, 2021 · 1 comment
Open

[NEW EXAMPLE] JDK - StringTokenizer #44

ainzzorl opened this issue Aug 12, 2021 · 1 comment
Labels
cooldown new example New example proposal

Comments

@ainzzorl
Copy link
Owner

General

Description

String tokenizer in Java standard library.

Links

What makes it interesting

  • Part of Java standard library.
  • Since Java 1.0
  • Written by James Gosling

Related work

No

Other

Alternatively, we can look at StreamTokenizer: https://github.com/openjdk/jdk/blob/739769c8fc4b496f08a92225a12d07414537b6c0/src/java.base/share/classes/java/io/StreamTokenizer.java

@ainzzorl ainzzorl added the new example New example proposal label Aug 12, 2021
@ainzzorl
Copy link
Owner Author

ainzzorl commented Sep 7, 2021

  • StringTokenizer is deprecated in favor of String.split()
  • String.split() doesn't look particularly interesting
  • StreamTokenizer is really hard to follow; doesn't seem a great example for CC.

Moving it to cooldown for now, and will probably just discard this.

We should definitely look into something else from JDK, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cooldown new example New example proposal
Projects
None yet
Development

No branches or pull requests

1 participant