mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +00:00
[java/en] Fix mix usage of spaces and tabs as indents (#5024)
This commit is contained in:
parent
6acd121c96
commit
810ab009d5
@ -126,8 +126,8 @@ public class LearnJava {
|
||||
// <name1> = <name2> = <name3> = <val>
|
||||
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,7 +310,7 @@ 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
|
||||
@ -926,7 +926,7 @@ import java.security.SecureRandom;
|
||||
public class Lambdas {
|
||||
public static void main(String[] args) {
|
||||
// Lambda declaration syntax:
|
||||
// <zero or more parameters> -> <expression body or statement block>
|
||||
// <zero or more parameters> -> <expression body or statement block>
|
||||
|
||||
// We will use this hashmap in our examples below.
|
||||
Map<String, String> planets = new HashMap<>();
|
||||
|
Loading…
Reference in New Issue
Block a user