From 2f1fac5c59ec5c9f23142c2d0d19a5bd6e0797a9 Mon Sep 17 00:00:00 2001 From: AntonioFrische Date: Mon, 19 Sep 2022 18:28:51 +0200 Subject: [PATCH] HolaFIchero empezar --- .classpath | 10 +++++++++ .project | 17 +++++++++++++++ .settings/org.eclipse.core.resources.prefs | 2 ++ .settings/org.eclipse.jdt.core.prefs | 14 ++++++++++++ bin/dam/daw/com/es/HolaFichero.class | Bin 0 -> 807 bytes bin/module-info.class | Bin 0 -> 150 bytes src/dam/daw/com/es/HolaFichero.java | 24 +++++++++++++++++++++ src/module-info.java | 2 ++ 8 files changed, 69 insertions(+) create mode 100644 .classpath create mode 100644 .project create mode 100644 .settings/org.eclipse.core.resources.prefs create mode 100644 .settings/org.eclipse.jdt.core.prefs create mode 100644 bin/dam/daw/com/es/HolaFichero.class create mode 100644 bin/module-info.class create mode 100644 src/dam/daw/com/es/HolaFichero.java create mode 100644 src/module-info.java diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..489103f --- /dev/null +++ b/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..0765732 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + HolaFichero + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..4824b80 --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..d6b935f --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,14 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=18 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=18 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=18 diff --git a/bin/dam/daw/com/es/HolaFichero.class b/bin/dam/daw/com/es/HolaFichero.class new file mode 100644 index 0000000000000000000000000000000000000000..8b48b118bc557d4f5f47959a1eb158dd0573482a GIT binary patch literal 807 zcmZ`%%Wl(95Ir|>;>Jyho6tZ*2rZA2w5a|7mr5v71(GR9LFt0kjdPW_jqS>ILFH@M zv0=joDi(YI{{-S(H>gxCo0&V~IcLty_~-BMKLG6FiHU+hYb--&EZ;kR96Bm>p2st} z7x+_^#3l>@`%u1<&P+xV=hf&?`I$g@Cy0V8c*_hMhphB66sJWm?gG)M*7-v1T2WDjK!2{gNJy$dCSED55C+Z$RCSgxXu zhQMNanr15OPnCa^YwHs&lL>n?t^o^}X^{4(G7%8{1*|d=r`wSXIm{j0HPOB_{UB$r zqJw+vHBs5?BtBM2b}F#Zy++&Bl!bLXFmeAfZ9YmB5Aleb^(p5WS8Q}&^eDd^&js?a zPhonKSGFLqG{~fX^im$rH){>zlf+khf!@9S&qcR2m@2p){sN#C`ed{wBZpqlmo~p) z;R_!HShV`Hwu`jY^8)%MMityZjTsGoN?)Kaox$F@09$#o0)uc(&^#}~O{_372x{UM zt)*``r~1GeP1Uj2-1_Y^w7jk2SFG6wA5pOn+)pUmp4R=czzS>1!gvxDPZdl(BGWj literal 0 HcmV?d00001 diff --git a/bin/module-info.class b/bin/module-info.class new file mode 100644 index 0000000000000000000000000000000000000000..82e6e61907e34e587a1423df1ed09a4953e5ba87 GIT binary patch literal 150 zcmX^0Z`VEs1_nC@E_MbcMh5QO{FKt1RNc(Hw0uSeuHgLAqU2P!%$!t41_2}~y{yEt zL`DWSU$AOn26muMkNliOx6I^>)S`T022Mr>PLLYCq{QOX1_lO3pdApv#J~(>Ffp(& TumWi@1~#xTBLhbRm;oUGdITNU literal 0 HcmV?d00001 diff --git a/src/dam/daw/com/es/HolaFichero.java b/src/dam/daw/com/es/HolaFichero.java new file mode 100644 index 0000000..04e3d88 --- /dev/null +++ b/src/dam/daw/com/es/HolaFichero.java @@ -0,0 +1,24 @@ +package dam.daw.com.es; + +import java.io.File; +import java.io.IOException; + +public class HolaFichero { + + public static void main(String args[]) { + char sisChar = systemCheck(); + + } + + + private static char systemCheck() { + char osChar= ' '; + String osName = System.getProperty("os.name"); + if(osName.charAt(0)=='W') { + osChar = 'W'; + }else { + osChar = 'L'; + } + return osChar; + } +} diff --git a/src/module-info.java b/src/module-info.java new file mode 100644 index 0000000..a02671b --- /dev/null +++ b/src/module-info.java @@ -0,0 +1,2 @@ +module HolaFichero { +} \ No newline at end of file