From 810ab009d5ba85fdd604094d3f282217f215cad8 Mon Sep 17 00:00:00 2001 From: AN Long Date: Thu, 15 Aug 2024 02:01:34 +0800 Subject: [PATCH] [java/en] Fix mix usage of spaces and tabs as indents (#5024) --- java.html.markdown | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/java.html.markdown b/java.html.markdown index 20156365..fc7383d8 100644 --- a/java.html.markdown +++ b/java.html.markdown @@ -126,8 +126,8 @@ public class LearnJava { // = = = int barInt1, barInt2, barInt3; barInt1 = barInt2 = barInt3 = 1; - // Shorthand for multiple declarations - int barInt4 = 1, barInt5 = 2; + // Shorthand for multiple declarations + int barInt4 = 1, barInt5 = 2; /* @@ -310,8 +310,8 @@ public class LearnJava { /////////////////////////////////////// System.out.println("\n->Operators"); - int i1 = 1, i2 = 2; - + int i1 = 1, i2 = 2; + // Arithmetic is straightforward System.out.println("1+2 = " + (i1 + i2)); // => 3 System.out.println("2-1 = " + (i2 - i1)); // => 1 @@ -543,7 +543,7 @@ public class LearnJava { // is called when the anonymous inner class is created. // This does not only work for Collections, it works for all // non-final classes. - + // Another option was to initialize the Collection from an array, // using Arrays.asList() method: @@ -926,7 +926,7 @@ import java.security.SecureRandom; public class Lambdas { public static void main(String[] args) { // Lambda declaration syntax: - // -> + // -> // We will use this hashmap in our examples below. Map planets = new HashMap<>();