Monday, 9 April 2018
Switch Statement
Irawen April 09, 2018 Java No comments
We will explain a Switch statement is —
The syntax of switch case is :
Syntax:-
switch()
{
case1:
statement()
break;
case2:
statement()
break;
default:
statement()
break;
}
Example:-
public class MyClass
{
public static void main(string[] arg)
{
int score=90;
switch(score)
{
Case 90:
System.out println(“Very...
Logical Operator
Irawen April 09, 2018 Java No comments
In logical operator there are two operator
"&&" This is called as AND operator. "||" This is called as OR operator.
Example:-
public Class MyClass
{
public static void main(string[] arg)
{
int sub1=50;
int sub2=30;
if((sub1>=35)&&(sub2>=25))||((sub1<=60)&&(sub2<=40))
{
System.out.println(“The condition...
Take a input by user
Irawen April 09, 2018 Java No comments
Take the input from user
Syntax:-
Scanner scan=new Scanner(System.in);
Example:-
*/ Package lesson1;
import java until.scanner;
public class Myclass
{
public static void main(string[] arg);
{
Scanner scan=new Scanner(System.in);
System.out.println(“Enter the some number”);
int user-input-number=scan.nextInt();
System.out.println(“The...
Math arithmetic operator
Irawen April 09, 2018 Java No comments
Here, the math operator is:-
" + " (Addition)
" – " (Subtraction)
" * " (Multiplication)
" / " (Division)
" %" (Modulus)
Example:-
public class math;
{
public static void main(string[] arg)
{
int x,y,answer;
x=60;
y=30;
answer=x+y; //(perform...
Variable Declare in Java
Irawen April 09, 2018 Java No comments
Declare datatype.
byte (number,1 bytes)
short (number,2 bytes)
int (number,4 bytes)
long (number,8 bytes)
float(float number,4 bytes)
double (float number,8 bytes)
char (a character , 2 bytes)
Boolean (true or false , 1 bytes)
Declare (Example)
short my-variable=10;
float my-decimal=(float) 4.5;
double my-double=11.56;
char my-char=’A’;
...
Introduction of Java
Irawen April 09, 2018 Java No comments

Java is develop by James Gosling in 1991
Java is a developed in the early 90s in Sun Microsystems company. Java first version release in 1995 (Java 1.0).
Java first name is Oak.
It is a high -level language.
Java is object oriented programing.
Java...
Pointer and Function
Irawen April 09, 2018 C No comments
The pointers are very much used in a function. Sometimes only with a pointer a complex function can be easily represented and success. The usage of the pointers in a function defintion may be classified into two groups.
1. Call by Value.
2. Call by reference
Call by Value
We have seen that a function in invoked there will be a link...
Function
Irawen April 09, 2018 C No comments
A function is a self contained block of statement that performs a coherent task of some kind.
Functions provides modularity to the software.
#include<stdio.h>
int add (int x, int y)
int z;
z = x + y;
return (z);
}
main( )
{
int i,j,k;
i = 10;
j = 20;
k = add(i,j) /* function call */
printf("The value of k is %d\n",k);
}
Output:-
...
Pointer
Irawen April 09, 2018 C No comments
In C language a pointer is a variable that points to or references a memory location in which data is stored. Each memory cell in the computer has an address that can be used to access that location so a pointer variable points to a memory location we can access and change the contents of this memory location via the pointer.
Pointer Declaration...
Popular Posts
-
What you'll learn Understand why version control is a fundamental tool for coding and collaboration Install and run Git on your local ...
-
What’s happening here? fruits is a list of 5 string items. [ 'Python' , 'Py' , 'Anaconda' , 'CPython' , ...
-
Introduction to Data Science in Python: Course Review and Insights Python has become one of the most powerful and popular programming lang...
-
Step-by-Step Breakdown: Variable Assignment: word = 'clcoding' The string 'clcoding' is assigned to the variable word....
-
Step-by-step Explanation: playerScores = dict() Creates an empty dictionary named playerScores. Adding player scores: playerSc...
-
What happens: num = 6 A variable num is created and assigned the value 6. decrement(num) This calls the decrement function and pass...
-
tep 1: First if Condition if not (code >= 100 and code <= 200 ): print("1") code = 501, so we check: code >...
-
Learning LangChain: Building AI and LLM Applications with LangChain and LangGraph LangChain is an open-source framework designed to simplif...
-
Step 1: Install Python Download Python : Go to Python.org and download the latest version. Install Python : During installation, ensure you...
-
What you'll learn Working knowledge of Data Science Tools such as Jupyter Notebooks, R Studio, GitHub, Watson Studio Python programmin...
Categories
100 Python Programs for Beginner
(98)
AI
(40)
Android
(24)
AngularJS
(1)
Api
(2)
Assembly Language
(2)
aws
(17)
Azure
(7)
BI
(10)
book
(4)
Books
(198)
C
(77)
C#
(12)
C++
(83)
Course
(67)
Coursera
(251)
Cybersecurity
(25)
Data Analysis
(3)
Data Analytics
(3)
data management
(11)
Data Science
(149)
Data Strucures
(8)
Deep Learning
(21)
Django
(16)
Downloads
(3)
edx
(2)
Engineering
(14)
Euron
(29)
Events
(6)
Excel
(13)
Factorial
(1)
Finance
(6)
flask
(3)
flutter
(1)
FPL
(17)
Generative AI
(11)
Google
(36)
Hadoop
(3)
HTML Quiz
(1)
HTML&CSS
(47)
IBM
(30)
IoT
(1)
IS
(25)
Java
(93)
Java quiz
(1)
Leet Code
(4)
Machine Learning
(85)
Meta
(22)
MICHIGAN
(5)
microsoft
(4)
Nvidia
(4)
Pandas
(4)
PHP
(20)
Projects
(29)
pyth
(1)
Python
(1052)
Python Coding Challenge
(459)
Python Quiz
(125)
Python Tips
(5)
Questions
(2)
R
(70)
React
(6)
Scripting
(3)
security
(3)
Selenium Webdriver
(4)
Software
(17)
SQL
(42)
UX Research
(1)
web application
(8)
Web development
(4)
web scraping
(2)