This file contains 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
source ~/.zshrc |
This file contains 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
# alias definitions. add aliaes into ~/.bash_aliases file. | |
if [ -f ~/.bash_aliases ]; then | |
. ~/.bash_aliases | |
fi |
This file contains 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
source ~/.bash_aliases |
This file contains 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
# alias definitions | |
# MyGitHub Short Cuts | |
alias my-github='cd /Volumes/MyGitHub' | |
alias community-workspace='cd /Volumes/MyGitHub/community-workspace' | |
alias java-examples='cd /Volumes/MyGitHub/java-examples' | |
alias qr-code-generator-backend='cd /Volumes/MyGitHub/qr-code-generator-workspace/qr-code-generator-backend' | |
alias qr-code-generator-frontend='cd /Volumes/MyGitHub/qr-code-generator-workspace/qr-code-generator-web-frontend' | |
alias spring-boot-project='cd /Volumes/MyGitHub/spring-boot-project-example' |
This file contains 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
nano .bash_aliases |
This file contains 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
cd ~ |
This file contains 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 bridge.VehicleManager; | |
import impl.VehicleImpl; | |
import java.util.Scanner; | |
public class BridgeDesignPattern { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); |
This file contains 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
package bridge; | |
import service.Vehicle; | |
public class VehicleManager { | |
public Vehicle vehicle; | |
public int getAge() { | |
return this.vehicle.getAge(); |
This file contains 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
package impl; | |
import service.Vehicle; | |
import java.util.Calendar; | |
public class VehicleImpl implements Vehicle { | |
private int manufactureYear; | |
private String model; |
This file contains 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
package service; | |
public interface Vehicle { | |
int getAge(); | |
String getModel(); | |
} |
NewerOlder