answersLogoWhite

0

How write new line program in java?

User Avatar

Anonymous

13y ago
Updated: 8/19/2019

\n

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

In a java program in a return statement with string concatenation how do you print a blank line?

use "\n" between the words where you want a new line


What is Re usability in java?

Reusability in Java means that once you write some code, you can use it over and over again - if you write it so that it can be reused. For example, if you write a Enumeration-Iterator adapter, or some code that lets you treat an Enumeration - Java legacy code - as an Iterator - shiny NEW Java code - then you can use it not only in your animal simulation program, but also in your Jacuzzi interface program.


How do you write and execute java program?

In theory, you can write a Java program in just about any text editor; then you can compile it with the "javac" command, and - if the compilation works without errors - run it with the "java" command. In practice, and especially for new programmers, I would recommend that you get a good Java IDE, which lets you do everything in a single environment, and clearly shows where there are errors, among other benefits.


How do you write and execute the java program?

In theory, you can write a Java program in just about any text editor; then you can compile it with the "javac" command, and - if the compilation works without errors - run it with the "java" command. In practice, and especially for new programmers, I would recommend that you get a good Java IDE, which lets you do everything in a single environment, and clearly shows where there are errors, among other benefits.


How do you write a java program to find the transpose of the matrix for the given elements?

You basically write a nested for loop (one for within another one), to copy the elements of the matrix to a new matrix.


What is java console?

The Java console is a display of output sent by a Java program. This is similar to the MS DOS operating system.To print to the console, a programmer will type "println(text);" or "print(text);" depending is the programmer wants to make a new line after the text(println) or not(print).


Write a java program to initialize array of string with the days of the week?

final String[] days = new String[] {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};


Write a program in java programming language to print welcome to java programming?

public class welcome { public static void main (String args[]) { System.out.println("Welcome to Java programming"); } } There are also many "Hello World" tutorials you can find elsewhere on the internet


Java program to read and compress a file?

I dont know you are looking for write new program to compress the data.. I am providing code to zip the file in Java.ZipOutputStream zipOutStream = new ZipOutputStream( new BufferedOutputStream( new FileOutputStream( ZipFileName )) );BufferedInputStream bufferInStram = new BufferedInputStream( new FileInputStream(FileToXip), 2000 );ZipEntry entry = new ZipEntry( excelFileName );zipOutStream.putNextEntry( entry );


Write a program in java to start mysql service in windows.?

String startCommandScript[] = { "cmd.exe", "/c", "sc", "Start", "MySQL" }; Process process; try { process = new ProcessBuilder(commandScript).start(); InputStream is = process.getInputStream(); InputStreamReader isr = new InputStreamReader(is); BufferedReader br = new BufferedReader(isr); String line; //System.out.printf("Output of running cmd /c dir is:"); while ((line = br.readLine()) != null) { // if (line.matches("controlservice failed")) { // System.out.println("......."); // } // System.out.println(line); } br.close(); isr.close(); is.close(); process.destroy(); } catch (IOException e) { e.printStackTrace(); }


When the Java Virtual Machine sees the new operator in a program it instantiates an object for a specified class.?

Yes.


What is the written java code for a java program that stores and prints out the student's grade?

what likeint grade = new intgrade = 85System.out.println(grade);or more complicated? be more specific