<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-06-21T06:38:24+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/format?rev=1366011044&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/control_structures/switch?rev=1365602129&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdlib.h/system?rev=1708041889&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/variables/array?rev=1366179085&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/util/scanner?rev=1369672518&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/loops/for?rev=1366269081&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/write?rev=1378710442&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printwriter?rev=1708041840&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/println?rev=1708042322&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/control_structures/else?rev=1708041838&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/closegraph?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/system/exit?rev=1708042324&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/util/scanner/nextfloat?rev=1365581634&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/initgraph?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/util/scanner/nextlong?rev=1365581680&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/util/scanner/nextdouble?rev=1365581618&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/util/scanner/nextshort?rev=1365581695&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/math/random?rev=1708042323&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/util/scanner/nextint?rev=1365581650&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/util/scanner/nextline?rev=1365581665&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/dos.h/setdate?rev=1708041965&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setaspectratio?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/control_structures/if?rev=1365582955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c?rev=1515738548&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/classes/extends?rev=1366963338&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdlib.h?rev=1708040904&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/variables?rev=1401900353&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/object/equals?rev=1365581557&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/math/round?rev=1365581526&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/variables/define_a_block?rev=1365165752&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/string/toarray?rev=1366267847&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/print?rev=1708042322&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/control_structures/continue?rev=1708041837&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/dos.h/getdate?rev=1708041965&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/datatypes/int?rev=1708041917&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_commit?rev=1361919057&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/initwindow?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/bufsiz?rev=1708041944&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/datatypes?rev=1515738546&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fclose?rev=1708041942&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/registerbgidriver?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/registerbgifont?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/loops/while?rev=1365667420&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/wiki/dokuwiki?rev=1708040894&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsfilemanager.h?rev=1708041981&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setgraphmode?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/getpass?rev=1360368631&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/string/charat?rev=1365581451&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/append?rev=1708042322&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/string/touppercase?rev=1365581482&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/string/tolowercase?rev=1365581466&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/dos.h/gettime?rev=1394818990&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/examples/uiwebview_using_local_resources?rev=1408407926&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/loops/do?rev=1515738547&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/string/replace?rev=1708042325&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/control_structures/break?rev=1708041837&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/pieslice?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/arc?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/usb_leonardo_and_due_only/mousekeyboard?rev=1708041859&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/restorecrtmode?rev=1708041958&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getactivepage?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setactivepage?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/variables/global_variable?rev=1708041842&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/java/io/printstream/format?rev=1366011044&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-15T09:30:44+02:00</dc:date>
        <title>format</title>
        <link>https://code-reference.com/java/io/printstream/format?rev=1366011044&amp;do=diff</link>
        <description>format args to the format string format and write the result to the stream


format(String format, Object... args);

return value: stream

 sign  Description  0 if the place is not busy they prints a 0	# if the place is not busy they prints nothing	. decimal separator Separates and decimal places.	, Groups the numbers (a group is as large as the distance from ”,” to ”.”).	; Delimiter. To the left of the pattern is positive, the right for negative numbers.	- The default character for the negative…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/control_structures/switch?rev=1365602129&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T15:55:29+02:00</dc:date>
        <title>switch</title>
        <link>https://code-reference.com/java/control_structures/switch?rev=1365602129&amp;do=diff</link>
        <description>The switch statement is a multi-select control structure. An expression is evaluated once and compared to 'constants'. In case of equality, the 'statements' that come after the 'constant' are processed. In switch 'statements' can only ordinary data types (ie, 'int', 'long', char, short, etc.) can be used.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdlib.h/system?rev=1708041889&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:49+02:00</dc:date>
        <title>system</title>
        <link>https://code-reference.com/c/stdlib.h/system?rev=1708041889&amp;do=diff</link>
        <description>#include &lt;stdlib.h&gt;
     int system(const char *string);


system calls a command on the shell

system c code example


/* 
 * system example code
 * http://code-reference.com/c/stdlib.h/system
 */
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
 
