Java

Fish Inventory Shop using Java

This tutorial will teach you  to make a small Fish shop Inventory  system using Java. The following  system will use to manage the Fish shop. paste the code inside the ok button String item = txtstatus.getSelectedItem().toString(); double fish = Double.parseDouble(txtqty.getText()); if(item.equals(“KG”)) { double cal = (fish * 140) ; txtbill.setText(String.valueOf(cal)); } else { double cal

Fish Inventory Shop using Java Read More »

Customer Count using Java Mysql

This tutorial will teach you how to create customer count using java mysql.this program help you find no of customers. The user shall be able to register the customer. The user shall be able to count the no of customer. Establish the Database Connection public void Connect() { try { Class.forName(“com.mysql.jdbc.Driver”); con = DriverManager.getConnection(“jdbc:mysql://localhost/gsm”, “root”,

Customer Count using Java Mysql Read More »

DataInputStream Class

The Class DataInputStream is baselly handle a primitive type data types   Example 1 write a programme to input your Firstname,lastname input them. import java.io.*; public class DataInputstream { public static void main(String[] args) { DataInputStream dis = new DataInputStream(System.in); String fname,lname; fname = “”; lname = “”; try { System.out.print(“Enter Your FirstName”); fname =

DataInputStream Class Read More »