Skip to content

Instantly share code, notes, and snippets.

alimuhammed056

Block or report user

Report or block alimuhammed056

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Circle
public class Circle {
// double radius;
// public void area(){
// System.out.println(3.14*radius*radius);
// }
public double square(double radius){//4
return radius * radius;//16
}
View NewClass
public class NewClass {
public static void main(String[] args) {
if(args!=null && args.length>0){
System.out.println(args[0]);
}
}
}
View NewClass
import java.util.Scanner;
/*
Calculator
*/
public class NewClass {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
View NewClass
public class NewClass {
public static void main(String[] args) {
int x = 3;
int y = 4;
int z = 5;
if(x>y && x>z){
System.out.println("Ok");
View NewClass
//2- Floating points
//---------------------
// float32 bit - double 64bit
public class NewClass {
public static void main(String[] args) {
double d = 3.2;
float e = 0.5f;
float w = (float)0.5;
}
View NewClass
public class NewClass {
public static void main(String[] args) {
int x = 10;
//type var-name = value ;
/*
Data Types
-------------------
A)Primitive B)Object Reference
You can’t perform that action at this time.