π―
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
package com.bazlur; | |
//type | |
public class Calculator { | |
// int 4 Byte | |
// float 4 byte 4.5 | |
// double 8 byte | |
// long 8 byte |
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
package com.bazlur; | |
import java.util.Scanner; | |
public class Main { | |
// | |
// function is called method | |
public static void main(String[] args) { | |
Calculator calculator = new Calculator(); |
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
public static boolean isOnline(Context context) { | |
ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); | |
if (connectivityManager != null) { | |
NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo(); | |
return activeNetworkInfo != null && activeNetworkInfo.isConnected() && isInternetAvailable(); | |
} | |
return false; | |
} |
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
package com.bazlur.ds.thread.diningphiloshoper; | |
/** | |
* @author Bazlur Rahman Rokon | |
* @since 11/14/17. | |
*/ | |
public class Chopstick { | |
} |
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
package thread; | |
import java.io.*; | |
import java.net.URL; | |
import java.net.URLConnection; | |
import java.nio.file.Files; | |
import java.nio.file.StandardCopyOption; | |
class DownloadingHeartBeat extends Thread { | |
private volatile boolean beating = true; |
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
package com.bazlur; | |
import java.util.EnumSet; | |
import java.util.Set; | |
import java.util.List; | |
import java.util.function.BiFunction; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
public class Card { |
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
package com.bazlur; | |
import java.util.EnumSet; | |
import java.util.Set; | |
import java.util.List; | |
import java.util.function.BiFunction; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
public class Card { |
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
package com.bazlur.ds; | |
/** | |
* @author Bazlur Rahman Rokon | |
* @since 7/12/17. | |
*/ | |
public class Pair<T, U> { | |
private final T x; | |
private final U y; |
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
package oop.filesystem; | |
import java.util.Set; | |
import java.util.TreeSet; | |
/** | |
* @author Bazlur Rahman Rokon | |
* @since 3/31/17. | |
*/ | |
public class Directory extends Node { |
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
package oop; | |
import java.util.ArrayList; | |
/** | |
* @author Bazlur Rahman Rokon | |
* @since 3/31/17. | |
*/ | |
public class Directory extends Entry { | |
protected ArrayList<Entry> contents; |