Posts

Genuine Online Jobs

Image
WHY ONLINE JOBS ????? In today’s job industry, working online is far more popular than ever largely because of the digital era. It’s also popular because of a few undeniable benefits online jobs provide that your typical 9-to-5 can’t touch. In fact, I could probably go over 18 different online job benefits but that’s not my main purpose today so I’ll just share three of my favorite  benefits of working online . Online jobs are flexible They don’t typically require extensive training or education They usually pay more per hour than your average 9-to-5 office job What more could you want than to make  more  money while working  fewer  hours? Perhaps that’s not always the case, but in my 3 1/2+ years of experience with online jobs, I see this trend again and again. Here some of the best online jobs providing sites are listed below: 1.  FREELANCER A freelancer or freelance worker is a term commonly used for a person who is self-employed and is not...

Displaying Numbers in Ascending and Descending Order using array

Image
Printing numbers in Ascending and Descending Order import  java . util . Scanner ;  //Calling Scanner Class public class  Swap {      public static void main(String []args)     {          //Declaring Variables          int  length ;          int    a =1;          int  i=0;          System.out.println ("Enter length of array ");  //Instruction for user          length =  new   Scanner ( System.in ).nextInt();  //Getting value from user          int  num []=  new   int  [ length ];  //Initializing array             for( i=0; i< length ;i++)  //loop for getting array from user             {           ...

Alternative method to make the game

Image
import   java . util . Random ;  //Calling Random Class import  java . util .Scanner;  //Calling Scanner Class public class   Play {      public static void main(String []args)     {          System.out.println ("Wel-Come to our guessing game");  //Instruction to users          Random   num = new  Random ();          int   num1 =  num . nextInt (100);                  for ( int  i=1; i<10;i++)         {              System.out.println ();   //Printing blank line to make result better              System.out.println (+i+". Please Enter your Guess");  //Instruction to user to input value              int  a=...

Guess the number and win the prize(game)

Image
A simple game to guess number form 1 to 100   import   java . util . Random ;  //Calling Random Class import   java . util . Scanner ;  //Calling Scanner Class public class   HighLow {      // instance variables        private  double x;      public void  game()     {          int   n =1;          int  a =1;          Random  b= new  Random ();         int c= b.nextInt(100);          System.out.println ("Guess the Number(1 to 100)");  //Instruction to user          while ( n <=10)         {              System.out.println ("Guess"+ n +": ");              x =  new   Scanner (System...

Find out the divisors or the factors of any number using java program

Image
Program to display the Factors of any number "Factors" are the numbers you multiply to get another number. For instance, factors of 20  are  4  and  5 , because 4 ×5 = 20 . Some numbers have more than one factorization (more than one way of being factored). For instance,  10  can be factored as  1×10, or 2×5. For Example:- The factors of 100 Answer : 1,2,4,5,10,20,25,50,100. import   java . util . Scanner ;  //Calling Scanner Class public class   Divisors {      // instance variable        private   int  x ;      public void   calculation()  //Non return type, Non Parameterized method     {          System.out.println ("Enter any number");  //Instruction to user          x =  new  Scanner ( System.in ). nextInt() ;  //Getting input     ...

Alternative method to display the String in reverse form

Image
Accept and display the String in reverse form import  java . util . Scanner ;  //Calling Scanner Class public class  Reverse {      public static void main(String []args)     {          System.out.println ("Enter String to Reverse it ");  //Instruction to user          String  str=  new  Scanner ( System.in ). nextLine() ;  //Getting String from User          int  i =  str.length() ;  //Calculating Length of Given String          String  rev ="";  //Declaring and Initializing variable             for(int  j = i -1;  j >=0;  j --)  //Looping statement             {                  rev =  rev + str.charAt( j ) ;  //Processing   ...

Check and display whether it is a prime number or not OR an automorphic number or not.

Image
Identify the number is EITHER prime number or not OR an automorphic number or not.  If you need some data from the user then you need to import the  Scanner  class. If you want to know more about  Scanner class then, please visit this link ( https://programmerbrothers.blogspot.com/2019/04/scanner-class-in-java-scanner-is-class.html ) import   java . util . Scanner ; public class  NumberCheck {      // instance variables        private  int  x ;      int   b ;      public void   Prime()     {          System.out.println ("Enter a number");          x =  new   Scanner ( System.in ). nextInt() ; The statements mentioned below check that the input number is either prime or not. Prime numbers are perfectly divisible by only 1 and the same number. So, following such trick, the numb...