Questions tagged as 'scala'

1
answer

Differences between Java and Scala

What are the main differences between Java and Scala? Both have these similarities: Both are object-oriented Both compile to bytecode and run in the JVM Both have lambdas (Java 8)
asked by 11.12.2018 / 11:01
1
answer

Correct way to check Scala NULL in Java

First, I want to say that I am totally lay in Scala. I know almost nothing beyond the basics of language. Knowing this, let us doubt it. I'm in a project where there are libraries developed in Scala. These libraries were packaged in JAR's and...
asked by 15.07.2015 / 16:01
1
answer

Intellij 14 and Scala Plugin. Error finding default methods

I updated my Intellij IDEA to version 14 and now it is not recognizing any more methods within my Scala program. IDE does not even find the simplest of methods: println("Hello world") What to do?     
asked by 06.11.2014 / 02:14
0
answers

How to make atomic updates with TrieMap and ConcurrentHashMap?

In Java ConcurrentHashMap has an interesting property . Operations such as putIfAbsent , remove , replace , computeIfAbsent , computeIfPresent , compute , and merge are atomic. Example: fi...
asked by 28.03.2018 / 15:03
0
answers

How to add dependencies in build.sbt so that they are available in the modules?

I'm starting to use SBT for scala projects and would like to create a project like: APP ...Module1 ...Module2 ...Module3 ... build.sbt I would like to know how to make dependencies in build.sbt so that they are also used in modules....
asked by 31.07.2016 / 19:31
1
answer

What is the Substitution Model in Scala - Substitution Model

Substitution Model - Replacement Template What is the concept behind? How Does It Work? In what it affects the way we program in Scala     
asked by 08.06.2015 / 04:13
0
answers

Send local files to Google Cloud Storage in Scala

How do I upload a local file to Google Cloud Storage using the Scala language? This file needs to be publicly accessible for download. in English     
asked by 28.08.2014 / 05:17
1
answer

Error when running Scalatra test on Intellij

I'm trying to run the following test from the scalatra within the < a class Test extends ScalatraFlatSpec with Matchers { addServlet(classOf[MainServlet], "/*") "Home Page" should "show hello" in { get("/"){ status shoul...
asked by 14.03.2015 / 19:15
1
answer

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url

Hello, I'm trying to compile my project using sbt , but it causes an SSL error: ServeraccessError:sun.security.validator.ValidatorException:PKIXpathbuildingfailed:sun.security.provider.certpath.SunCertPathBuilderException:unabletofindval...
asked by 11.01.2018 / 18:44
1
answer

scala-plicking used in common classes

I'm trying to use scala-pickling because the site in github makes it look like a very simple tool to use . The fact is that I am not able to make the simple statement (REPL) work: scala> import scala.pickling._ import scala.pickling._ sc...
asked by 22.08.2015 / 15:27