Nancy Den has Published 290 Articles

Get Array Dimensions in Java

Nancy Den

Nancy Den

Updated on 29-Jun-2020 06:41:04

2K+ Views

In order to get Array Dimensions in Java, we use the getClass(), isArray() and getComponentType() methods with decision making in combination with iterative statements.The getClass() method method returns the runtime class of an object. The getClass() method is a part of the java.lang.Object class.Declaration − The java.lang.Object.getClass() method is declared ... Read More

How to save ArrayList to SharedPreferences on Android?

Nancy Den

Nancy Den

Updated on 27-Jun-2020 13:43:48

4K+ Views

Before getting into shared preference to store arraylist example , we should know what is shared preferences in android. Using share preference, we can store or retrieve values as key and value pair. There are five different methods are available in share preference as shown below −Edit() − It going ... Read More

How to parse JSON object in iPhone/iOS?

Nancy Den

Nancy Den

Updated on 27-Jun-2020 13:29:49

545 Views

JSON stands for Javascript object notation. Most of the when dealing with APIs or any other services the data is returned in JSON format and we need to convert it to usable and supporte language formats.Foundation framework of iOS provides a class JSONSerialization to convert JSON into supported formats like ... Read More

What is Xcode error “Could not find Developer Disk Image”?

Nancy Den

Nancy Den

Updated on 27-Jun-2020 13:25:20

843 Views

The Xcode error occurs when the xcode version and ios versions don’t match. Usually it happens when the Xcode version is less than the device iOS version. i.e. the Xcode is too old for the device. This is a compatibility issue which can be resolved by performing some steps.Always check ... Read More

How to create a Border, Border radius, and shadow to a UIView in iPhone/iOS?

Nancy Den

Nancy Den

Updated on 27-Jun-2020 13:19:37

547 Views

In this article we’ll learn how to create borders and shadows. We’ll do it in two ways, one by directly coding and one by making it designable and an extension of UIView, which can be edited directly in the storyboard.Let’s see how to play around with borders in ios −Method ... Read More

Character - Oriented Framing and Bit - Oriented Framing

Nancy Den

Nancy Den

Updated on 27-Jun-2020 13:15:01

12K+ Views

Framing is a Data Link layer function whereby the packets from the Network Layer are encapsulated into frames. The data frames can be of fixed length or variable length. In variable - length framing, the size of each frame to be transmitted may be different. So, a pattern of bits ... Read More

Can we override a private or static method in Java

Nancy Den

Nancy Den

Updated on 27-Jun-2020 12:48:55

9K+ Views

No, we cannot override private or static methods in Java.Private methods in Java are not visible to any other class which limits their scope to the class in which they are declared.ExampleLet us see what happens when we try to override a private method − Live Democlass Parent {    private ... Read More

Error Correcting Codes - Binary Convolutional Code

Nancy Den

Nancy Den

Updated on 27-Jun-2020 12:44:02

13K+ Views

Errors and Error Correcting CodesErrors occurs when bits get corrupted while transmission over the computer network, due to interference and network problems.Error-correcting codes (ECC) are a sequence of numbers generated by specific algorithms for detecting and removing errors in data that has been transmitted over noisy channels. Error correcting codes ... Read More

Hard and Soft Decision Decoding

Nancy Den

Nancy Den

Updated on 27-Jun-2020 12:32:23

10K+ Views

A challenging task in error correction is decoding the codewords that have been received via noisy channels. Before data is transmitted, the sender adds redundant bits or parity bits to the message forming codewords. The codewords are then transmitted via computer networks. The receiver checks the incoming codewords and performs ... Read More

Java 8 Stream Terminal Operations

Nancy Den

Nancy Den

Updated on 26-Jun-2020 15:38:20

9K+ Views

Streams in Java have a few terminal operations. They are as follows −collect − The collect method returns the outcome of the intermediate operationsList id = Arrays.asList(“Classes", "Methods", "Members"); List output = id.stream().filter(s -> s.startsWith("M")).collect(Collectors.toList());reduce − The reduce method is reduces the elements of a stream into a single element ... Read More

Advertisements