Web Rewrite

Technology Blog Where You Find Programming Tips and Tricks
  Menu
Skip to content
  • Home
  • Java
  • Programming Questions
    • Array
    • Linked List
    • Stack
    • Queue
    • String
    • Search Algo
    • Interview Questions
  • Solid Principles
  • Multithreading
  • PHP
  • Database
    • mysql
    • MongoDB
  • Contact Us
« Older posts
Newer posts »

Check Whether a Number is Prime or Not in Java

By WebRewrite | February 23, 2022 - 2:43 pm |February 23, 2022 Java, programming
Leave a comment

How check whether a number is prime or not in java.

Given an input integer, write a code to check whether an input number is prime or not.

For example –

Example 1:

Input: 7

output: true

Example 2:

Input: 12

Output: false

→

Tagged Java, Prime Number, programming

Swap Two Numbers in PHP – Explain with Code Examples

By WebRewrite | March 4, 2017 - 7:42 am |March 4, 2017 PHP, Uncategorized
Leave a comment

Write a PHP script to swap two numbers. In this tutorial, we are going to write a code to swap two numbers in PHP.

There are multiple approaches by which you can swap two numbers.

i) We can swap two numbers using third or temp variable.

ii) We can swap two numbers without using third variable.

→

Tagged PHP, swap numbers

Java Program to Print Fibonacci Series upto N Number

By WebRewrite | August 7, 2018 - 4:36 pm |August 7, 2018 Java, programming
Leave a comment

Write a java program to print Fibonacci series up to N number, where N is the input integer. In this tutorial, We are going to write a java code to print fibonacci series.

→

Tagged Fibonacci Series, Java, Program
«‹4344454647›»
  • Support Me on PayPal

    Programming Video Tutorials


  • Related Posts (YARPP)

    1. Race Condition in Java: Causes, Examples, and Solutions
    2. Find Second Largest Number in Array
    3. Check Balanced Parentheses in an Expression
    4. Sum of Digits of a Number using Recursion – Java Code
  • Topics

    • Multithreading

    • Linked List

    • Binary Tree

    • Hash Map

    • Java

    • Queue

    • Stack

    • Binary Search

    • Programming

    • Sliding Window

    • Composer

    • Memcache

    • Javascript

    • Solid Principles

  • Copyright 2020 – 2021 – webrewrite.com – All Rights Reserved.

  • Home
  • Java
  • Programming Questions
  • Solid Principles
  • Multithreading
  • PHP
  • Database
  • Contact Us
Web Rewrite | Powered by Mantra & WordPress.