CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sat, 19 Jul 2025 14:54:33 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080222191620
location: https://web.archive.org/web/20080222191620/https://java.sun.com/docs/books/tutorial/java/data/
server-timing: captures_list;dur=0.842692, exclusion.robots;dur=0.025565, exclusion.robots.policy;dur=0.011049, esindex;dur=0.012998, cdx.remote;dur=24.238473, LoadShardBlock;dur=699.349420, PetaboxLoader3.datanode;dur=436.332239, PetaboxLoader3.resolve;dur=156.451812
x-app-server: wwwb-app215
x-ts: 302
x-tr: 755
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app215; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sat, 19 Jul 2025 14:54:33 GMT
content-type: text/html
x-archive-orig-server: Sun-Java-System-Web-Server-6.1
x-archive-orig-date: Fri, 22 Feb 2008 19:16:20 GMT
x-archive-orig-last-modified: Mon, 17 Dec 2007 23:54:16 GMT
x-archive-orig-accept-ranges: bytes
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Fri, 22 Feb 2008 19:16:20 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 15 Jun 2002 02:05:29 GMT", ; rel="prev memento"; datetime="Sat, 15 Sep 2007 21:44:01 GMT", ; rel="memento"; datetime="Fri, 22 Feb 2008 19:16:20 GMT", ; rel="next memento"; datetime="Mon, 24 Mar 2008 02:27:18 GMT", ; rel="last memento"; datetime="Sun, 07 Jul 2024 04:24:33 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_2_20080222101024_crawl103-c/51_2_20080222191218_crawl104.arc.gz
server-timing: captures_list;dur=0.730343, exclusion.robots;dur=0.039700, exclusion.robots.policy;dur=0.027236, esindex;dur=0.011571, cdx.remote;dur=12.140745, LoadShardBlock;dur=86.365791, PetaboxLoader3.datanode;dur=103.647269, load_resource;dur=113.715250, PetaboxLoader3.resolve;dur=69.435719
x-app-server: wwwb-app215
x-ts: 200
x-tr: 263
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Lesson: Numbers and Strings (The Java™ Tutorials > Learning the Java Language)
Numbers and Strings
Trail: Learning the Java Language
Lesson: Numbers and Strings
Numbers
This section begins with a discussion of theNumber
class (in thejava.lang
package) and its subclasses. In particular, this section talks about the situations where you would use instantiations of these classes rather than the primitive data types. Additionally, this section talks about other classes you might need to work with numbers, such as formatting or using mathematical functions to complement the operators built into the language.Strings
Strings, which are widely used in Java programming, are a sequence of characters. In the Java programming language, strings are objects. This section describes using theString
class to create and manipulate strings. It also compares theString
andStringBuilder
classes.
Problems with the examples? Try Compiling and Running
the Examples: FAQs.
Complaints? Compliments? Suggestions? Give us your feedback.
Copyright 1995-2007 Sun Microsystems, Inc. All rights reserved.
Complaints? Compliments? Suggestions? Give us your feedback.
Copyright 1995-2007 Sun Microsystems, Inc. All rights reserved.
Previous page: Previous Lesson
Next page: Numbers
Next page: Numbers