이 PHP 코드에 해당하는 Java는 무엇입니까?android java string operation
//print string plus/with variable
$mystring = "this is string " .$string
//print sum one + two
$count = $one + $two
//print sum one*two
$count = $one * $two
이 PHP 코드에 해당하는 Java는 무엇입니까?android java string operation
//print string plus/with variable
$mystring = "this is string " .$string
//print sum one + two
$count = $one + $two
//print sum one*two
$count = $one * $two
이 같아야합니다
String mystring= "this is string " + string; // here `string` is aloso String object
/*
* if count ,one and two all of them are int
*/
int count = one + two;
int count = one * two;
하지만 난 안드로이드를 시작하기 전에 자바의 기초를 배울 제안했다. 아시다시피 PHP는 자바 구문을 배우는 데 오랜 시간이 걸리지 않습니다.
아니요, 그들은 java.lang.Integer가 아닙니다. 그것들은 원시 int입니다. –
을 가리켜 주셔서 감사합니다. @LittleChild – Saif
당신은 오신 것을 환영합니다! :) 수정에 +1. –
자바는 알고 있지만 PHP는 아는 사람들은 코드가 무엇을합니까? –
이것은 android와 어떤 관련이 있습니까? – azurefrog
@azurefrog 난 그냥 자바 에서이 작업을 실행하는 방법을 알고 싶습니다 – user67036