This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ================= Basic Vim Settings ================= | |
set nocompatible " Disable vi compatibility | |
filetype plugin indent on " Enable filetype-specific plugins and indent | |
syntax on " Enable syntax highlighting | |
set number " Show absolute line numbers | |
set relativenumber " Show relative line numbers | |
set tabstop=4 " Number of spaces per tab | |
set shiftwidth=4 " Spaces to use for indentation | |
set expandtab " Convert tabs to spaces | |
set autoindent " Copy indent from previous line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class MatrixAdjoint { | |
public static int det(int[] ar){ | |
return (ar[0]*ar[3] - ar[1]*ar[2]); | |
} | |
public static boolean isOddOrEven(int num){ | |
return num % 2 == 0; |