Answers for "what is out.println in java"

1

print statement in java

System.out.println("Hello!"); //prints then ends line
System.out.print("Hello!!");//prints without line spacing
Posted by: Guest on October-01-2020
0

Java Print

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

         Scanner s = new Scanner(System.in);
         char c1,c2;

         c1 = s.findWithinHorizon(".", 0).charAt(0);
         c2=s.findWithinHorizon(".", 0).charAt(0);
         System.out.print(c1);
         System.out.print(c2);

         s.close();
     }   
}
Posted by: Guest on January-17-2022

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language