You are here

Page not found

Search results

  1. Java program to open Notepad

    Java program to open Notepad, it's a text editor installed in the Windows operating ... Java programs in it, but you can also open it from your Java program. How to open Notepad using Java program? import ... Notepad {   public static void main ( String [ ] args ) {     Runtime rs = Runtime . ...

    Yogesh Suneja - 05/12/2019 - 20:46

  2. Java program to get IP address

    Java program to print the IP (Internet Protocol) address of a computer system, we ... object, which represents the localhost. Java IP address program import java.net.InetAddress ; class IPAddress {   public static void main ( String args [ ] ) throws Exception   {     ...

    Yogesh Suneja - 05/12/2019 - 19:57

  3. Insertion sort in C

    Insertion sort in C: C program for insertion sort to sort numbers. This code implements insertion sort algorithm to arrange numbers of an array in ...

    Yogesh Suneja - 12/11/2019 - 14:29

  4. Swapping of two numbers in Java

    Java program to swap two numbers with and without using an extra variable . ... {     public static void main ( String args [ ] )     {       int x, y, t ;   ... } } For other methods to swap numbers see: C program to swap using bitwise XOR . ...

    Yogesh Suneja - 05/12/2019 - 21:15

  5. Draw shapes using C graphics

    This C graphics program draws basic shapes such as circle, line, rectangle, ellipse and display text on screen using C graphics. This can be a first graphics program for a beginner. C program ...

    Yogesh Suneja - 23/11/2019 - 11:40

  6. If else program in Java

    ... programming if else statement // If else in Java code import java.util.Scanner ; class IfElse {   ... marksObtained > 60 )         grade = 'C' ;       else         grade = 'D' ;     ...

    Yogesh Suneja - 04/12/2019 - 00:32

  7. How to take input from a user in Java

    Java program to get input from a user, we are using Scanner class for it. The program asks the user to enter an integer, a floating-point number, and a string, and we print them on the screen. Scanner class is present in ...

    Yogesh Suneja - 01/12/2019 - 08:56

  8. setlinestyle in C

    ...  DASHED_LINE ,    USERBIT_LINE } ; C program #include <graphics.h> int main ( ) {   int gd = DETECT , gm , c , x = 100 , y = 50 ;   initgraph ( & gd ...

    Yogesh Suneja - 23/11/2019 - 11:40

  9. switch case in C

    switch is a keyword of C language. Example C program explaining use of switch #include<stdio.h> main ( ) ...

    Yogesh Suneja - 05/01/2018 - 00:48

  10. Java while loop

    ... conditions such as while ( a > b && c != 0 ) {   // Loop body } Loop body is ... variable a is greater than value of variable b and variable c isn't equal to zero. 3. A body of a loop can contain more than one ...

    Yogesh Suneja - 04/12/2019 - 09:14

Pages