---
title: "Discussion on \"30 Days of Java | Day 3\" | Hashnode"
description: "Discussion on \"30 Days of Java | Day 3\". One-line if statements\nIf the if statement only has one statement you do not need braces, although it can be good to put them anyways. \nint score = 250;\n\nif (score > 100 && score <300) System.out.println(\"You got it!\");\nVariables in code blocs are no..."
url: "https://hashnode.com/posts/30-days-of-java-day-3/6360e31a3104ca23c1e1695a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [30 Days of Java | Day 3](https://30daysofjava.hashnode.dev/30-days-of-java-day-3?utm_source=hashnode&utm_medium=feed)

One-line if statements If the if statement only has one statement you do not need braces, although it can be good to put them anyways. int score = 250; if (score > 100 && score <300) System.out.println("You got it!"); Variables in code blocs are no...

Nov 1, 2022 · 2 min read · 30daysofjava.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#30daysofjava](https://hashnode.com/tag/30daysofjava)

## Written by

[Vahid](https://hashnode.com/@vidi)

@vidi

  
[View profile](https://hashnode.com/@vidi)

Python & Stuff

Linguist interested in data and programming

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
