Twise Random

A site about computer science .
Skip to content
  • apple
  • android
  • c
  • cpp
  • data structure and algorithms
  • macos
  • python
  • tutorials

Category: java

How to copy a directory recursively , or a file , in java , or android ?

Posted on February 13, 2021February 24, 2021 by mohamad wael

 

One way of recursively copying a directory , or copying a file , is by using the java .nio api . This also works , with android version 8 , or higher .

import static java .lang .System .out;

… Read More
java

Recursive directory traversal in java or android ?

Posted on February 13, 2021February 24, 2021 by mohamad wael

 
One way of traversing , a directory content recursively , is to use , the new java .nio api , which provides some functions , related to that . This api , also works on android version 8 , … Read More

java filesystem, java
2

How to solve package org.apache.http does not exist ?

Posted on January 15, 2021January 15, 2021 by mohamad wael

 
When compiling a java file you might face an error of :

error: package org.apache.http does not exist

Just download the Apache HttpComponents , and select the appropriate version . For example the HttpClient 5.0.3 version , or the … Read More

java tutorial

Shift operators in java , a tutorial

Posted on October 1, 2019October 29, 2020 by mohamad wael

A shift operator will shift the bits by a number of positions . In java we have three shift operators , they are

  • The right shift signed operator , which shift the bits to the right , while keeping the
… Read More
operators java, shit operators