Skip to content

Instantly share code, notes, and snippets.

@iWorldTech
iWorldTech / Calculator.java
Created September 2, 2016 16:23
A Simple Calculator made in JAVA. Coder - Naseem Ali & Shouvik Mitra
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
@iWorldTech
iWorldTech / ScreenShot.java
Created May 18, 2016 18:57
a code for creating a simple class capable of capturing your screen and saving it in a screen.jpg named file
import java.awt.Dimension;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;
@iWorldTech
iWorldTech / TaskManager.java
Created May 18, 2016 18:51
Hey Guys, today I will show you how to create a simple task manager in java. For achieving this aim, I am going to make use of a application preloaded on all Windows machines. I am afraid, this trick and also the program shall not work for any non-windows platform. So, without much delay, let me present the code in front of you.
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class TaskManager
{
public static void main(String args[])
{
try {
@iWorldTech
iWorldTech / minibrowser.java
Created October 23, 2015 08:12
A Mini Web Browser in Java
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.html.*;
// The Simple Web Browser.
public class MiniBrowser extends JFrame
@iWorldTech
iWorldTech / StoryWriter.java
Created October 18, 2015 11:25
StoryWriter helps to write stories.
/**
* Storywriter helps to write stories.
* Features :
* 1. Save as .txt with your personaized name
* @author: Shouvik Mitra
* @version: st. date- 28/07/2015
*/
import java.io.*;
public class StoryWriter
@iWorldTech
iWorldTech / QuadraticEquationSolver.java
Created October 15, 2015 20:04
This program is capable of solving quadratic equations with even complex roots.
import java.util.Scanner;
/**
* This programs solves all types of quadriatic equation
*
* @author (Shouvik Mitra)
* @version (24/8/2015)
*/
public class QuadriaticEquationSolver
{
public static void main(String [] args)
@iWorldTech
iWorldTech / TaskManager.java
Created October 15, 2015 19:51
Task Manager helps to list down all the ongoing processes by the system. Here's a small code on how to list down all the task performed by the system.
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class TaskManager
{
public static void main(String args[])
{
try {
String line;
Process p = Runtime.getRuntime().exec("tasklist.exe");
@iWorldTech
iWorldTech / Snake & Ladder in Java
Created November 12, 2014 07:26
This program will simulate a regular snakes and ladders game,where you will befacing the computer. Both start at square 1, and the first one to square 100 wins, The Default presets of Snakes : [54->19] [90->48] [99->77] Ladders : [9->34] [40->64] [67->86]. In simple words, there are some blocks (numbers) which role as sanke and some block(numbe…
package Games;
import java.io.*; // used to allow user to input data
public class Snakes_and_Ladders
{// start class
//Main Method
public static void main (String [] args) throws IOException
{ // start main method
@iWorldTech
iWorldTech / Rock Paper Scissor Game in Java
Created November 12, 2014 07:19
The most loved and played game among the children's is here with JAVA. As the game is simple so is the code. It is based on simple switch...case...default. structure. It is programmed by me within 15 mins as the idea came to my mind.
import java.util.*;
public class RockPaperScissor {
public static void main(String args[]) {
int scoreplayer=0;
int scorecomputer=0;
Random r = new Random();
int num = r.nextInt(3);
System.out.println("Choose: Rock, Paper or Scissors");