int main (void)
{
  char * command = &quot;uname -a&quot;;
  
  int cmd = system( command );
 
  if( cmd == -1 ) { printf( &quot;Error while initalize system command.\n&quot;); }
  else if( cmd &gt; 0 )   { printf( &quot;command return value  %d.\n&quot;, cmd ); }
  else  printf( &quot;success\n&quot; )…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/variables/array?rev=1366179085&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-17T08:11:25+02:00</dc:date>
        <title>Arrays in Java</title>
        <link>https://code-reference.com/java/variables/array?rev=1366179085&amp;do=diff</link>
        <description>an array, it is a object variable (box,container), which is a variable in a position to take up more than one object of the same type and manage it

example of arrays in java


package arrays;

public class Arrays {

    public static void main(String[] args) {
           int[] digits1; // Reference Variable
           int[] digits2= new int[5]; // Definition with 5 x Integer
           int[] digits3= {1,2,3,4,5}; // Definie with initialization ( 5 Integer)
           
           // pass Element…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/util/scanner?rev=1369672518&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-27T18:35:18+02:00</dc:date>
        <title>Scanner()</title>
        <link>https://code-reference.com/java/util/scanner?rev=1369672518&amp;do=diff</link>
        <description>Reads input from a Keyboard, or a Device

CODE_SIGN_IDENTITY

--verify

--file-list

--display -r- Terminal.app

example Scanner in java


package scanner;

import java.util.Scanner;

public class Scanner {

    public static void main(String[] args) {
        
        /* Create Scanner Object for the input from the keyboard */
        Scanner scan = new Scanner(System.in); 
        
        double currency, amount, exchangeRate;
        String currencyName, newCurrency;
                
       …</description>
    </item>
    <item rdf:about="https://code-reference.com/java/loops/for?rev=1366269081&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-18T09:11:21+02:00</dc:date>
        <title>for</title>
        <link>https://code-reference.com/java/loops/for?rev=1366269081&amp;do=diff</link>
        <description>for ( init; condition; increment ){
    statements;    
    }


description of for

a for loop do statements while the condition is true/untrue, the increment counts the loop, it is possible to use more than 1 condition in the for loop

example 1 of for in java




package codereferececomjava;
 
public class CodeRefereceComJava {
 
 
    public static void main(String[] args) {
        
        int myOtherCount=5;
 
 
        for (int i = 0; i &lt;= myOtherCount; i++) {
            System.out.print…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/write?rev=1378710442&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-09-09T09:07:22+02:00</dc:date>
        <title>write</title>
        <link>https://code-reference.com/java/io/printstream/write?rev=1378710442&amp;do=diff</link>
        <description>Writes count or one byte to target stream/buffer.


write(int oneByte);
write(byte[] buffer, int offset, int length);



Language Example



      try(    //Try-with-resource-block
            FileWriter stream = new FileWriter(&quot;output.txt&quot;); // create file 
            BufferedWriter output = new BufferedWriter(stream);
         ) {
     
        output.write(&quot;Hello Harddisk&quot;);             // Write to Stream
       //This is an auto-closable block so no need of &quot;output.close();&quot;
       }
      …</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printwriter?rev=1708041840&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:00+02:00</dc:date>
        <title>Print Writer</title>
        <link>https://code-reference.com/java/io/printwriter?rev=1708041840&amp;do=diff</link>
        <description>----------

The PrintWriter class is a simple way of writing to files in Java io. It can be used in many ways and offers a great deal of methods inside the class. Some of these are quite common methods throughout the language itself. I will go through them step by step, giving examples for each. Let's get started:</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/println?rev=1708042322&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:02+02:00</dc:date>
        <title>println</title>
        <link>https://code-reference.com/java/io/printstream/println?rev=1708042322&amp;do=diff</link>
        <description>This line outputs the string parameter to the console with a line return.


println(parameter): void

parameters are:
boolean, char, char[], double, float, int, long, Object, String



Language Example


        System.out.println(&quot;Hello&quot;);
        System.out.println(&quot;I am a programmer&quot;);
        
        System.out.println(&quot; 3 + 4 = &quot; + 3+4 ); // appends 3 and 4 to the string
        System.out.println(&quot; 3 + 4 = &quot; + (3+4) ); // calculate 3+4 before the string &quot;7&quot; added</description>
    </item>
    <item rdf:about="https://code-reference.com/java/control_structures/else?rev=1708041838&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:03:58+02:00</dc:date>
        <title>else</title>
        <link>https://code-reference.com/java/control_structures/else?rev=1708041838&amp;do=diff</link>
        <description>if ( condition == true ){
    command;    
 } else {
      // if the &quot;if&quot; condition false
      command;
      }


check if a condition is true or false

example of else




package plausibilitycheck;

import java.util.Scanner;

public class Plausibilitycheck{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        int celsius;
        double fahrenheit;

        Scanner scan = new Scanner(System.in);

        System.out.print(&quot;Please …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/closegraph?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>closegraph</title>
        <link>https://code-reference.com/c/graphics.h/closegraph?rev=1708041951&amp;do=diff</link>
        <description>closegraph

Syntax of closegraph


#include &lt;graphics.h&gt;
void closegraph(int wid=ALL_WINDOWS);
  

Description of closegraph


closegraph deallocates all memory allocated by the graphics system, then
restores the screen to the mode it was in before you called initgraph.
(The graphics system deallocates memory, such as the drivers, fonts, and
an internal buffer, through a call to _graphfreemem.)</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/system/exit?rev=1708042324&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:04+02:00</dc:date>
        <title>exit</title>
        <link>https://code-reference.com/java/lang/system/exit?rev=1708042324&amp;do=diff</link>
        <description>public static void exit(int status)


exit a programm with a return code 

example exit in java


package test;

public class Test{

    public static void main(String[] args) {
        

        System.out.println(&quot;Example for exit in java&quot;);
        System.exit(1);
        System.out.println(&quot;sorry but this is after our exit&quot;);


    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/java/util/scanner/nextfloat?rev=1365581634&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:13:54+02:00</dc:date>
        <title>nextFloat()</title>
        <link>https://code-reference.com/java/util/scanner/nextfloat?rev=1365581634&amp;do=diff</link>
        <description>public float nextFloat()


return float scanned from the input

example nextFloat in java


package scanner;

import java.util.Scanner;

public class Scanner {

    public static void main(String[] args) {
        
        /* Create Scanner Object for the input from the keyboard */
        Scanner scan = new Scanner(System.in); 
        
        float currency;
                
        System.out.print(&quot;Please enter a number: &quot;);
        currency = scan.nextFloat(); // read currency
        
   …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/initgraph?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>initgraph</title>
        <link>https://code-reference.com/c/graphics.h/initgraph?rev=1708041955&amp;do=diff</link>
        <description>initgraph

Syntax of initgraph


#include &lt;graphics.h&gt;
void initgraph(int *graphdriver, int *graphmode, char *pathtodriver);
  

Description of initgraph


initgraph initializes the graphics system by loading a graphics driver
from disk (or validating a registered driver), and putting the system
into graphics mode.
To start the graphics system, first call the initgraph function.
initgraph loads the graphics driver and puts the system into graphics
mode. You can tell initgraph to use a particular…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/util/scanner/nextlong?rev=1365581680&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:14:40+02:00</dc:date>
        <title>nextLong()</title>
        <link>https://code-reference.com/java/util/scanner/nextlong?rev=1365581680&amp;do=diff</link>
        <description>public long nextLong()


return long scanned from the input

example nextLong() in java


package scanner;

import java.util.Scanner;

public class Scanner {

    public static void main(String[] args) {
        
        /* Create Scanner Object for the input from the keyboard */
        Scanner scan = new Scanner(System.in); 
        
        long currency;
                
        System.out.print(&quot;Please enter a number: &quot;);
        currency = scan.nextLong(); // read keyboard buffer
        
…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/util/scanner/nextdouble?rev=1365581618&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:13:38+02:00</dc:date>
        <title>nextDouble()</title>
        <link>https://code-reference.com/java/util/scanner/nextdouble?rev=1365581618&amp;do=diff</link>
        <description>public double nextDouble()


double scanned from the input

example nextDouble in java


package scanner;

import java.util.Scanner;

public class Scanner {

    public static void main(String[] args) {
        
        /* Create Scanner Object for the input from the keyboard */
        Scanner scan = new Scanner(System.in); 
        
        double currency, amount, exchangeRate;
        String currencyName, newCurrency;
                
        System.out.print(&quot;Please enter the amount (with d…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/util/scanner/nextshort?rev=1365581695&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:14:55+02:00</dc:date>
        <title>nextShort()</title>
        <link>https://code-reference.com/java/util/scanner/nextshort?rev=1365581695&amp;do=diff</link>
        <description>public short nextShort()


return short scanned from the input

example nextShort() in java


package scanner;

import java.util.Scanner;

public class Scanner {

    public static void main(String[] args) {
        
        /* Create Scanner Object for the input from the keyboard */
        Scanner scan = new Scanner(System.in); 
        
        short currency;
                
        System.out.print(&quot;Please enter a number: &quot;);
        currency = scan.nextShort(); // read keyboard buffer
   …</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/math/random?rev=1708042323&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:03+02:00</dc:date>
        <title>Math.random()</title>
        <link>https://code-reference.com/java/lang/math/random?rev=1708042323&amp;do=diff</link>
        <description>Math.random() double;


generate a 'double' random number

example of Math.random in java


package codereferececomjava;

public class CodeRefereceComJava {

 
    public static void main(String[] args) {
    
        double randomDigit;
        randomDigit = Math.random();
        System.out.println(randomDigit); // random number as double
        System.out.println(randomDigit*1000+1); //double random number between 1-1000
        System.out.println((int)(randomDigit*1000+1)); //double random …</description>
    </item>
    <item rdf:about="https://code-reference.com/java/util/scanner/nextint?rev=1365581650&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:14:10+02:00</dc:date>
        <title>nextInt()</title>
        <link>https://code-reference.com/java/util/scanner/nextint?rev=1365581650&amp;do=diff</link>
        <description>public int nextInt()


return int scanned from the input

example nextInt in java


package scanner;

import java.util.Scanner;

public class Scanner {

    public static void main(String[] args) {
        
        /* Create Scanner Object for the input from the keyboard */
        Scanner scan = new Scanner(System.in); 
        
        int currency;
                
        System.out.print(&quot;Please enter a number: &quot;);
        currency = scan.nextInt(); // read currency
        
        System.…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/util/scanner/nextline?rev=1365581665&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:14:25+02:00</dc:date>
        <title>nextLine()</title>
        <link>https://code-reference.com/java/util/scanner/nextline?rev=1365581665&amp;do=diff</link>
        <description>public String nextLine()


return the scanned content from the input

example nextLine() in java


package scanner;

import java.util.Scanner;

public class Scanner {

    public static void main(String[] args) {
        
        /* Create Scanner Object for the input from the keyboard */
        Scanner scan = new Scanner(System.in); 
        
        String line;
                
        System.out.print(&quot;Please enter what you want: &quot;);
        line = scan.nextLine(); // read keyboard buffer
 …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/dos.h/setdate?rev=1708041965&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:05+02:00</dc:date>
        <title>setdate</title>
        <link>https://code-reference.com/c/dos.h/setdate?rev=1708041965&amp;do=diff</link>
        <description>struct time setdate( struct time );


description of setdate

change the system date



#include&lt;stdio.h&gt;
#include&lt;conio.h&gt;
#include&lt;dos.h&gt;

int main(void)
{
   struct date d;

   printf(&quot;Please type in new date ( day, month and year ) as int (ddmmyyyy):&quot;);
   scanf(&quot;%d%d%d&quot;,&amp;d.da_day,&amp;d.da_mon,&amp;d.da_year);

   setdate(&amp;d);

   printf(&quot;System date is now %d/%d/%d\n&quot;,d.da_day,d.da_mon,d.da_year);

   getch();
   return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setaspectratio?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>setaspectratio</title>
        <link>https://code-reference.com/c/graphics.h/setaspectratio?rev=1708041954&amp;do=diff</link>
        <description>setaspectratio

Syntax of setaspectratio


#include &lt;graphics.h&gt;
void setaspectratio(int xasp, int yasp);
  

Description of setaspectratio


setaspectratio changes the default aspect ratio of the graphics system.
The graphics system uses the aspect ratio to make sure that circles are
round onscreen. If circles appear elliptical, the monitor is not aligned
properly. You could correct this in the hardware by realigning the
monitor, but it's easier to change in the software by using
setaspectratio…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/control_structures/if?rev=1365582955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:35:55+02:00</dc:date>
        <title>if</title>
        <link>https://code-reference.com/java/control_structures/if?rev=1365582955&amp;do=diff</link>
        <description>if ( condition == true ){
    command;    
 }


check if a condition is true or false

example of if in java




package plausibilitycheck;

import java.util.Scanner;

public class Plausibilitycheck{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        int celsius;
        double fahrenheit;

        Scanner scan = new Scanner(System.in);

        System.out.print(&quot;Please type in Celsius : &quot;);
        celsius = scan.nextInt();

    …</description>
    </item>
    <item rdf:about="https://code-reference.com/c?rev=1515738548&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-01-12T07:29:08+02:00</dc:date>
        <title>C Library</title>
        <link>https://code-reference.com/c?rev=1515738548&amp;do=diff</link>
        <description>Online reference for the C (standard) library

C is an imperative programming language that the computer scientist Dennis Ritchie developed in the early 1970s at Bell Laboratories for System Programming of the operating system Unix.

C Library Overview
 Library                 Description              assert.h Overview        assertion                 ctype.h         character classification  math.h          mathematical functions    mysql Overview   MySQL implementation      stdarg.h Overview  …</description>
    </item>
    <item rdf:about="https://code-reference.com/java/classes/extends?rev=1366963338&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-26T10:02:18+02:00</dc:date>
        <title>extends</title>
        <link>https://code-reference.com/java/classes/extends?rev=1366963338&amp;do=diff</link>
        <description>extends extends an already existing class with custom methods


package myclass.mydate;

import java.util.Date;

/* 
 * extends Date = extends class java.util.Date 
 * java.util.Date must be importet 
 */
public class MyDate extends Date { 

    public int getFullYear() {
        
        return this.getYear() + 1900;
    }
    

    
// overrride the method getMonth from java.util.Date

    @Override
    public int getMonth() {
        return 99;
    }    
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdlib.h?rev=1708040904&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T00:48:24+02:00</dc:date>
        <title>stdlib.h</title>
        <link>https://code-reference.com/c/stdlib.h?rev=1708040904&amp;do=diff</link>
        <description>Numeric conversions
 Function                 Description                 atof        converts a string to a floating-point value    atoi        converts a string to a integer value    atol        converts a string to a long integer value    strtod      converts a string to a double value    strtol      converts a string to a long integer value    strtoul     converts a string to a unsigned integer value   
Mathematical functions
 Function                 Description                 abs        c…</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/variables?rev=1401900353&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-06-04T18:45:53+02:00</dc:date>
        <title>cpp:variables</title>
        <link>https://code-reference.com/cpp/variables?rev=1401900353&amp;do=diff</link>
        <description>Variables

Variables are the means of storing data in a program. Say you want to make a calculator, you need to use variables. Say you want to make a program that takes in a word and then modifies it, you need to use variables. Variables can be created and “destroyed”(deconstructing comes later on so don't get your hopes up). The value or information that they store can be changed and in some cases, that you make it so, cannot be. Except for the syntax of the language, you are in control!</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/object/equals?rev=1365581557&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:12:37+02:00</dc:date>
        <title>equals</title>
        <link>https://code-reference.com/java/lang/object/equals?rev=1365581557&amp;do=diff</link>
        <description>Compares object and indecates if they equal


equals(Object); 

return value: boolean true/false


equals Example in java



String a = &quot;42&quot;;
String b = &quot;144&quot;;

if ( a.equals(b) ) { 
    
    System.out.println(b+&quot; is the answer&quot;);
} else {

    System.out.println(b+&quot; is probably not the answer&quot;);
}</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/math/round?rev=1365581526&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:12:06+02:00</dc:date>
        <title>Math.round</title>
        <link>https://code-reference.com/java/lang/math/round?rev=1365581526&amp;do=diff</link>
        <description>rounds a number 

example of round in java



package roundanumber;
import java.lang.Math;

public class Roundanumber {


    public static void main(String[] args) {
        // TODO code application logic here
        
        double number, number2;
        number = 33.384422;
        number2 = 33.898823;
    
    System.out.println(&quot;number: &quot; + Math.round(number));
    System.out.println(&quot;number2: &quot; + Math.round(number2));
    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/java/variables/define_a_block?rev=1365165752&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-05T14:42:32+02:00</dc:date>
        <title>create a block</title>
        <link>https://code-reference.com/java/variables/define_a_block?rev=1365165752&amp;do=diff</link>
        <description>create a block

description

define a block for local variables



        /**
         * Block for local variables
         */
        {

            int help=5;
            System.out.println(help);
         } // block content is now trashed
        
       // System.out.println(help); // not possible to access the help variable</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/string/toarray?rev=1366267847&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-18T08:50:47+02:00</dc:date>
        <title>toCharArray</title>
        <link>https://code-reference.com/java/lang/string/toarray?rev=1366267847&amp;do=diff</link>
        <description>public char[] toCharArray()


description of toCharArray()

converts a string to a new character array

example of toCharArray in java


package codereferececomjava;

public class CodeRefereceComJava {


    public static void main(String[] args) {
        String str = &quot;some Text&quot;;
        char[] text;
       
        
        System.out.println(str); // print the String

        text = str.toCharArray();
        for (int i = 0; i &lt;= text.length - 1; i++) {
            
        System.out.printl…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/print?rev=1708042322&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:02+02:00</dc:date>
        <title>print</title>
        <link>https://code-reference.com/java/io/printstream/print?rev=1708042322&amp;do=diff</link>
        <description>Outputs the string parameter without a line return


print(parameter): void

parameters are:
boolean, char, char[], double, float, int, long, Object, String

return value: void


Language Example


        System.out.print(&quot;Hello&quot;);
        System.out.print(&quot;I am a programmer&quot;);</description>
    </item>
    <item rdf:about="https://code-reference.com/java/control_structures/continue?rev=1708041837&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:03:57+02:00</dc:date>
        <title>continiue</title>
        <link>https://code-reference.com/java/control_structures/continue?rev=1708041837&amp;do=diff</link>
        <description>continiue;


continiue breaks a loop at a given point and continiue the loop

example of continiue in java


package codereferececomjava;

public class CodeRefereceComJava {

 
    public static void main(String[] args) {

        int i;
        for (i=40;i&lt;=45;i++) {
            if (i==42) continue;
            System.out.println(&quot;The answer is probably not &quot;+i);
        }
 
    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/dos.h/getdate?rev=1708041965&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:05+02:00</dc:date>
        <title>getdate</title>
        <link>https://code-reference.com/c/dos.h/getdate?rev=1708041965&amp;do=diff</link>
        <description>description of getdate

Program to print the current system date, getdate c code below explain how to use this function to print computer date.


#include&lt;stdio.h&gt;
#include&lt;dos.h&gt;

int main(void)
{
   struct date d;
   getdate(&amp;d);
   printf(&quot;Date is %d/%d/%d\n&quot;,d.da_day,d.da_mon,d.da_year);
   return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/datatypes/int?rev=1708041917&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:17+02:00</dc:date>
        <title>int</title>
        <link>https://code-reference.com/c/datatypes/int?rev=1708041917&amp;do=diff</link>
        <description>int
  int    Integer
  4byte*
  signed: -2147483648 - 2147483647
  unsigned: 0 - 4294967295
  
  2byte
  signed -32768 - 32767
  unsigned: 0 - 65535
  
  *hardware-dependent
  it is also possible that int 2Bytes big is
  On a 32 bit system it is 4 bytes
You can use to find it out ;)</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_commit?rev=1361919057&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T23:50:57+02:00</dc:date>
        <title>mysql_commit</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_commit?rev=1361919057&amp;do=diff</link>
        <description>my_bool mysql_commit(MYSQL *mysql)


description of mysql_commit

mysql_commit Commits the current transaction. 
The action of this function is subject to the value of the completion_type system variable. 

if the value of completion_type is 2, the server performs a release after terminating a transaction and closes the client connection. The client program should call mysql_close().</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/initwindow?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>initwindow</title>
        <link>https://code-reference.com/c/graphics.h/initwindow?rev=1708041948&amp;do=diff</link>
        <description>initwindow

Syntax of initwindow


#include &quot;graphics.h&quot;
int initwindow(int width, int height, const char* title=&quot;Windows BGI&quot;,
int left=0, int top=0, bool dbflag=false, closeflag=true);
  

Description of initwindow


The initwindow function is available in the winbgim implementation of BGI
graphics. You do not need to include conio.h; just include graphics.h.
The function initializes the graphics system by opening a graphics window
of the specified size. The first two parameters (width and hei…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/bufsiz?rev=1708041944&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:44+02:00</dc:date>
        <title>BUFSIZ</title>
        <link>https://code-reference.com/c/stdio.h/bufsiz?rev=1708041944&amp;do=diff</link>
        <description>type Macro


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */
 
BUFSIZ


The value for BUFSIZ should normally be 256 KB, 512 KB or 4096 KB. This depends on the system and the compiler.

BUFSIZ C Sourcecode Example


/* 
 * BUFSIZ example code
 * http://code-reference.com/c/stdio.h/bufsiz 
 */
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */



int main (void) {
    printf (&quot;The m…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/datatypes?rev=1515738546&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-01-12T07:29:06+02:00</dc:date>
        <title>Declaration Dataypes</title>
        <link>https://code-reference.com/java/datatypes?rev=1515738546&amp;do=diff</link>
        <description>package datatypes;

public class DataTypes {

    public static void main(String[] args) {
        // primitiv Datatypes
        
        boolean aa = true;     // 1 bit
        char bb = 'A';         // 2 Bytes
        char cc = 65;          // 2 Bytes
        byte dd = 12;          // 1 Byte -128 - +127
        short ee = 234;        // 2 Bytes -32768 - +32767
        int ff = 4711;         // 4 Bytes
        long gg = 34567;       // 8 Bytes
        float hh = 3.14f;      // 4 Bytes
        d…</description>
    </item>
    <item rdf:about="https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-07-31T22:37:05+02:00</dc:date>
        <title>Formatting Syntax</title>
        <link>https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff</link>
        <description>DokuWiki supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing the Edit this page button at the top or bottom of the page. If you want to try something, just use the playground page. The simpler markup is easily accessible via quickbuttons, too.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fclose?rev=1708041942&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:42+02:00</dc:date>
        <title>fclose</title>
        <link>https://code-reference.com/c/stdio.h/fclose?rev=1708041942&amp;do=diff</link>
        <description>fclose


#include &lt;stdio.h&gt; /* including standard library */

    int fclose( FILE *stream );


Description

Close the current stream / file

Used to close the specified file (stream). You should always use this function, to clean up after using a file. 

Any data that has been written to the file, but not actually made it that far yet, i.e. which has only been written to the file buffer in memory, 

will then be actually written to the physical file itself by the operating system. 

The space i…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/registerbgidriver?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>registerbgidriver</title>
        <link>https://code-reference.com/c/graphics.h/registerbgidriver?rev=1708041949&amp;do=diff</link>
        <description>registerbgidriver

Syntax of registerbgidriver


#include &lt;graphics.h&gt;
int registerbgidriver(void (*driver)(void));
  

Description of registerbgidriver


registerbgidriver enables a user to load a driver file and &quot;register&quot; the
driver. Once its memory location has been passed to registerbgidriver,
initgraph uses the registered driver. A user-registered driver can be
loaded from disk onto the heap, or converted to an .OBJ file (using
BGIOBJ.EXE) and linked into the .EXE.
Calling registerbgidrive…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/registerbgifont?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>registerbgifont</title>
        <link>https://code-reference.com/c/graphics.h/registerbgifont?rev=1708041949&amp;do=diff</link>
        <description>registerbgifont

Syntax of registerbgifont


#include &lt;graphics.h&gt;
int registerbgifont(void (*font)(void));
  

Description of registerbgifont


Calling registerbgifont informs the graphics system that the font pointed
to by font was included at link time. This routine checks the linked-in
code for the specified font; if the code is valid, it registers the code
in internal tables.
By using the name of a linked-in font in a call to registerbgifont, you
also tell the compiler (and linker) to link …</description>
    </item>
    <item rdf:about="https://code-reference.com/java/loops/while?rev=1365667420&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-11T10:03:40+02:00</dc:date>
        <title>while</title>
        <link>https://code-reference.com/java/loops/while?rev=1365667420&amp;do=diff</link>
        <description>while (condition) {

//command

}


a while loop do something while a condition

example of while loop in java


package codereferececomjava;

public class CodeRefereceComJava {
 
    public static void main(String[] args) {

        int i=4;
              
        while(i==4) {
        
             i++;
         }
         
        System.out.println(&quot;i is :&quot; + i );
    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/wiki/dokuwiki?rev=1708040894&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T00:48:14+02:00</dc:date>
        <title>DokuWiki</title>
        <link>https://code-reference.com/wiki/dokuwiki?rev=1708040894&amp;do=diff</link>
        <description>DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at creating documentation of any kind. It is targeted at developer teams, workgroups and small companies. It has a simple but powerful Formatting Syntax which makes sure the datafiles remain readable outside the Wiki and eases the creation of structured texts. All data is stored in plain text files -- no database is required.</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsfilemanager.h?rev=1708041981&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:21+02:00</dc:date>
        <title>NSFileManager</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsfilemanager.h?rev=1708041981&amp;do=diff</link>
        <description>NSFileManager

NSFileManager class enables you to perform many generic file-system operations.


init

defaultManager</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setgraphmode?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>setgraphmode</title>
        <link>https://code-reference.com/c/graphics.h/setgraphmode?rev=1708041949&amp;do=diff</link>
        <description>setgraphmode

Syntax of setgraphmode


#include &lt;graphics.h&gt;
void setgraphmode(int mode);
  

Description of setgraphmode


setgraphmode selects a graphics mode different than the default one set
by initgraph. mode must be a valid mode for the current device driver.
setgraphmode clears the screen and resets all graphics settings to their
defaults (current position, palette, color, viewport, and so on).
You can use setgraphmode in conjunction with restorecrtmode to switch
back and forth between t…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/getpass?rev=1360368631&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-09T01:10:31+02:00</dc:date>
        <title>getpass</title>
        <link>https://code-reference.com/c/conio.h/getpass?rev=1360368631&amp;do=diff</link>
        <description>char *getpass(const char *ptr);


description of getpass

reads a password

getpass reads a password from the system console, after the user is prompted for a password to a null-terminated string and display the password has been disabled. A pointer to a null-terminated string of up to eight characters (not counting null terminator) is returned.</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/string/charat?rev=1365581451&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:10:51+02:00</dc:date>
        <title>charAt</title>
        <link>https://code-reference.com/java/lang/string/charat?rev=1365581451&amp;do=diff</link>
        <description>charAt(int index)


description of charAt

returns char value at the specified index of  string.

example of charAt in java



package lang;

public class Lang {

    public static void main(String[] args) {
        
        String str = &quot;test 1234&quot;;
        char chr;
        
        chr = str.charAt(1);
        
        System.out.println(chr+&quot; is the 2 char&quot;);
    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/append?rev=1708042322&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:02+02:00</dc:date>
        <title>append</title>
        <link>https://code-reference.com/java/io/printstream/append?rev=1708042322&amp;do=diff</link>
        <description>Appends a CharSequence


append(char): PrintStream
append(CharSequence): PrintStream
append(CharSequence, int start, int end): PrintStream

return value: PrintStream


Language Example



        int i = 42;
        StringBuffer buf = new StringBuffer(42);
        buf.append(i);
        buf.append(&quot; is a answer to a nice question&quot;);
        System.out.println(buf);</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/string/touppercase?rev=1365581482&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:11:22+02:00</dc:date>
        <title>toUpperCase</title>
        <link>https://code-reference.com/java/lang/string/touppercase?rev=1365581482&amp;do=diff</link>
        <description>toUpperCase()
toUpperCase(locale)


description of toUpperCase

returns the String, converted to uppercase.

example of toUpperCase in java



package lang;

public class Lang {

    public static void main(String[] args) {
        
        String str = &quot;test 1234&quot;;
        
        str = str.toUpperCase();
        // str = str.toUpperCase(Locale.SIMPLIFIED_CHINESE); // for Simplified Chinese
        
        System.out.println(str+&quot; in uppercase&quot;);
    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/string/tolowercase?rev=1365581466&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:11:06+02:00</dc:date>
        <title>toLowerCase</title>
        <link>https://code-reference.com/java/lang/string/tolowercase?rev=1365581466&amp;do=diff</link>
        <description>toLowerCase()
toLowerCase(locale);




description of toLowerCase

returns the String, converted to lowerspace.

example of toLowerCase in java



package lang;

public class Lang {

    public static void main(String[] args) {
        
        String str = &quot;TEST 1234&quot;;
        
        str = str.toLowerCase();
        // str = str.toLowerCase(Locale.SIMPLIFIED_CHINESE); // for Simplified Chinese
        
        System.out.println(str+&quot; in lowercase&quot;);
    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/dos.h/gettime?rev=1394818990&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-03-14T18:43:10+02:00</dc:date>
        <title>gettime</title>
        <link>https://code-reference.com/c/dos.h/gettime?rev=1394818990&amp;do=diff</link>
        <description>struct time gettime( struct time );


description of gettime

gettime function is used to find current system time. 

returns structure varibale of type ( struct time ).



#include&lt;stdio.h&gt;
#include&lt;dos.h&gt;

int main(void)
{
   struct time t;
   gettime(&amp;t);
   printf(&quot;time is %d:%d:%d\n&quot;,t.ti_hour,t.ti_min,t.ti_sec);
   return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/examples/uiwebview_using_local_resources?rev=1408407926&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-08-19T02:25:26+02:00</dc:date>
        <title>UIWebView using local resources</title>
        <link>https://code-reference.com/objective-c/examples/uiwebview_using_local_resources?rev=1408407926&amp;do=diff</link>
        <description>Sometimes you need or want to load a UIWebView displaying content provided with an app. If there is more then one site it might make sense to have an external .css or .js file for all your html content. Whatever, I was facing this problem currently and decided to provide my solution to you.</description>
    </item>
    <item rdf:about="https://code-reference.com/java/loops/do?rev=1515738547&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-01-12T07:29:07+02:00</dc:date>
        <title>do</title>
        <link>https://code-reference.com/java/loops/do?rev=1515738547&amp;do=diff</link>
        <description>do {
 command;
} while (condition);



a do loop will run while a condition is false

example of do loop in java


package codereferececomjava;

public class CodeRefereceComJava {
 
    public static void main(String[] args) {
    
        int i=4;
        
        do {
         i++;
        } while(i==4);
        
        System.out.println(&quot;i is :&quot; + i );
    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/string/replace?rev=1708042325&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:05+02:00</dc:date>
        <title>replace</title>
        <link>https://code-reference.com/java/lang/string/replace?rev=1708042325&amp;do=diff</link>
        <description>public String replace(CharSequence target, CharSequence replacement)


description of replace

this method is used to replace a char Sequence

example of replace in java


package replace;

public class ReplaceString {

    public static void main(String[] args) {

        String str = &quot;Hello&quot;;
    
        str = str.replace(&quot;el&quot;, &quot;xx&quot;);
        System.out.println(&quot;String after replacement :&quot;+  str );
    
    
    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/java/control_structures/break?rev=1708041837&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:03:57+02:00</dc:date>
        <title>break</title>
        <link>https://code-reference.com/java/control_structures/break?rev=1708041837&amp;do=diff</link>
        <description>break;


continiue breaks a loop at a given point and exit the loop

example of break in java


package codereferececomjava;

public class CodeRefereceComJava {

 
    public static void main(String[] args) {

        int i;
        for (i=42;i&lt;=45;i++) {
            if (i==43) break;
            System.out.println(&quot;The answer is probably &quot;+i);
        }
 
    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/pieslice?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>pieslice</title>
        <link>https://code-reference.com/c/graphics.h/pieslice?rev=1708041954&amp;do=diff</link>
        <description>pieslice

Syntax of pieslice


#include &lt;graphics.h&gt;
void pieslice(int x, int y, int stangle, int endangle, int radius);
  

Description of pieslice


pieslice draws and fills a pie slice centered at (x,y) with a radius
given by radius. The slice travels from stangle to endangle. The slice is
outlined in the current drawing color and then filled using the current
fill pattern and fill color.
The angles for pieslice are given in degrees. They are measured
counterclockwise, with 0 degrees at 3 o'c…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/arc?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>arc</title>
        <link>https://code-reference.com/c/graphics.h/arc?rev=1708041954&amp;do=diff</link>
        <description>arc

Syntax of arc


#include &lt;graphics.h&gt;
void arc(int x, int y, int stangle, int endangle, int radius);
  

Description of arc


arc draws a circular arc in the current drawing color centered at (x,y)
with a radius given by radius. The arc travels from stangle to endangle.
If stangle equals 0 and endangle equals 360, the call to arc draws a
complete circle.
The angle for arc is reckoned counterclockwise, with 0 degrees at 3
o'clock, 90 degrees at 12 o'clock, and so on.
The linestyle parameter …</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/usb_leonardo_and_due_only/mousekeyboard?rev=1708041859&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:19+02:00</dc:date>
        <title>Mouse and Keyboard libraries</title>
        <link>https://code-reference.com/arduino/usb_leonardo_and_due_only/mousekeyboard?rev=1708041859&amp;do=diff</link>
        <description>These core libraries allow an Arduino Leonardo, Micro, or Due board to appear as a native Mouse and/or Keyboard to a connected computer.

A word of caution on using the Mouse and Keyboard libraries: if the Mouse or Keyboard library is constantly running, it will be difficult to program your board. Functions such as Mouse.move() and Keyboard.print() will move your cursor or send keystrokes to a connected computer and should only be called when you are ready to handle them. It is recommended to us…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/restorecrtmode?rev=1708041958&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:58+02:00</dc:date>
        <title>restorecrtmode</title>
        <link>https://code-reference.com/c/graphics.h/restorecrtmode?rev=1708041958&amp;do=diff</link>
        <description>restorecrtmode

Syntax of restorecrtmode


#include &lt;graphics.h&gt;
void restorecrtmode(void);
  

Description of restorecrtmode


restorecrtmode restores the original video mode detected by initgraph.
This function can be used in conjunction with setgraphmode to switch back
and forth between text and graphics modes. textmode should not be used
for this purpose; use it only when the screen is in text mode, to change
to a different text mode.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getactivepage?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>getactivepage</title>
        <link>https://code-reference.com/c/graphics.h/getactivepage?rev=1708041952&amp;do=diff</link>
        <description>getactivepage

Syntax of getactivepage


#include &quot;graphics.h&quot;
int getactivepage(void);
  

Description of getactivepage


The getactivepage function is available in the winbgim implementation of
BGI graphics. getactivepage gets the page number of the currently active
page (where drawing takes place).
The active graphics page might not be the one you see onscreen, depending
on how many graphics pages are available on your system.
The original winbgi was designed to support up to 16 pages, but I …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setactivepage?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>setactivepage</title>
        <link>https://code-reference.com/c/graphics.h/setactivepage?rev=1708041948&amp;do=diff</link>
        <description>setactivepage

Syntax of setactivepage


#include &lt;graphics.h&gt;
void setactivepage(int page);
  

Description of setactivepage


setactivepage makes page the active graphics page. All subsequent
graphics output will be directed to that graphics page.
The active graphics page might not be the one you see onscreen, depending
on how many graphics pages are available on your system. Only the EGA,
VGA, and Hercules graphics cards support multiple pages.</description>
    </item>
    <item rdf:about="https://code-reference.com/java/variables/global_variable?rev=1708041842&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:02+02:00</dc:date>
        <title>global variable</title>
        <link>https://code-reference.com/java/variables/global_variable?rev=1708041842&amp;do=diff</link>
        <description>define a global variable in java, after the public class block

example of global varialbe  in java


 package codereferececomjava;

public class CodeRefereceComJava {

    public static int globalDigit; // define a global variable
 
    public static void main(String[] args) {
                
        int digit = 5; // define and inital a local variable
        globalDigit = digit; // initalisize the global variable
        
        funct(); // call funct();
    }

    
    public static void f…</description>
    </item>
</rdf:RDF>
