Posts

Showing posts with the label java

Scientific-Calculator using Eclipse in java program

Image
Code src GITHUB : http://bit.ly/2CEMk9p

Subnet Calculator built using java swing and eclipse swing window builder

Image
idea : 11111111.11111111.11100000.00000000 \19 11111111.11111111.11110000.00000000 \20 11111111.11111111.11111000.00000000 \21 11111111.11111111.11111100.00000000 \22 11111111.11111111.11111110.00000000 \23 11111111.11111111.11111111.00000000 \24 11111111.11111111.11111111.10000000 \25 11111111.11111111.11111111.11000000 \26 11111111.11111111.11111111.11100000 \27 11111111.11111111.11111111.11110000 \28 11111111.11111111.11111111.11111000 \29 11111111.11111111.11111111.11111100 \30 11111111.11111111.11111111.11111110 \31 11111111.11111111.11111111.11111111 \32 Give IP Address AND ( / OR Subnet ) Get IP start, end, broadcast, network, etc. IP 11000000.10101000.00000000.00000001 Netmask 11111111.11111111.11111111.00000000 Broadcast 11000000.10101000.00000000.11111111 First 11000000.10101000.00000000.00000001 Last 11000000.10101000.00000000.11111110 192.168.0.1 /24 broadcast 192.168.0.255 network 192.168.0.1 first usable address 192.16...

Programming in Java

Image
Programming is mostly all about writing code in High-Level languages like Java, C++, Python & so on. The set of statements written in a text editor like NotePad ++ or Eclipse is called the source code. The thing is that Computers don’t actually understand these High-Level Languages. The only thing they understand is machine code. Machine code, also known as machine language, is the elemental language of computers. It is read by the computer's central processing unit (CPU) and is composed of digital binary numbers. ⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀ A compiler/Interpreter is a tool that translates source code into another language like Machine Code. Each type of CPU uses a different Machine Language (because of their architecture) which means that the same executable file created by the compiler won’t work on different platforms. The real difference between a compiler and an interpreter is how they go about things. The compiler will actually scan the whole program...

Subnet Calculator

Image
Sub-net Calculator built using java swing and eclipse swing window builder. Sub-net idea :  11111111.11111111.11100000.00000000 \19 11111111.11111111.11110000.00000000 \20 11111111.11111111.11111000.00000000 \21 11111111.11111111.11111100.00000000 \22 11111111.11111111.11111110.00000000 \23 11111111.11111111.11111111.00000000 \24 11111111.11111111.11111111.10000000 \25 11111111.11111111.11111111.11000000 \26 11111111.11111111.11111111.11100000 \27 11111111.11111111.11111111.11110000 \28 11111111.11111111.11111111.11111000 \29 11111111.11111111.11111111.11111100 \30 11111111.11111111.11111111.11111110 \31 11111111.11111111.11111111.11111111 \32 Give IP Address AND ( / OR Sub-net ) Get IP start, end, broadcast, network, etc. IP 11000000.10101000.00000000.00000001  Net-mask  11111111.11111111.11111111.00000000  Broadcast  11000000.10101000.00000000.11111111  First  11000000.10101000.00000000.00000001  Last  110...

Scientific-Calculator using Eclipse in java program

Image
A scientific calculator built using java swing and eclipse swing window builder. Calculator.java   import java.awt.Color ; import java.awt.EventQueue ; import java.awt.Font ; import java.awt.event.MouseAdapter ; import java.awt.event.MouseEvent ; import java.awt.event.MouseMotionAdapter ; import javax.swing.JFrame ; import javax.swing.JLabel ; import javax.swing.JPanel ; import javax.swing.SwingConstants ; import javax.swing.border.EmptyBorder ; import javax.swing.JMenuBar ; import javax.swing.JMenu ; import javax.swing.JMenuItem ; import java.awt.Toolkit ; import java.awt.Window.Type ; import java.awt.ComponentOrientation ; import java.awt.Cursor ; import javax.swing.JTable ; import javax.swing.JButton ; import javax.swing.JTextField ; import java.awt.event.ActionListener ; import java.awt.event.ActionEvent ; import java.awt.Component ; import javax.swing.JComboBox ; import javax.swing.JTextPane ; import javax.swing.DefaultComboBoxMo...