Skip to content

Instantly share code, notes, and snippets.

View yubrajpokharel's full-sized avatar
🎯
Focusing on something awesome

Yubraj Pokharel yubrajpokharel

🎯
Focusing on something awesome
View GitHub Profile
@yubrajpokharel
yubrajpokharel / Chitru_.idea_Chitru.iml
Created July 23, 2016 16:47
Stop watch with JavaScript
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
@yubrajpokharel
yubrajpokharel / Main.java
Last active January 16, 2023 21:04
Basic java Program structure
// Import statements (if any)
import java.util.Scanner;
// Class definition
public class Main {
// Main method
public static void main(String[] args) {
// Variable declaration and initialization
int number = 0;
if (age >= 18) {
System.out.println("You are an adult.");
}
if (age < 18) {
System.out.println("You are a minor.");
} else if (age >= 18 && age < 65) {
System.out.println("You are an adult.");
} else {
System.out.println("You are a senior citizen.");
}