Technology Evangelist, Product Engineer, Analytics Expert
One of the main factor for responsive website development is developing css for multiple screen devices. Often it becomes difficult when we have so many set of devices and different set of dimension to each of those device, what dimensions we should fit. There are many answers already available on internet via css-tricks, stackoverflow etc.
Most asked question during your interviews, different between
String s1 = "abc";
String s2 = new String("abc");
Another Swing program demo where I have used 3 layouts to show up the demo which are BorderLayout, BoxLayout, GridLayout.
A layout container that arranges and resizes its components to fit in five regions: north, south, east, west, and center.
The following is a simple example on how to read & write data from a file.
MVC i.e. Model-View-Controller architecture usually separates the program in three parts which are Model i.e. the code we write in the form of modules or that represents a model, View that helps in displaying data to the user in the form of GUI and Controller usually handles the user gestures carried out on the GUI.
When using MVC architecture, our view can remain the same and by changing the Model it reflects the view with the help of the controller i.e. user interaction.
Colors in computers are generally made up using RGB mode i.e. Red, Green, Blue.
So in java if we generate random color values for RGB from 0 to 255 each we can make a whole new color out of it by passing this RGB to the color object.
One of the most basic starters program for demonstrating the proper use of Sockets in Java.
The following code makes use of Swing components to illustrate the Client GUI side and the Server side plays the role in Console mode.
In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n.
In-order to convert from Celsius to Fahrenheit, we have to apply a simple logic onto Celsius "Multiply by 9, then divide by 5, then add 32".
Our code provides a simple GUI, where the user has to enter the temperature in Celsius and after clicking on convert displays the Fahrenheit temperature below button in the form of JLabel.
In-order to convert from Fahrenheit to Celsius, we have to apply a simple logic onto Celsius "Deduct 32, then multiply by 5, then divide by 9".
Our code provides a simple GUI, where the user has to enter the temperature in Fahrenheit and after clicking on convert displays the Celsius temperature below button in the form of JLabel.