Announcement

Collapse
No announcement yet.

Forums

Collapse

Welcome to vBulletin!

Collapse

Welcome to your vBulletin forum! You can click "Edit Site" above for site administration options.

To edit or remove this module, click "edit site", then "edit page".

Visitors

Collapse

Unconfigured Ad Widget

Collapse

Latest Topics

Collapse

  • admin
    Method call example
    admin
    Method Call A command to execute another method, which causes all of the statements inside that method to be executed. drawBox(); Since we want to execute the drawBox command twice (we want to draw two boxes), the main method should contain two calls to the drawBox method. The following program uses the drawBox method to produce the same output as the original DrawBo...
    Today, 03:01 AM
  • admin
    Methods Exercise
    admin
    Methods Exercise

    what the out put of the following program?


    Code:
    /*
     * Methods Exercise
     */
    package methods_exercises;
    
    
    public class Methods_exercises {
    
        public static void method2 () {
        method1();
        System.out.println("I am method2.");
    }
        public static void method3 () {
        method2();
    ...
    Today, 12:12 AM
  • admin
    Program 1- Printing a Face with Characters
    admin
    Program 1 -Printing a Face with Characters

    Write a program to print the picture of Bart Simpson made out of characters as shown. The text version of the face is at Bart.txt. Using this file will help quite a bit in writing the program.
    Your program should just have a single main method and a series of System.out.println(...) statements. You will need to remember to use the escape sequence \\ when you want to print backslashes. Please include the "SSt", this is required by the original author of this portraint









    Code:
    
    
    
    (adsbygoogle = window.adsbygoogle || []).push({});
    
    /*Program 1  points Bart face drawing.
     *NAME: 
     *computer science class, Fall 2013, Prof. ........   
     *Program #1
     *File Name: Face.java
     */
    ////package bart;
    
    public class Bart {
    
        public static void main(String[] args) {
            System.out.println(" /\\/\\/\\/\\/\\/\\/\\\t\t\t\t\t           \\___/");
            System.out.println(":              :\t\t\t\t\t    / \\");
            System.out.println("|              |   Bart\t\t\t\t\t   /   \\");
            System.out.println("|              |\t\t\t\t\t  /     \\");
            System.out.println("|              |\t\t\t\t\t /       \\");
            System.out.println("|              __`,\t\t\t\t\t/         \\");
            System.out.println("|             /   \\\t\t\t\t\t-----------");
            System.out.println("|             \\__*/__\t\t\t\t\t | o   o |");
            System.out.println(":                   __)\t\t\t\t\t |
    ...
    Yesterday, 10:13 PM

Recent Blog Posts

Collapse

There are no results that meet this criteria.

Collapse
  • Filter
  • Time
  • Show
  • New Topics
Clear All
new posts
No content found
Show More
  • Filter
  • Time
  • Show
  • New Topics
Clear All
new posts
Please log in to your account to view your subscribed posts.
Directory Topics Posts Last Post
2 2
Sub-Forums:
Computer Science programming java data c+ C++
4 9
Sub-Forums:
1 1

What's Going On

Collapse

There are currently 8 users online. 0 members and 8 guests.

Most users ever online was 13 at 07:59 AM on 12-26-2014.

No user is online now.

Knowledge Academy Statistics

Collapse

Topics: 7   Posts: 12   Members: 3   Active Members: 3
Welcome to our newest member, codemember.
Working...
X