Skip to content

Basic Random Sentence Generator from Your Own Data Set ( You should update your database once a day using online IDE, and you should run the program daily to refresh your stock of data )

Notifications You must be signed in to change notification settings

jsvigneshkanna/StockOfSentence

 
 

Repository files navigation

  • 😎 With this app, you can generate random sentences that you already know every day in order to improve your sentence comprehension.

Can you tell me why we need this app?

  • 😎 As you watch a movie or read a book, you might find some interesting sentences. Save them to your own database, and this app will help you recall them.

Random Sentence Generator V 0.1 Video and Now Already Updated so Check here 👈

Screenshot.2022-08-02.195328.mp4

Could you please tell me how I can add my sentence to this website?

  • 😎👇

guide


Basic Random Sentence Generator from Your Own Data Set -

The purpose of this code is for beginners who want to keep motivated to code by making their own dataset and adding sentences on a regular basis as well as increase the stock of sentences.

Note:

  • You should update your database once a day using online IDE, and you should run the program daily to refresh your stock of data
  • Adding and memorizing one sentence every day gives you the ability to learn 365 sentences in a year if you double or triple it, it will increase your stock of sentences by twice or three times.

Basic Concept of this App - In JAVA (Structure of the code is given below) - Clean Code

In our website we use the following structure of the code -

import java.util.Random;
// basic random sentence generator in from  your own data set
public class CodeXam {

//========================================================================================================================================================
    /*
       RULE 0:  ADD MOVIE NAME WITH LINE AND MEANING OF THE LINE

      RULE 1 : Replicate LAST Line from DATA SET - THEN CHANGE THE LINE NUMBER(STRING REFERENCE) TO MATCH THE DATA SET AND ADD YOUR DATA ON THIS STRING

      RULE 2 : Replicate LAST Line from OPERATE FUNCTION - THEN REPLACE THE NEXT NUMBER IN CASE FUNCTION AND CHANGE THE LINE NO(STRING REFERENCE)
     * */
//=======================================================================================================================================================

    // DATA ADD WITH COUNTING - DATA SET
    public static void main(String[] args) {

        int row_increase = 0;
        String line1 = "The quick brown fox jumps over the lazy dog";
        String meaning1 = "A sentence";
        row_increase++;


        String line2 = "The quick brown fox jumps over the lazy dog 2";
        String meaning2 = "A sentence 2";
        row_increase++;


        String line3 = "The quick brown fox jumps over the lazy dog 3";
        String meaning3 = "A sentence 3";
        row_increase++;



        //______________________________________________________________________________________________________________________________
        //______________________________________________________________________________________________________________________________



        //PRINTING TOTAL DATASET
        System.out.println("Total Dataset Added: " + row_increase);


        //______________________________________________________________________________________________________________________________
        //______________________________________________________________________________________________________________________________




        //ADDING DATASET TO RANDOM FUNCTION - OPERATE FUNCTION
        Random rd = new Random();//random dataset of grammar line
        int comp_input = rd.nextInt(row_increase); //taking input from the computer

        switch (comp_input) {
            case 0: { // if our random program generate zero
                System.out.println(comp_input + " No Line. " + line1 + "\n" + "Hinglish meaning of this line  : " + meaning1);
            }
            break;


            case 1: { // if our random program generate one
                System.out.println(comp_input + " No Line. " + line2 + "\n" + "Hinglish meaning of this line  : " + meaning2);
            }
            break;


            case 2: { // if our random program generate two
                System.out.println(comp_input + " No Line. " + line3 + "\n" + "Hinglish meaning of this line  : " + meaning3);
            }
            break;
       }
    }
}

About

Basic Random Sentence Generator from Your Own Data Set ( You should update your database once a day using online IDE, and you should run the program daily to refresh your stock of data )

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 46.3%
  • JavaScript 36.6%
  • HTML 12.3%
  • Java 4.8%