User Profile

Collapse

Profile Sidebar

Collapse
safra
safra
Last Activity: Sep 20 '10, 07:58 PM
Joined: Aug 28 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • safra
    replied to how to try catch this?
    in Java
    i dont exactly understand what you meant.but i did try it out the way i understood.it still dint do what i expected it 2 do.
    Code:
    import java.util.Scanner;
    
    import javax.swing.*;
    
    import java.io.*;
    
    public class BackItUpTxt
    {
        public static void main(String agrs[]) throws IOException
    
        {
            String D_Play = "File does not exist!";
            try
    ...
    See more | Go to post

    Leave a comment:


  • safra
    started a topic how to try catch this?
    in Java

    how to try catch this?

    dear all, i want to try catch this. i want a message to appear before it asks for the password..pleas e help me out..

    Code:
    import java.util.Scanner;
    
    import javax.swing.*;
    
    import java.io.*;
    
    public class BackItUpTxt
    {
        public static void main(String agrs[]) throws IOException
    
        {
            String D_Play = "File does not exist!";
    ...
    See more | Go to post

  • safra
    replied to display an error msg saying wrong format.
    in Java
    wow..!!! worked perfectly..!! owe you big time!!! thanks alooootttt!!!! yay!! happiness in da air!! hehehe
    See more | Go to post

    Leave a comment:


  • safra
    replied to display an error msg saying wrong format.
    in Java
    umm..i dont exactly know how to do that.i have very little knowledge in java..im still new to this field. do you think you can teach me how its done? please..
    See more | Go to post

    Leave a comment:


  • safra
    started a topic display an error msg saying wrong format.
    in Java

    display an error msg saying wrong format.

    hi everybody..
    i need help with my assignment.i want to display a error message saying that the user has inputed a string where an integer is needed.because when i enter "h" (for an example) in the x coordinate field the system crashes.i want to display an error message instead.

    Code:
    /**
     * A program that simulates an ant taking a step on a sheet of paper. stage 2
     * 
     * @author (safra)
     * @version
    ...
    See more | Go to post
    Last edited by Frinavale; Aug 31 '10, 06:45 PM. Reason: Please post code in [code] ... [/code] tags in the future. Added code tags.
No activity results to display
Show More
Working...