Skip to content

Instantly share code, notes, and snippets.

@Aldhanekaa
Last active November 5, 2020 21:44
Show Gist options
  • Save Aldhanekaa/f44a26e30abd632d7c136021831ca403 to your computer and use it in GitHub Desktop.
Save Aldhanekaa/f44a26e30abd632d7c136021831ca403 to your computer and use it in GitHub Desktop.
Java Library

Library Date : Link

Doc : Link


Scanner :

import java.util.Scanner;

public class Task {
  public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        
        System.out.println("Insert Any Integer");
        
        int x = scanner.nextInt();
        
        int result = x ** 2;
        System.out.println("result :" + result);
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment