842 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for Kurosaki

Hi. I'm new to java programming and I need help with this assignment. [quote]Giving change. Implement a program that directs a cashier how to give change. The program has two inputs: the amount due and the amount received from the customer. Compute the difference, and compute the dollars, quarters, dimes, …

Software Development java
Member Avatar for JamesCherrill
0
7K
Member Avatar for AbstractEden

I've been having a tough time trying to figure this one out. Wrote a couple of notes on my phone and ended up with this as a result: import java.io.*; import java.util.Scanner; public class Assignment1 { //Returning if a character is a vowel or not. public static boolean isVowel(char c) …

Software Development java
Member Avatar for alex205
0
3K
Member Avatar for mcoliver88

Hi All I am creating a Visual Basic program for a Movie datbase, but i want to be able to play a youtube video Via the media player option. I would like the user to paste the link in from youtube into a text box, and click play and the …

Software Development visual-basic
Member Avatar for David_234
0
2K
Member Avatar for b1izzard

Hi friends, I am a newbie to Assembly Language programming, I don't know whats the equivalent Assembly code for NASM compiler and moreover is there any compiler available for ubuntu so that I can run my TASM code as it is? Here is my simple code that works fine in …

Software Development assembly
Member Avatar for deva_2
0
1K
Member Avatar for Srinivas0

[CODE]#include <iostream> using namespace std; int main() { int a,b,c, ope; cout<<"enter a value" << endl; cin >> a; cout<<"enter b value" <<endl; cin >> b; cout<<"enter operation (+ - * / and %)"; cin>> ope; if (ope == +) { c=a+b; cout<< c; break; } if (ope == -) …

Software Development c++
Member Avatar for Hamza_53
2
46K
Member Avatar for dimitrilc

## Introduction ## Junit is a popular framework to create tests for Java applications. Although individual unit tests are mostly straightforward, integration and functional tests are a little bit more involved because they usually require multiple components working together. For that reason, understanding the life cycle of Junit tests can …

Software Development java
2
231
Member Avatar for dimitrilc

## Introduction ## When localizing your application, `ResourceBundle` can be a great way to load Strings from different locales. The only concrete implementation of ResourceBundle is `PropertyResourceBundle`, which allows us to load static Strings from a text file. Because `.properties` is a common file extension used for ResourceBundles, creating ResourceBundle …

Software Development java
2
224
Member Avatar for Phillip_8

Hi guys im trying to do a Login system in Wpf with Visual Studio I got the code and DB working fine with Windows Forms in Visual Studio I have changed the code 3 times and they all work on Windows forms but not with Wpf Forms. Below is the …

Software Development mysql visual-basic
Member Avatar for Santanu.Das
0
135
Member Avatar for Quinton_1
Member Avatar for jackpetersoons3
-2
788
Member Avatar for dimitrilc

## Introduction ## When collecting a stream, the `groupingBy()` Collector(`java.util.stream.Collector`) can be used to put data into different groups based on specified conditions. `groupingBy()` is a little bit more complicated to use than [partitioningBy()](https://www.daniweb.com/posts/jump/2280662) because the key can be of any type, whereas with `partitioningBy()`, the keys must be of …

Software Development java
2
124
Member Avatar for dimitrilc

## Introduction ## Whenever we want to modify numbers from multiple threads running concurrently, such as modifying a counter, one of the best options is to use the AtomicX classes. The most basic numeric atomic classes are AtomicInteger and AtomicLong. In this tutorial, we will learn how to use the …

Software Development java multithreading
2
106
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 …

Software Development java
Member Avatar for K3haled
0
9K
Member Avatar for fonzali

hi , I found this code on the internet , I changed and added some lines to it to make it the way I like . I am very weak in using functions and even worse in using classes , I appreciate it if some one can change this code …

Software Development python
Member Avatar for Thati
0
5K
Member Avatar for razstec

