Talk:Non-transitive dice: Difference between revisions

→‎java Error message: More comments.
(→‎java Error message: new section)
(→‎java Error message: More comments.)
 
(5 intermediate revisions by 2 users not shown)
Line 15:
:::<pre>Out[45]: CacheInfo(hits=2148761, misses=1190, maxsize=None, currsize=1190)</pre>
::: --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 10:11, 8 September 2020 (UTC)
 
 
===Allow for excluded rotations?===
Line 37 ⟶ 38:
location: interface List
--Walter Pachl 07:04, 11 March 2022 (UTC)
 
:The List.of method was introduced in Java 9 so I suspect you're using an earlier version.
 
:As a possible workaround try replacing that line with:
 
::res.add(Arrays.asList(cs.get(i), cs.get(j), kl));
 
:and adding this import:
 
::import java.util.Arrays;
 
:--[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 08:48, 11 March 2022 (UTC)
 
::Thanks. The change worked. BUT I installed Java 9 and I still see
::D:\>javac -version
::javac 1.8.0_144
::and
::java -version
::java version "9.0.4"
::Java(TM) SE Runtime Environment (build 9.0.4+11)
::Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
::Where do I get javac 9? --Walter Pachl 09:23, 11 March 2022 (UTC)
 
::: Hmm, it looks like your compiler version is out of step with the rest of the JDK. Assuming you're using the Oracle version (rather than Open JDK), I don't think you can still get version 9 but you can get [https://www.oracle.com/uk/java/technologies/javase/jdk11-archive-downloads.html Version 11] if you don't want to move up to the latest [https://www.oracle.com/java/technologies/downloads/ Version 17].--[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 09:43, 11 March 2022 (UTC)
 
::::D:\>java -version
::::java version "17.0.2" 2022-01-18 LTS
::::Java(TM) SE Runtime Environment (build 17.0.2+8-LTS-86)
::::Java HotSpot(TM) 64-Bit Server VM (build 17.0.2+8-LTS-86, mixed mode, sharing)
::::D:\>javac -version
::::javac 17.0.2
::::So it's way beyond 9 now :-) But in sync and the compile works --Walter Pachl 10:44, 11 March 2022 (UTC)
 
:::::Yeah, since they started with the 6 monthly releases, the version numbers have really shot up. I believe Java 18 will be available later this month but you should be OK for a good while with 17 which is a 'long term support' version. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 10:57, 11 March 2022 (UTC)
9,482

edits