In Java, variables must be declared, i.e. we must allocate space for a specific variable type. Only after we have done this can we assign a specific value. It's nice that we can do this literally in one line. In this task, you have to declare several variables and immediately assign them values.
We solemnly publish and declare these variables...
- 1
Locked
Comments (84)
- Popular
- New
- Old
You must be signed in to leave a comment
Anonymous #11481753
7 March 2024, 16:13
public class Sample{
public static void String [] args) {
String s = "abc";
int a = 10;
}
}
0
Anonymous #11468646
11 February 2024, 16:41
public Task1{
public static void main(String[] args){
int a=10;
System.out.println(a);
}
}
0
Don Ricket
15 January 2024, 11:18
public class Solution {
public static void main(String[] args) {
int a = 4;
int b = 7;
}
}
0
vidya somachandra
9 January 2024, 03:43
public class Variables {
public static void main (String args[]) {
int a =5;
int b =8;
}
}
0
hidden #11438617
17 December 2023, 09:19
public class Variables{
public static void main (String args[]) {
int a = 9;
float f = 96.36f;
}
}
0
Aiden Hurtubise
21 September 2023, 12:23
press help
0
Anonymous #11384356
20 August 2023, 10:48
Same issue, I can't unlock the next task :(
0
Anonymous #11374770
31 July 2023, 06:24
how we unlock
0
sreeju
21 May 2023, 04:02
0
L01954
15 March 2023, 11:13
int a = 10;
int b = 5;
0