Hi, i have this script but cant seem to open the browserframe in the correct place ![Captura_de_ecrã_2021-10-25,_aÌ€s_11_07_07.png](https://static.daniweb.com/attachments/4/6e99ec442a2fea1bedb081e65e6e1534.png) import ctypes import platform from cefpython3 import cefpython as cef from tkinter import * import tkinter as tk import sys # platforms WINDOWS = platform.system() == 'Windows' LINUX = platform.system() == 'Linux' MAC …

Software Development python
Member Avatar for razstec
0
180
Member Avatar for Xozz

I have MinGW installed on Windows 10. Can you help me compile something with it? I get this $ g++ first.cpp -o first bash: g++: command not found And then $ apt-get install g++ bash: apt-get: command not found

Software Development microsoft
Member Avatar for Xozz
0
72
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 …

Software Development java
2
342
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 …

Software Development java
2
179
Member Avatar for JModak

Debug time Application run good all private sub and Function work properly, but with out debug not run properly please help me

Software Development perl vb.net
Member Avatar for Bert Pitt
0
677
Member Avatar for RoqueyB

so i have an assignment for a class to make a pick up sticks game. This is the actual assignment: "The rules of pick up sticks are as follows: The user chooses the number of matchsticks (5 to 50) to place in a pile. Then, the computer chooses who will …

Software Development python
Member Avatar for Ben_493
0
9K
Member Avatar for sizzlefire

Hello everyone, I am currently working on a project for a friend and have encountered some issues. I am attempting to fill out a form with a library called iTextsharp: [url]http://itextpdf.com/[/url] The form that I am attempting to fill out is [url]http://www.copyright.gov/forms/formco2d.pdf[/url] and I have been able to fill out …

Software Development
Member Avatar for Fernando_28
0
6K
Member Avatar for Dmiller071

Hi all, I've started to dive into OpenGL w/C++ to expand my library knowledge but I had a few questions. I've been following a tutorial online that basically walks step by step through the compiler linking, functions, and basics of an OpenGL program. I really would love to create some …

Software Development c++ opengl
Member Avatar for oussama_5
0
228
Member Avatar for Xozz

What I would like to do is to register a couple of shortcuts to move the mouse cursor. The cursor should jump from the one square area of the screen to the other. The question that comes to mind first is: which keys are not used (or at least not …

Software Development microsoft pc-peripheral
Member Avatar for Viki_1
0
184
Member Avatar for marmelade7

I'm trying to figure out why the regex code below gives me two different results, depending on where I use it. [A-Z]{0,1}[a-z]{2,}[:] **On phpliveregex.com, the above regex code matches the following:** narrator: Narrator: **When used in preg_match, the above regex code matches the following:** narrator: Narrator: NARRATOR: PS I'm not …

Software Development microsoft php regex
Member Avatar for Reverend Jim
0
83
Member Avatar for MohdAleeRehman

1. Write a program that would print the information (name, year of joining, salary, address) of employees by creating a class named 'Employee'. 2. Create a function in the Employee class that finds an employee by the given year of joining. 3. Create a function for sorting the employees according …

Software Development c++
Member Avatar for Schol-R-LEA
0
79
Member Avatar for imso

The alarm clock application works by setting a certain time and then it perform a certain task eg:sound an alarm, display a messagebox test message. But the problem comes where i need to snooze(delay) the alarm clock for a certain time period like 10 second... Then it will re-initialise the …

Software Development c#
Member Avatar for Konevlad21
-1
1K
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 …

Software Development java
3
1K
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 …

Software Development java
3
987
Member Avatar for dimitrilc

## Introduction ## `launch()` and `async()` are two of the most common coroutine builders to use in Kotlin, but they are somewhat different in usage. `launch()` returns a `Job` object, which can be used to cancel or perform other operations on the underlying coroutine. If our coroutine lambda returned a …

Software Development
3
337
Member Avatar for dimitrilc

## Introduction ## In Kotlin, we can extend classes without subclassing via extension functions and extension properties. This feature is useful whenever we want to extend 3rd party libraries or final classes. In this tutorial, we will learn what extension functions and extension properties are, and how to create our …

Software Development
2
284
Member Avatar for cambalinho

i have code for write on console and change the text color and backcolor and clear screen(and much more) inside of a nice class console. these function change the text color and back color: void SetColorAndBackground(int ForgC, int BackC=0) { SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), ForgC|(BackC<<4) ); } but is there any way for …

Software Development c++
Member Avatar for Mendoza,
1
4K

The End.