Skip to content

Instantly share code, notes, and snippets.

View Loule95450's full-sized avatar
🇺🇦
In CodingFactory

Loule | Louis Loule95450

🇺🇦
In CodingFactory
View GitHub Profile
@Loule95450
Loule95450 / Manifest.txt
Last active December 4, 2022 04:47
How to compile a .java file to .jar
Manifest-Version: 1.0
Class-Path: .
Main-Class: com.company.{.java name file}
@Loule95450
Loule95450 / MultidimensionalArrays.java
Last active September 28, 2021 16:42
Multidimensional Arrays in Java
package me.loule; //Change this
public class MultidimensionalArrays {
public static void main(String args[]) {
// Clear Console
System.out.print("\033[H\033[2J");
int[][] ArrayName = { { 1, 2 }, { 3, 4 }, { 5, 6 } };
System.out.println(ArrayName[2][1]); // Return 4
@Loule95450
Loule95450 / Scanner.java
Last active September 28, 2021 16:36
Prompt in Java with Scanner
package me.loule; //Change this
// import Scanner
import java.util.Scanner;
public class Scanner {
public static void main(String[] args) {
// Clear Console
System.out.print("\033[H\033[2J");