Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Blog Directory  >  Software Blogs  >  java tutorial : Blog to learn java programming software Blog  >

Java Tutorial : Blog To Learn Java Programming Blog


1
Tags:
Tutorial on Java, Design Patterns, collections, Struts, jdbc
Signatureexp(n)hive> SELECT * FROM emp;OKemp.id emp.name emp.hobbies emp.technology_experience emp.gender_age emp.rating1 Hari ["Football","Cricket"] {"Java":"3.4Yrs","C":"4.5Yrs"} {"gend… Read More
Signaturecos(n)hive> SELECT * FROM emp;OKemp.id emp.name emp.hobbies emp.technology_experience emp.gender_age emp.rating1 Hari ["Football","Cricket"] {"Java":"3.4Yrs","C":"4.5Yrs"} {"gend… Read More
Java.util.Date Vs Java.sql.Date
java.util.Date ‘java.util.Date’ class is used to represent a specific instant in time, with millisecond precision since the 1st of January 1970 00:00:00 GMT (the epoch time). &nb… Read More
In this post, I am going to explain about the assert statement in Java with the help of examples.   Assertions were added in Java1.4, that enables you to test the assumptions about your… Read More
Step 1: Install mysqlbrew install mysql $brew install mysqlUpdating Homebrew...==> Downloading https://homebrew.bintray.com/bottles/protobuf-3.13.0.catalina.bottle.tar.gz==> Downl… Read More
ArangoCollection interface provides 'drop' method to drop a collection.   void drop() throws ArangoDBException; Drop a collection.   void drop(boolean isSystem) throws ArangoDBExce… Read More
ArangoDatabase interface provides 'collection' method which takes a collection name as argument and return ArangoCollection.   ExampleArangoCollection arangoCollection = arangoDatabase… Read More
AQL Using ArangoDB Web UI
In upcoming posts, I am going to explain how to execute AQL queries using Arango Web UI.   Let’s create a collection ‘users’ using ArangoDB web ui.   Step 1: Logi… Read More
JavaFX JavaFX BasicsJavaFX is a high performance graphical user interface library provided by java. It is used to build platform independent, rich UI client applications. Read more… Read More
JavaFX: TableView Widget
TableView class is used to define a table view control. TableView represent the data in rows and columns.   Is TableView scrollable? Yes   Is TableView editable? Yes   TableCo… Read More
JavaFX: ListView
  ListView displays a horizontal or vertical list of items from which the user may select, or with which the user may interact. A ListView is able to have its generic… Read More
JavaFX: ToolBar Control
ToolBar control is used to display items horizontally or vertically.   Example ToolBar toolBar = new ToolBar(); toolBar.getItems().addAll(copyButton, cutButton, pastButton, undoButton… Read More
JavaFX: Menu And MenuItem
MenuItem MenuItem is intended to be used in conjunction with Menu to provide options to users. Following are the sub classes of MenuItem. a.   CheckMenuItem b.   ContextM… Read More
JavaFX: Hyperlink Widget
  Hyperlink widget is used to create hyper link controls. Hyperlink can be a graphic and/or text which responds to rollovers and clicks. Hyperlinks are underlined, whe… Read More
JavaFX: TextField Widget
TextField class is used to create a TextField widget.   Can a TextField has support to multi line input? No, TextField support single line input. If you want multi line support, you sho… Read More
JavaFX: BorderPane
BorderPane lays out children in top, left, right, bottom, and center positions.   a.   The top and bottom children will be resized to their preferred heights and extend the wi… Read More
JavaFX: Anchor Pane
AnchorPane allows the edges of child nodes to be anchored to an offset from the anchor pane's edges.  If the anchor pane has a border and/or padding set, the offsets will be measured fr… Read More
JavaFX: StackPane
StackPane layout place UI components in a single stack. The z-order of the children is defined by the order of the children list with the 0th child being the bottom and last child on top.&nb… Read More
JavaFX: Create Chain Of Effects
Output of one effect can be set as input to other effect. Using this chaining, we can apply multiple effects to the node.   In this post, I am going to apply reflection affect as input… Read More
JavaFX: PerspectiveTransform Effect
This effect is used to provide 3D effect for 2D content by creating a perspective in Z-axis direction.   A perspective transformation is capable of mapping an arbitrary quadrilateral in… Read More
JavaFX: SepiaTone Effect
SepiaTone class is used to produces a sepia tone effect, similar to antique photographs.   ‘SepiaTone’ class provides following constructors to get an instance of SepiaTone… Read More
JavaFX: DisplacementMap Effect
  DisplacementMap effect shifts each pixel by a distance specified by the first two bands of of the specified FloatMap.   What is FloatMap? FloatMap is a buffer t… Read More
JavaFx: Reflections
 Reflection effect renders a reflected version of the input below the actual input content.   Reflection class provides following constructors to define Reflection instance.  … Read More
JavaFX: ColorInput Effect
ColorInput effect is used to render a rectangular region that is filled with the given color.   ColorInput serves as an effect to other effect instance.   house.png  … Read More
JavaFX: Lighting
The lighting effect simulates a light source shining on the given content, which can be used to give flat objects a more realistic three-dimensional appearance.   Why… Read More
JavaFX: ColorAdjust Effect
ColorAdjust effect is used to adjust the color of an image by adjusting hue, saturation, brightness, and contrast.   Step 1: Get an instance of ColorAdjust. ColorAdjust colorAdjust = ne… Read More
JavaFX: Glow Effect
Glow is a high-level effect that makes the input image appear to glow, based on a configurable threshold.   Glow class provides following constructors to get an instance of Glow.  … Read More
JavaFX: Hello World Application
  Step 1: Extend 'javafx.application.Application' class and override start method.public class HelloWorld extends Application {@Overridepublic void start(Stage primarySt… Read More
  Why JavaFX? a.   Rich Client Platform with lot of features to develop rich desktop clients. b.   Rich UI controls like buttons, text boxes, check… Read More
Functions are first class citizens in Scala. ‘sum’ function takes two integer arguments and return the sum of two variables.scala> def sum(a: Int, b : Int) = a + bdef sum(a: I… Read More
Yes, a constructor can be private in Java.Possible Scenariosa. A class with all static methods.Suppose you define an utility class with all static methods, then there is no point of creating… Read More
Swagger: Tagging The APIs
Tags are used to group the APIs. Tags are created using ‘tags’ element.Examplepaths: /employees/{employeeId}: get: tags: - single - getdata.yamlopenapi: 3… Read More
Following snippet converts US_ASCII byte array to string.byte[] byteArr = {72,101,108,108,111,32,87,111,114,108,100};String str = new String(byteArr, StandardCharsets.US_ASCII); App.javapac… Read More
You can create a table using ‘CREATE TABLE’ command.SyntaxCREATE TABLE [IF NOT EXISTS] [keyspace_name.]table_name ( column_definition [, ...] PRIMARY KEY (column_name [, c… Read More
Below snippet prints generic type of a field.public static void printGenericType(Field field) { ParameterizedType genericType = (ParameterizedType) field.getGenericType();int lengthOfArgum… Read More
Below snippet prints generic type of a field.public static void printGenericType(Field field) { ParameterizedType genericType = (ParameterizedType) field.getGenericType();int lengthOfArgum… Read More
Below snippet prints generic type of a field.public static void printGenericType(Field field) { ParameterizedType genericType = (ParameterizedType) field.getGenericType();int lengthOfArgum… Read More
‘Arrays.sort’ function is used to sort array elements in descending order.ExampleInteger[] arr = { 1, 3, 5, 7, 2, 4, 6, 8, 10 };Arrays.sort(arr, Collections.reverseOrder());App… Read More
Following statement sorts the array in ascending order.Arrays.sort(arr);App.javapackage com.sample.app;import java.io.IOException;import java.util.Arrays;public class App {private static v… Read More
Approach 1: Using ScannerString content = new Scanner(new File(filePath)).useDelimiter("\\Z").next();Approach 2: Using Files.readAllBytes.String content = new String(Files.readAllBytes(Paths… Read More
Spring Data Jpa: Prefix Query Method
Following query method return all the employees whose firstName starts with given string.// SELECT * FROM employee WHERE firstName LIKE :nameStartWith%public List findByFirstNameStartingWith… Read More
Spring Boot Jpa: Suffix Query Method
Following method return all the employee details whose firstName ends with given string.// SELECT * FROM employee WHERE firstName LIKE %:nameEndWithpublic List findByFirstNameEndingWith(St… Read More
Spring Boot: Application.properties
This is continuation to my previous post, you can download previous application from below github link.Spring boot comes with default configurations.For example, when I add ‘spring-b… Read More
Spring Boot: Adding Rest APIs
This is continuation to my previous post. In this post, I am going to explain how to add rest end points to the previous application.You can download the previous working application from… Read More
Introduction To Debug Package
'debug' is a tiny JavaScript debugging utility.Install debug packageStep 1: Create a folder ‘debugDemo’Step 2: Go inside ‘debugDemo’ folder and execute the command… Read More
How To Debug Node.js Application?
In this post, I am going to show you how to debug a node.js application using chrome development tools.Create a node.js application like below.HelloWorld.js//Load express moduleconst expre… Read More
      Introduction to body-parser      Express: body-parser: hello World applicationPrevious      … Read More

Share the post

java tutorial : Blog to learn java programming

×