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 java.util.HashMap; | |
import java.util.Scanner; | |
public class HashMapLogin | |
{ | |
public static void main(String[] args) | |
{ | |
//Instantiating HashMap class with <Key,Value> pair both represented in String | |
HashMap<String,String> creds=new HashMap(); |
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 java.net.*; | |
import java.io.*; | |
public class IPAddressDemo | |
{ | |
public static void main(String[] args) throws IOException | |
{ | |
System.out.println("Type the IP Address: "); | |
BufferedReader readIP=new BufferedReader(new InputStreamReader(System.in)); | |
String ipaddress=readIP.readLine(); | |
try{ |
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 java.net.*; | |
import java.io.*; | |
public class HostNameDemo | |
{ | |
public static void main(String[] args) throws IOException | |
{ | |
System.out.println("Type the Host Name: "); | |
BufferedReader readName=new BufferedReader(new InputStreamReader(System.in)); | |
String hostName=readName.readLine(); | |
try{ |
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
/* Client Program */ | |
import java.io.*; | |
import java.net.*; | |
public class TCPClient | |
{ | |
public static void main(String[] args) throws Exception{ | |
String clientData,processedData; | |
while(true) | |
{ | |
/* Creating Socket for the Client */ |
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
/* Server Program */ | |
import java.io.*; | |
import java.net.*; | |
public class TCPServer | |
{ | |
public static void main(String []args) throws Exception | |
{ | |
String clientData, processedData; | |
/* Creating a Server Socket for Server */ |
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 java.awt.*; | |
import java.awt.event.*; | |
import javax.swing.*; | |
class MulticastDemo implements ActionListener | |
{ | |
JFrame frame; | |
static int count=0; | |
JButton newWindow; | |
JButton closeAll; | |
public static void main(String[] args) |
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
version: "3.8" | |
services: | |
db: | |
pma: | |
web: |
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
version: "3.8" | |
services: | |
db: | |
image: mysql:5.7 | |
container_name: mysql | |
restart: always | |
volumes: | |
- ./mysql-dump:/var/lib/mysql | |
- ./mysql-init:/docker-entrypoint-initdb.d | |
environment: |
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
-- phpMyAdmin SQL Dump | |
-- version 4.7.9 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Host: 127.0.0.1:3306 | |
-- Generation Time: Nov 06, 2020 at 10:03 AM | |
-- Server version: 5.7.21 | |
-- PHP Version: 5.6.35 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
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
pma: | |
depends_on: | |
- db | |
image: phpmyadmin/phpmyadmin | |
container_name: pma | |
restart: always | |
environment: | |
PMA_HOST: db | |
PMA_PORT: 3306 | |
ports: |
OlderNewer