Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.
Hi,

I'am a little bit confused when I want to insert code
in PHP-Fusion forum, because all lines are located
by left side. There is no structure of the code!

For example lets take one simple java program:

CodeDownload  

import java.util.Scanner;

class band2{
   
   public static void main(String args[]){
      Scanner myScanner=new Scanner(System.in);
      double amount;
      
      System.out.print("Enter your amount: ");
      amount=myScanner.nextDouble();
      amount=amount+25.00;
      
      System.out.print("We will bill $");
      System.out.print(amount);
      System.out.println("to your credit card.");

         
   }

}



How you see, the code does not have any structure...
It should be in this way(see the attachment)...

So any ideas how to fix it ? Maybe I do smth wrong ?

0 replies

author Bounce
forumOfficial Core Support - 6
replies1 post
viewed1,624 times
activeLast updated on 13 years ago
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.