Java Using NetBean
Write a program to define an integer variable named as roomNumber. Assign 408 to the variable. Then display a message in System.out as “The programming class is in room ”+roomNumber.
SOURCE CODE
package javaapplication1;
public class JavaAppIication1 {
public static void main (String [] args) {
int roomNumber=408;
System.out.println( "The programming class in room "+roomNumber)
;
}
}
OUTPUT SCREENSHOT
please give a upvote if u feel helpful.
Get Answers For Free
Most questions answered within 1 hours.