Welcome, Guest. Please login or register.

Author Topic: Java Help  (Read 1707 times)

0 Members and 1 Guest are viewing this topic.

Offline UnknownError

Java Help
« on: August 26, 2013, 07:47:01 PM »
The Problem: Write code that will look at the number of characters in String m= "Look here!"; and then print

"Look Here!" has 10 characters.

Use the length method() to print the 10.... you must also force the two quotes to print.

What I have so far.
Code: [Select]
String m = “Look here!”;
int x = m.length();
System.out.print(“\"Look here!”\” )
System.out.print(
"DONT JUST WHIP IT OUT"-All of Haiti
"my nipples are hard" - Mrs.TheNurse (MeOwMoO)
"Guztav: How dare you leave me, you beuitiful individual full of love"
"Time to eat 8 tacos" - BladeTwinSwords
"How about I send your buttcheeks to Tybers "magic stick" - Linkster
"+1, seems like a guy who doesn't abuse power, etc."- Death
"He betta wrap dat sheet, ho. Don't want no baby unknowns runnin round" - Oobla
"YOU WANT SOME MORE CRACKERS" - Nexus



Best on TTT: 12 Kills, 8 Headshots

Offline TowerSheep

Re: Java Help
« Reply #1 on: August 26, 2013, 07:55:49 PM »
I won't give you the answer yet incase you want to figure it out. Message me on steam if you do want the answer. I will provide to helpful links

Things to look into:

The Java documentation on what can be done to strings:
http://docs.oracle.com/javase/6/docs/api/java/lang/String.html

The methods of escape characters and what they do:
http://web.cerritos.edu/jwilson/SitePages/java_language_resources/Java_Escape_Sequences.htm

by Kwaurtz

Conjoint Gaming [Game On]

Re: Java Help
« Reply #1 on: August 26, 2013, 07:55:49 PM »

 


* ShoutBox!

Refresh History

SimplePortal 2.3.5 © 2008-2012, SimplePortal