(Several of these git examples have been extracted from the book 'Pragmatic guide to GIT' of Travis Swicegood )
git config --global user.name "Fernando Guillen"
git config --global user.email "fguillen.mail+spam@gmail.com"
cd /develop/myrepo
| import java.util.Stack; | |
| public class CheckParanthesis { | |
| public static void main(String[] args) { | |
| System.out.println(isValidParanthesis("a(bcd)d")); | |
| System.out.println(isValidParanthesis("(kjds(hfkj)sdhf")); | |
| System.out.println(isValidParanthesis("(sfdsf)(fsfsf ")); | |
| System.out.println(isValidParanthesis("{[]}()")); |
| import java.util.ArrayDeque; | |
| import java.util.Deque; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| public class ChainOfNames { | |
| public static void main(String[] args) { | |
| String[] names = new String[] { "Raymond", "Nora", "Daniel", "Louie", "Peter", "Esteban" }; | |
| String chainOfNames = createChain(names); |
| import java.util.LinkedList; | |
| import java.util.List; | |
| public class GenerateValidParanthesisPermutations { | |
| private static final String OPEN = "("; | |
| private static final String CLOSE = ")"; | |
| public static void main(String[] args) { |
| import java.io.BufferedReader; | |
| import java.io.BufferedWriter; | |
| import java.io.FileNotFoundException; | |
| import java.io.FileOutputStream; | |
| import java.io.FileReader; | |
| import java.io.FileWriter; | |
| import java.io.IOException; | |
| import java.io.ObjectOutputStream; | |
| import java.util.Base64; |
| package com.example.collection; | |
| import java.util.HashMap; | |
| import java.util.Iterator; | |
| public class PrintableHashMap<K, V> extends HashMap<K, V> { | |
| private static final long serialVersionUID = 1L; | |
| public String toString(String format) { |
| var compare = function(userChoice, computerChoice) { | |
| if(userChoice == 'R') { | |
| if(computerChoice == 'S') { | |
| return 1; | |
| } | |
| else if(computerChoice == 'P') { | |
| return 2; | |
| } | |
| else { | |
| return 0; |