Recent Changes - Search:

Oktatás

* Programozás 1
  + feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

Teaching

* Programming 1 (BI)
  ◇ exercises
  ◇ quick link

* Scripting Languages
  ◇ exercises
  ◇ quick link

teaching assets


Félévek

* aktuális (2023/24/2)
* archívum


Linkek

* kalendárium
   - munkaszüneti napok '20
* tételsorok
* jegyzetek
* szakdolgozat / PhD
* ösztöndíjak
* certificates
* C lang.
* C++
* C#
* Clojure
* D lang.
* Java
* Nim
* Scala


[ edit | logout ]
[ sandbox | passwd ]

stringbuffer

#############################

The general concept is called stringbuffer. For this we will use the StringBuilder class.

scala> val b = new StringBuilder    // empty stringbuffer
b: StringBuilder =

scala> b += 'L'
res22: b.type = L

scala> b += "aci"
<console>:9: error: type mismatch;
 found   : String("aci")
 required: Char
              b += "aci"
                   ^

scala> b ++= "aci"                  // "aci" is a collection of chars, that's why ++= is needed
res24: b.type = Laci

scala> b.toString
res25: String = Laci
Cloud City

  

Blogjaim, hobbi projektjeim

* The Ubuntu Incident
* Python Adventures
* @GitHub
* heroku
* extra
* haladó Python
* YouTube listák


Debrecen | la France


[ edit ]

Edit - History - Print *** Report - Recent Changes - Search
Page last modified on 2015 March 14, 14:25