/
Write
Start a team blog
NEW ✨
Start a team blog, invite your team, and start publishing.
My FeedExploreDraftsBookmarksHackathons
Team BlogsNEW
AboutCareersOfficial Blog
Download App
Logos & Media

Trending tags
See all

© 2023 Hashnode

snippets

#snippets

Write An Article
5 Followers·109 Articles
HotNew
RAJAI TARUN
rajaitarun.hashnode.dev·Jan 19, 2023

Java snippet to add two numbers given by user

import java.util.Scanner; public class SumOfTwoNumber { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Enter number 1"); int num1 = scan.nextInt(); S…

Javasnippets+1
Introducing Snippet Wizard
1
Julien Delange
Julien Delangefor
Codiga
Codiga