QuietShark.com
  • Tech Bites
Home » Posts » Java tip method reference
Java Tip: Method Reference

Java Tip: Method Reference

  • Nov 23, 2022
  • Java

Instead of

for(String name: names) {
	System.out.println(name);
}

Do

// This is called a method reference
names.foreach(System.out::println);

About

Skip - Creator of QuietShark.com

Skip - Creator of QuietShark.com

Welcome! QuietShark.com …

Know More

Category

  • #ai (1)
  • #aws (1)
  • #back end development (1)
  • #batch processing (9)
  • #cloud storage (1)
  • #command line (2)
  • #database (2)
  • #databases (1)
  • #devops (2)
  • #front end development (4)
  • #git (4)
  • #hatch (2)
  • #java (5)
  • #javascript (1)
  • #jpa (1)
  • #kubernetes (6)
  • #programming (5)
  • #python (3)
  • #security (2)
  • #spring (2)
  • #tooling (1)

Recommended

  • SQLAlchemy vs Hibernate: A Deep Dive into Python and Java ORMs

    SQLAlchemy vs Hibernate: A Deep Dive into Python and Java ORMs

  • Comparing Persistent Data Sources on AWS: Choosing the Right Storage Solution

    Comparing Persistent Data Sources on AWS: Choosing the Right Storage Solution

  • Write Unit Tests First and Use AI to Generate Code That Passes Them

    Write Unit Tests First and Use AI to Generate Code That Passes Them

  • Walrus Operator

    Walrus Operator

  • Managing Hatch Dependencies in VS Code

    Managing Hatch Dependencies in VS Code

QuietShark.com
  • Home
  • About
Copyright by your company | Theme by GetHugoThemes