Data Types on Java


#1

Hi guys,

can someone please help me out on this exercise

Type any whole number in between the parentheses of System.out.println();

int data types do not need to be typed within quotes, so you can avoid using quotes this time.

Thanks


#2

Could you please write your code here ?


#3

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

	System.out.println();

}

}


#4

Write any number inside the brackets:


#5

Okay.

Thanks press through


#6

Hi,

Please can still help me out on this?

2.
Write a multi-line comment that begins anywhere after the single line comment you just wrote. Again, the comment can say anything you like.

My Code:

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

	System.out.println(//"Noise!");

Thank you.


#7

First:
1- To write a single line comment:
// single line comment

2- To write Multi-line comments are generally longer comments that can span multiple lines:
/*
Multi-line
comments
*/


But don't put the comment inside:


#8

Okay. Doing that now...

Thanks Mohamadbahaa..

Where are you from?