File tree Expand file tree Collapse file tree 5 files changed +81
-0
lines changed Expand file tree Collapse file tree 5 files changed +81
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <classpath >
3
+ <classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk-11.0.2" >
4
+ <attributes >
5
+ <attribute name =" module" value =" true" />
6
+ </attributes >
7
+ </classpathentry >
8
+ <classpathentry kind =" src" path =" src" />
9
+ <classpathentry kind =" output" path =" bin" />
10
+ </classpath >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <projectDescription >
3
+ <name >Input</name >
4
+ <comment ></comment >
5
+ <projects >
6
+ </projects >
7
+ <buildSpec >
8
+ <buildCommand >
9
+ <name >org.eclipse.jdt.core.javabuilder</name >
10
+ <arguments >
11
+ </arguments >
12
+ </buildCommand >
13
+ </buildSpec >
14
+ <natures >
15
+ <nature >org.eclipse.jdt.core.javanature</nature >
16
+ </natures >
17
+ </projectDescription >
Original file line number Diff line number Diff line change
1
+ eclipse.preferences.version =1
2
+ org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode =enabled
3
+ org.eclipse.jdt.core.compiler.codegen.targetPlatform =11
4
+ org.eclipse.jdt.core.compiler.codegen.unusedLocal =preserve
5
+ org.eclipse.jdt.core.compiler.compliance =11
6
+ org.eclipse.jdt.core.compiler.debug.lineNumber =generate
7
+ org.eclipse.jdt.core.compiler.debug.localVariable =generate
8
+ org.eclipse.jdt.core.compiler.debug.sourceFile =generate
9
+ org.eclipse.jdt.core.compiler.problem.assertIdentifier =error
10
+ org.eclipse.jdt.core.compiler.problem.enumIdentifier =error
11
+ org.eclipse.jdt.core.compiler.release =enabled
12
+ org.eclipse.jdt.core.compiler.source =11
Original file line number Diff line number Diff line change
1
+ package model ;
2
+
3
+ import java .util .Scanner ;
4
+
5
+ public abstract class Input {
6
+ private static Scanner read = new Scanner (System .in );
7
+
8
+ public static Integer Int (String menssage ) {
9
+ System .out .printf (menssage );
10
+ return Integer .parseInt (read .next ());
11
+ }
12
+
13
+ public static Long Long (String menssage ) {
14
+ System .out .printf (menssage );
15
+ return Long .parseLong (read .next ());
16
+ }
17
+
18
+ public static Character Char (String menssage ) {
19
+ System .out .printf (menssage );
20
+ return read .next ().charAt (0 );
21
+ }
22
+
23
+ public static String Str (String menssage ) {
24
+ System .out .printf (menssage );
25
+ return read .nextLine ();
26
+ }
27
+
28
+ public static Float Float (String menssage ) {
29
+ System .out .printf (menssage );
30
+ return Float .parseFloat (read .next ());
31
+ }
32
+
33
+ public static Double Double (String menssage ) {
34
+ System .out .printf (menssage );
35
+ return Double .parseDouble (read .next ());
36
+ }
37
+
38
+ public static Boolean Bool (String menssage ) {
39
+ System .out .printf (menssage );
40
+ return Boolean .parseBoolean (read .next ());
41
+ }
42
+ }
You can’t perform that action at this time.
0 commit comments