32,199 Topics

Member Avatar for
Member Avatar for makmuhefe

Hello, I need to convert C codes to Java codes.this promram calculates surface areas of a 3D geometry which is read from datas from text file.thanks for help. text file: [CODE=text]12 0 0 0 0 0 1 4 0 1 4 0 3 5 0 3 5 0 0 0 …

Member Avatar for K3haled
0
9K
Member Avatar for hweyeongimnida

The code is here: https://medium.com/swlh/balancing-chemical-equations-with-python-837518c9075b

Member Avatar for rproffitt
0
47
Member Avatar for vlada105

Hello. Can anyone please answer and explain the question from the image here. Thank you! ![1.jpg](https://static.daniweb.com/attachments/4/027f0fd6d0da02fcf59872957d6e08f4.jpg)

-1
37
Member Avatar for dimitrilc

## Introduction ## If you are a Java developer coming to Kotlin, you might have wondered how to use a language construct that is similar to the try-with-resource statement in Java to automatically close Autocloseable/Closeable resources for you. Luckily, Kotlin provides the inline extension function `use()` that provides similar functionality …

2
336
Member Avatar for dimitrilc

## Introduction ## In Java, a common way to express a type that is a combination of two or more types is to just create an interface that extends the other types. The problem with this approach is that your code might be littered with interface declarations, polluting your code …

2
175
Member Avatar for dimitrilc

## Introduction ## In this tutorial, we will look at the RxJava `mergeWith()` and `concatWith()` operators. Amongst others, they are used to combine Observables together. All of the RxJava operators have ambiguous names, and behave differently, so let us take a look at 2 operators, `mergeWith()` and `concatWith()`, to see …

3
981
Member Avatar for dimitrilc

## Introduction ## RxJava 3 includes 5 core classes: 1. Flowable, 2. Observable, 3. Single, 4. Completable, 5. Maybe. This tutorial aims to teach the basic concepts behind Observable, which serves as a foundation for understanding the other 4 classes. ## Goals ## At the end of the tutorial, you …

3
1K
Member Avatar for Official_2

A shop owner has 2 outlets namely a High Street Branch and Mall Branch, before Covid19 lockdown the respective shops recorded sales as follows: High Street Branch Quarter Sales Q1 42,000 48,000 50,000 Q2 52,000 58,000 60,000 Q3 46,000 49,000 58,000 Q4 50,000 51,000 61,000 Mall Branch Quarter Sales Q1 …

Member Avatar for wwwalker
0
316
Member Avatar for arvind_m

I am a Data Science Enthusiast, Currently Exploring Different Types of Programming Languages.

Member Avatar for Reverend Jim
0
26
Member Avatar for singhdevendra8

how can we use math .pi without using impot java.lang.Math*; PROGRAMING LANG:- JAVA

Member Avatar for Mule_1
0
221
Member Avatar for dimitrilc

## Introduction ## The `java.nio.file.Files` class includes many convenient methods to read file attributes, but sometimes these convenient methods just are not enough to meet our needs. In this tutorial, we will go over 5 ways to use the `Files` class to read file attributes so you can choose the …

3
261
Member Avatar for arvind_m

I was recently started to learn Java (3 months back started), It's going well, learned a lot. I am reffering this [website](https://www.scaler.com/topics/stack-class-in-java/) to undersatand about **Java Stack Class**. Can someone tell me which method is best to implement stack class? Happy Coding!

Member Avatar for rproffitt
0
33
Member Avatar for dimitrilc

## Introduction ## When working with an application with a global user base, there is usually a need to display text, numbers, currency, date, and time in multiple localized formats. For example, the **en-US** (*English-USA*) version of the date September 22, 2021 is written as 22 сентября 2021 г. when …

3
201
Member Avatar for dimitrilc

## Introduction ## Although not included in the headlines, the release of JDK 17 also added 3 sets of new methods to the class `java.lang.Process`: 1. `inputReader()` to read from stdout. 2. `inputWriter()` to write to stdin. 3. `errorReader()` to read from stderr. In this tutorial, we are going to …

3
1K
Member Avatar for Mausam_1
Member Avatar for MagnusTheRed90

I need an end user license agreement for code shared amongst my home projects with other developers. The EULA needs to include a "pay to the order of x" clause, and also needs to include the ability for me to utilze the code at multiple companies that I could participate …

Member Avatar for Dani
1
52
Member Avatar for dimitrilc

## Introduction ## In Java 8, `@Repeatable` was introduced and this is the recommended way to create repeating annotations. We still have to create a holder Annotation(*annotation that holds an array of other annotations*), but we no longer have to declare the holder Annotation at the callsite. This tutorial aims …

3
282
Member Avatar for Wis_874

import requests endPoint = 'https://api.mnotify.com/api/template' apiKey = 'YOUR_API_KEY' url = endPoint + '?key=' + apiKey response = requests.get(url) data = response.json();

Member Avatar for rproffitt
0
28
Member Avatar for 変態

I'm having trouble in my assignment Assignment :: TwoLargestElements Complete the following program so that it computes and writes out the two largest elements in the array. It always display "12" on both largest and largest2 import java.io.* ; public class TwoLargest { public static void main ( String[] args …

Member Avatar for rproffitt
0
38
Member Avatar for dimitrilc

## Introduction ## Java 15 introduced Text Blocks. The main reason behind Text Blocks is that programmers can write multiline strings without having to specify escapes for the most common scenarios. ## Goals ## At the end of this tutorial, you would have learned: 1. How to store multiline String …

Member Avatar for JamesCherrill
2
152
Member Avatar for dimitrilc

## Introduction ## Before Java 8, methods had to throw an exception or return `null`, with neither of which approaches were perfect. Optional, OptionalInt, OptionalLong, and OptionalDouble were introduced in Java 8 to represent values that might possibly be `null`. Optionals have two internal states, **empty** or **present**. An Optional …

Member Avatar for JamesCherrill
2
2K
Member Avatar for Wis_874
Member Avatar for Sagar_9

Hi All, Good Day. Is there any sample code in JAVA for generating encrypted block PIN in the similar fashion as the Hardware Security Module Regards, Sagar

Member Avatar for Sagar_9
0
103
Member Avatar for redZERO

Hi guys I can't seem to get a new line in a [CODE]JOptionPane.showMessageDialog(null, " ");[/CODE] statement. I try the /n command, but it still doesn't seem to work. Is there any way I can get a paragraph in a dialog box like this? Thanks.

Member Avatar for Samukelo
0
19K
Member Avatar for Khen Louegie

I'm supposed to make a menu with choices, the choices being different kinds of java syntax. import java.util.*; public class Start { public void menu() { System.out.println("[1] If\n[2] If else\n[3] For loop\n[4] Switch Statement\n[5] One dimension"); System.out.print("Select program: "); } public void backend() { System.out.println("[9] Menu\n[0] Quit"); Scanner q = …

Member Avatar for JamesCherrill
0
249
Member Avatar for dimitrilc

## Introduction ## There are many ways to design secure Java objects. In this tutorial, we are going to learn how to create secure Java objects by understanding **Accessibility**, **Extensibility**, and **Immutability**. ## Goals ## At the end of this tutorial, you would have learned: 1. Understand how and why …

Member Avatar for JamesCherrill
2
159
Member Avatar for Sagar_9

Hi Everyone, Is there a java code to convert SWIFT MT103 message to pacs 008 ISO20022 format? Thank you. Regards, Sagar

Member Avatar for Sagar_9
0
518
Member Avatar for dimitrilc

## Introduction ## In this tutorial, we will focus on how to manage IO permissions to read, write, and delete local files using the `SecurityManager` class. ## Goals ## At the end of this tutorial, you would have learned: 1. What policy files are and how to use them. 2. …

2
306
Member Avatar for Zirely

Hello, I need help to make this code to run please. this is just a part of the code. I have the imports below, but hsa.Console is not imported, I have tried to download de jar files for it but cannot find it. Is there a way I could make …

Member Avatar for rproffitt
0
167
Member Avatar for brodeur

// The "FriedmanRPSgame" class. import java.awt.*; import hsa.Console; public class FriedmanRPSgame { static Console c; // The output console public static void main (String[] args) { c = new Console (); // VARIABLES int rock; int paper; int scissors; // INPUT c.println (" Choose 1 for rock, 2 for paper, …

Member Avatar for Zirely
0
240

The End.