The Artima Developer Community
Sponsored Link

Java Answers Forum
error java programming

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
nastik bautista

Posts: 4
Nickname: nastik
Registered: Dec, 2008

error java programming Posted: Jan 13, 2009 4:14 AM
Reply to this message Reply
Advertisement
I can't get this right. please help me.
Make a program that will display this in uppercase,lowercase and length/size.
NAS = UPPERCASE
nas = lowecase
3 = length/size

seems so hard. i cant finish it. i always get an error.




import javax.swing.*;

public class JAVAPROG4

{
public static void main(String[] args)

{
String str

str = JOptionPane.showInputDialog("Enter a String");

JOptionPane.showMessageDialog(null,"UPPERCASE"+str.toupper()+"/nLOWERCASE:"+str .tolower+"/n

Topic: Urgent!!! help needed to convert JSP to PDF Previous Topic   Next Topic Topic: i= i++ + ++i + i++ + ++i

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use