mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +00:00
Typo fixes and refactor description of Java Map
This commit is contained in:
parent
66bc42e31b
commit
7a864ef86b
@ -7,6 +7,7 @@ contributors:
|
|||||||
- ["Simon Morgan", "http://sjm.io/"]
|
- ["Simon Morgan", "http://sjm.io/"]
|
||||||
- ["Zachary Ferguson", "http://github.com/zfergus2"]
|
- ["Zachary Ferguson", "http://github.com/zfergus2"]
|
||||||
- ["Cameron Schermerhorn", "http://github.com/cschermerhorn"]
|
- ["Cameron Schermerhorn", "http://github.com/cschermerhorn"]
|
||||||
|
- ["Rachel Stiyer", "https://github.com/rstiyer"]
|
||||||
filename: LearnJava.java
|
filename: LearnJava.java
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -137,7 +138,7 @@ public class LearnJava {
|
|||||||
//
|
//
|
||||||
// BigDecimal allows the programmer complete control over decimal
|
// BigDecimal allows the programmer complete control over decimal
|
||||||
// rounding. It is recommended to use BigDecimal with currency values
|
// rounding. It is recommended to use BigDecimal with currency values
|
||||||
// and where exact decimal percision is required.
|
// and where exact decimal precision is required.
|
||||||
//
|
//
|
||||||
// BigDecimal can be initialized with an int, long, double or String
|
// BigDecimal can be initialized with an int, long, double or String
|
||||||
// or by initializing the unscaled value (BigInteger) and scale (int).
|
// or by initializing the unscaled value (BigInteger) and scale (int).
|
||||||
@ -184,8 +185,12 @@ public class LearnJava {
|
|||||||
// LinkedLists - Implementation of doubly-linked list. All of the
|
// LinkedLists - Implementation of doubly-linked list. All of the
|
||||||
// operations perform as could be expected for a
|
// operations perform as could be expected for a
|
||||||
// doubly-linked list.
|
// doubly-linked list.
|
||||||
// Maps - A set of objects that maps keys to values. A map cannot
|
// Maps - A set of objects that map keys to values. Map is
|
||||||
// contain duplicate keys; each key can map to at most one value.
|
// an interface and therefore cannot be instantiated.
|
||||||
|
// The type of keys and values contained in a Map must
|
||||||
|
// be specified upon instantiation of the implementing
|
||||||
|
// class. Each key may map to only one corresponding value,
|
||||||
|
// and each key may appear only once (no duplicates).
|
||||||
// HashMaps - This class uses a hashtable to implement the Map
|
// HashMaps - This class uses a hashtable to implement the Map
|
||||||
// interface. This allows the execution time of basic
|
// interface. This allows the execution time of basic
|
||||||
// operations, such as get and insert element, to remain
|
// operations, such as get and insert element, to remain
|
||||||
|
@ -3,6 +3,7 @@ language: xml
|
|||||||
filename: learnxml.xml
|
filename: learnxml.xml
|
||||||
contributors:
|
contributors:
|
||||||
- ["João Farias", "https://github.com/JoaoGFarias"]
|
- ["João Farias", "https://github.com/JoaoGFarias"]
|
||||||
|
- ["Rachel Stiyer", "https://github.com/rstiyer"]
|
||||||
---
|
---
|
||||||
|
|
||||||
XML is a markup language designed to store and transport data.
|
XML is a markup language designed to store and transport data.
|
||||||
@ -65,12 +66,12 @@ Unlike HTML, XML does not specify how to display or to format data, it just carr
|
|||||||
|
|
||||||
* Well-Formated Document x Validation
|
* Well-Formated Document x Validation
|
||||||
|
|
||||||
A XML document is well-formated if it is syntactically correct.
|
An XML document is well-formatted if it is syntactically correct.
|
||||||
However, it is possible to inject more constraints in the document,
|
However, it is possible to inject more constraints in the document,
|
||||||
using document definitions, such as DTD and XML Schema.
|
using document definitions, such as DTD and XML Schema.
|
||||||
|
|
||||||
A XML document which follows a document definition is called valid,
|
An XML document which follows a document definition is called valid,
|
||||||
regarding that document.
|
in regards to that document.
|
||||||
|
|
||||||
With this tool, you can check the XML data outside the application logic.
|
With this tool, you can check the XML data outside the application logic.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user