Day 1 Java with DSA

Palak SharmaPalak Sharma
1 min read

Hi everyone! ๐Ÿ‘‹

Welcome to CodeOps Blog โ€“ where Iโ€™m learning Java with DSA and sharing my journey publicly for consistency, growth, and a little bit of fun ๐Ÿ˜„


๐Ÿ”ง What I did today:

  • Installed Java JDK and set up VS Code

  • Fixed input issue in VS Code terminal (yes, those things happen!)

  • Wrote my first Hello World program ๐ŸŽ‰

  • Learned Java basics:

    • Variables & Constants

    • Data types: int, float, char, boolean, String

    • Input/Output using Scanner


๐Ÿ’ก Code Snippet โ€“ Taking User Input in Java:

import java.util.Scanner;

public class InputExample {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("Enter your name: ");
        String name = sc.nextLine();
        System.out.println("Hello, " + name + "!");
    }
}
0
Subscribe to my newsletter

Read articles from Palak Sharma directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Palak Sharma
Palak Sharma

Hi, Iโ€™m Palak Sharma, a B.Tech CSE student exploring the world of software development. Currently diving into Java with DSA and sharing my journey online to stay consistent, learn better, and connect with like-minded folks! I love frontend development, and Iโ€™m curious about how things work behind the scenes.