976 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for dimitrilc

## Introduction ## Java 14 was released with a new type of expression called Switch Expression. Its syntax is similar to that of the Switch Statement, with a few differences. In this tutorial, we will walk through concepts related to the Switch Expression and learn how to use it. ## …

Software Development java syntax tutorial
3
108
Member Avatar for dimitrilc

## Introduction ## In this tutorial, we are going to learn how to create a Java module by hand. ## Goals ## At the end of this tutorial, you would have learned: 1. What a `module-info.java` file is. 2. How to compile a module. 3. Describing a module. ## Prerequisite …

Software Development cli compiler java
2
109
Member Avatar for kasmar45

This code causes an exception: dim box as new mult() box.show <-------- cannot access a disposed object

Software Development vb.net
Member Avatar for kasmar45
1
158
Member Avatar for razstec

Got this to open a browser inside a specific frame, and i need it to be changeable, any ideas? been readin pyqt5 but cant seem to manage this import sys from tkinter import Tk, ttk from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtWebEngineWidgets import * mainwind = Tk() …

Software Development python
Member Avatar for razstec
0
325
Member Avatar for I_GEVO

hi, I put a button to run the batch file and everything is fine But when the file works it asks for other files that are complete to run it and I did not know how to merge it together to work properly and these pictures ![1.png](https://static.daniweb.com/attachments/4/83b5662430989d1e87d8ad82ef1a2851.png) ![3.png](https://static.daniweb.com/attachments/4/7a92fe7a9051f62f3c292b5b8830433a.png) ![Screenshot_13.png](https://static.daniweb.com/attachments/4/cc156d0fa8215abef8802da216cc1a96.png) ![2.png](https://static.daniweb.com/attachments/4/18a4dd6b1d04de74b1629bd70a0ee460.png)

Software Development vb.net visual-basic windows
Member Avatar for tinstaafl
0
79
Member Avatar for dimitrilc

## Introduction ## Based on the 2020 Java Ecosystem survey from Jetbrains, 75% of Java developers are still using JDK 8. JDK 11 introduces `HttpClient`, which replaces the legacy `HttpURLConnection` API. For this tutorial, we will build a `HttpClient` that consumes the free Cat Facts API. ## Goals ## At …

Software Development api java
Member Avatar for JamesCherrill
3
436
Member Avatar for dimitrilc

## Introduction ## `partitioningBy()` collects a `Stream` into a `Map`. In this tutorial, we will compare the two different `partitioningBy` methods and learn how to use them. ## Goals ## At the end of this tutorial, you would have learned: 1. What `Collectors.partitioningBy` does and how to use it. ## …

Software Development functional java stream
3
206
Member Avatar for dimitrilc

## Introduction ## This tutorial introduces the `CyclicBarrier` class and teaches you how to use it. ## Goals ## At the end of this tutorial, you would have learned: 1. How to use `CyclicBarrier` to synchronize tasks across multiple threads. ## Prerequisite Knowledge ## 1. Intermediate Java. 2. Basic knowledge …

Software Development concurrency java multithreading
3
136
Member Avatar for alamu

please give the program for sorting a linked list without affecting the original value

Software Development c
Member Avatar for 4rajgopal
0
1K
Member Avatar for Logic_Brown

I found this peaice of code to import a Access database table to sql server Private Sub btnImport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnImport.Click Dim fileName As String = "" Dim ofd As New OpenFileDialog If ofd.ShowDialog = Windows.Forms.DialogResult.OK Then fileName = ofd.FileName PerformImportToSql(fileName) End If End …

Software Development mysql vb.net visual-basic
Member Avatar for SoftBa
0
592
Member Avatar for dimitrilc

## Introduction ## This tutorial teaches you how to implement the Type-safe Builder pattern using Kotlin. This pattern allows developers to create declarative and concise DSLs. Our implementation will be a Burger Builder that enables our users to create Burger objects expressively. ## Goals ## At the end of the …

Software Development kotlin
2
412
Member Avatar for mir_sheely

I am in trouble. I need to convert a signed 16-bit Hexadecimal no to short. Say I have a string s = "f2f7" Which is a negative number and lies in the range -32768 to 32767 so is the range of type short. But when I do short num ; …

Software Development java
Member Avatar for Andrey_7
0
1K
Member Avatar for Mohamed_167

I am attaching my complete code. I am not able to get why doesn't my KeyListener work. None of the KeyListener events are fires on pressing the keyboard. Please have a look and tell me the flaws in my code package swing; //First Class (separated class) import javax.swing.JFrame; public class …

Software Development java
Member Avatar for JamesCherrill
0
486
Member Avatar for razstec

Need to make independent charts for current month, last month and since the beginnig of the year. Been trying to make the table and then make the bar charts, got so far but cant seem to populate my code in order to build the tables with the specific data from …

Software Development matplotlib python
Member Avatar for Schol-R-LEA
2
492
Member Avatar for rajii93

plz help me..with the program for two wire intercom using embedded c program in atmega8

Software Development c
Member Avatar for Dorian_3
1
373
Member Avatar for Rahul47

Hello fellas, recently i hit upon an to develop a small program to lock screen. As a part of it, I need to lock taskbar from functioning, i.e should not show up when pressed Start Button, or Ctrl + esc or not even Ctrl + alt + Del. I dont …

Software Development vb.net
Member Avatar for Rythorian
0
792
Member Avatar for TheBeast32

Hi, how would I use mouse_event to simulate the mouse wheel? I can only do clicks. [Code=C++] void Left_Click(const long x, const long y) { mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0); mouse_event(MOUSEEVENTF_LEFTUP,x,y,0,0); } void Right_Click(const long x, const long y) { mouse_event(MOUSEEVENTF_RIGHTDOWN, x, y, 0, 0); mouse_event(MOUSEEVENTF_RIGHTUP, x, y, 0, 0); …

Software Development c++ windows
Member Avatar for Oliver _2
1
515
Member Avatar for soibac

Hi all, I have 2 form and a main.py in the project: ffrend.py and fmain.py main.py: from PyQt4 import QtCore, QtGui from fmain import * if __name__ == "__main__": import sys app = QtGui.QApplication(sys.argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow() ui.setupUi(MainWindow) MainWindow.show() app.exec_() fmain.py (there is a button to execute …

Software Development python
Member Avatar for RespectedCow
0
10K
Member Avatar for harshchandra

This is a simple archery Game developed in C language . The aim of the game is to shoot the balloons and score as much points as you can . The game have three levels. Platform used is Turbo C++ IDE . Standard Graphics.h functions are used.

Software Development c
Member Avatar for 26_Anuja
0
4K
Member Avatar for nalb4242

Hello , i am using free 3 of 9 barcode to create a bar code of each student in my DB , the problem that in my card it is not shown as it is supposed to be but as *98777* ![barCode.PNG](https://static.daniweb.com/attachments/4/73daedb60096264ee7decb34db04e4f4.PNG) so any one knows how i can solve …

Software Development asp.net sql
Member Avatar for rproffitt
0
97
Member Avatar for ray.chappel

/*******************************************************************************************************************| | Assignment 2 | | Program is meant to extract a record from each file and create a new file for each record | | Programs creates a new directory and uses the directory for each new file | | | | written by Raymond Chappel | | | …

Software Development java
Member Avatar for LohithS
0
180
Member Avatar for Vongola_Takeshi

Good day ^^ I want to create a program using tasm that will tell if the inputted string is a palindrome or not....but i don't know how will i get the first and last char to compare..unlike in C..i can use the strlen....XD Please make the codes very simple ^^..tnx …

Software Development assembly tasm
Member Avatar for Nivre
0
4K
Member Avatar for razstec

I would like through a list or dict populated by a text to create a frames, this way I could update an app without having to mess with the code, can someone help me? Seria algo assim: vars.txt: > tab1 <-> nome1 > tab2 <-> nome2 > tab3 <-> nome3 …

Software Development python
Member Avatar for Schol-R-LEA
0
482
Member Avatar for kamilacbe

Hi, I'm trying to desirealise the json data from a external file where i want to read the key and fetch another dictionary value based on key please letme know if i can read dictionary inside dictionary , I have tried using DIctionary<string,object> where as am looking for Dictionary <string,Dictionary<string,string>> …

Software Development c# json
Member Avatar for pritaeas
0
104
Member Avatar for SKCOMPUTERS
Member Avatar for rproffitt
1
167
Member Avatar for Urbandude23

I am trying to run my game in Python, with Pygame. However, I am presented with a black screen, but my game shows up for a fraction of a second after I exit the Shell. What's wrong with my code, I think it's an issue with my timer. # Import …

Software Development python
Member Avatar for Prragya
0
5K
Member Avatar for ekennedybills

Task is to create a basic calculator using double value and sentinel. I cannot figure out how to get the array to avoid counting the sentinel. To me, it looks like I've put in safeguards such as only looping if the value is >=0, but it still counts, lists, and …

Software Development java
Member Avatar for JamesCherrill
0
82
Member Avatar for forgot

Hi, the scenario is: I run an apartment complex, someone comes in to pay their rent. I fill in an html form to record payment(update "payments" database table) and print a receipt. I hope u will look at it and offer advice. I hope to combine both the payment and …

Software Development database mysql windows
Member Avatar for Dani
1
56
Member Avatar for kal_crazy

I am using CPU Sim to change wombat1 to wombat2 by adding stack. I have done adding a Stack RAM and a Stack pointer SPR. I have implemented a push instruction as such: acc->mdr mdr->Stack[SPR] End The implementation is able to push the acc value to Stack but not able …

Software Development assembly
Member Avatar for Ajnesh
0
2K
Member Avatar for Prudence_1

1.2 Convert the following classes to valid C# classes: SemiDiode + ForwardV {get; set; }: Double +ReverseV (get; set; }: Double +BreakdownV {get, set; }: Double + Semi Diode) + SemiDiode(forwardV: Double, reverseV: Double, breakdownV: Double) +ToString(): String Laser LED wavelength: Int32 -color: String +Wavelength {get; set; } : Int32 …

Software Development c#
Member Avatar for Schol-R-LEA
0
993

The End.